How To Change Entry Point Filename In Redirect Or Createurl From Admin.php To Index.php

This should be simple but i am unable to figure it out :(

I have two applications, one accessible from index.php and other from admin.php. Except config file, these application share almost all of the code, controllers, models, views. In admin.php application, i need to provide links to index.php application. I cannot figure out how to do this. Redirect, createUrl, createAbsoluteUrl, all of these functions only take controllerId/actionId pair as arguments. How do we specify scriptFile name?

Regards,

[list=1]

[*]Do admin.php and index.php share the same directory?

[*]Is the code in admin.php similar to index.php i.e. creates an application, runs it etc.?

[/list]

As far as I understand, you can not create a link to other application using the url manager … I mean, using “controller/action + parameters” syntax. It’s only effective within the current application. You have to create a link with a plain string like you do for a link to other site.