Welcome Guest, Not a member yet? Register   Sign In
Build a CI application alongside EE 2 installation
#11

[eluser]Monarobase[/eluser]
I think that you are looking at it from the wrong point of view.

Without you .htaccess rewriting you access EE controlers with

http://www.nifootball.co.uk/index.php/co...r/function

You access the CI controllers with :

http://www.nifootball.co.uk/stats.php/co...r/function

At the moment you have a rewrite that rewrites :

http://www.nifootball.co.uk/pages/home.html

to

http://www.nifootball.co.uk/index.php/pages/home/

What you need to do is to say that

http://www.nifootball.co.uk/stats/

is not redirected to

http://www.nifootball.co.uk/index.php/stats/

but to

http://www.nifootball.co.uk/stats.php/index

The routes in CI allow you to specify which controller is shown as the main index, but you have to be in the correct application for the routes config to apply.

So you don't detect if you are using a CI controller and then show stats.php but you do the opposite, you use the CI if stats.php is used and EE controllers if index.php is used.

Maybe the best solution would be to tell your .htaccess to ignore all the EE rewritings for a folder called stats and place the index.php of code igniter in this folder and give it it's own .htaccess rewriting.


Messages In This Thread
Build a CI application alongside EE 2 installation - by El Forum - 12-27-2009, 04:31 AM
Build a CI application alongside EE 2 installation - by El Forum - 12-27-2009, 04:28 PM
Build a CI application alongside EE 2 installation - by El Forum - 12-27-2009, 04:35 PM
Build a CI application alongside EE 2 installation - by El Forum - 01-03-2010, 02:28 PM
Build a CI application alongside EE 2 installation - by El Forum - 01-03-2010, 02:32 PM
Build a CI application alongside EE 2 installation - by El Forum - 01-03-2010, 02:43 PM
Build a CI application alongside EE 2 installation - by El Forum - 01-04-2010, 03:03 AM
Build a CI application alongside EE 2 installation - by El Forum - 01-04-2010, 07:05 AM
Build a CI application alongside EE 2 installation - by El Forum - 01-04-2010, 07:24 AM
Build a CI application alongside EE 2 installation - by El Forum - 01-04-2010, 07:30 AM
Build a CI application alongside EE 2 installation - by El Forum - 01-04-2010, 07:48 AM
Build a CI application alongside EE 2 installation - by El Forum - 01-04-2010, 12:03 PM
Build a CI application alongside EE 2 installation - by El Forum - 01-04-2010, 12:17 PM
Build a CI application alongside EE 2 installation - by El Forum - 01-04-2010, 12:27 PM
Build a CI application alongside EE 2 installation - by El Forum - 01-05-2010, 10:17 AM
Build a CI application alongside EE 2 installation - by El Forum - 01-30-2010, 04:14 PM
Build a CI application alongside EE 2 installation - by El Forum - 01-30-2010, 04:37 PM
Build a CI application alongside EE 2 installation - by El Forum - 05-06-2011, 05:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB