Welcome Guest, Not a member yet? Register   Sign In
Static routing, laravel-like routes and filtering
#1

[eluser]Patroklo[/eluser]
I have done a little project that let's you use Codeigniter with static routes (meaning that if you are accessing a url not defined in the routes.php file it will throw a 404 error), also added laravel-like routing (with callings to a static library intead of tweaking with the $route[] array) and also I have added filter callings, something that I thing it's very useful and Codeigniter doesn't have.

I have uploaded it into github here

I haven't tested it in Codeigniter 2.x, but I'm pretty sure that won't work, at least for the MY_Routes changes.
#2

[eluser]a_h_abid[/eluser]
Nice ... Like static routes ... I'll try it.
#3

[eluser]Patroklo[/eluser]
Just added subdomain support to the routes
#4

[eluser]Patroklo[/eluser]
Added support to send manual parameters to the filter anonymous functions. Now it's possible to add manual strings or uri segments to them as a parameter.




Theme © iAndrew 2016 - Forum software by © MyBB