Welcome Guest, Not a member yet? Register   Sign In
Routes
#1

[eluser]Bernat Bonet[/eluser]
Hi all, my domain structure is : http://localhost/project/application/...
The system core is in: http://localhost/core/system/....

I want to route all calls to http://localhost/project/application/views/js to http://localhost/project/application/con...ontroller1

$route['application/views/js/([a-z0-9]+)\.js'] = "controller1/function1/$1";

I don't know why it doesn't work, perhaps it would be the path, I don't know.

Thanks a lot.
#2

[eluser]Dam1an[/eluser]
I think you misunderstand the way CI is structured, and might want to read the first couple parts of the user guide.
Your URL is whereever index.php is relative to the web root, so if index.php is in the web root, http://localhost should work
Once you've got that sorted out you can start with URI routing

Also, why do you have a route for JS files? :-S
#3

[eluser]Bernat Bonet[/eluser]
My js files are generated via php and I've a controller that proces that files and generate a new js.
That's I want to route these files.

My web root might be http://localhost/project ??

Thanks for your fast reply.




Theme © iAndrew 2016 - Forum software by © MyBB