|
Why would you want a catch-all? What would you want to do if someone
hit http://localhost/blog/sumthin ? However, with the way that AD7six explained it, it should create your catch-all functionality. The bad thing is that you may have to define a route for every method in the blog controller to access them. $Route->connect ('/blog/history/*, array('controller'=>'Blog','action'=>'history')); $Route->connect ('/blog/*', array('controller'=>'Blog','action'=>'index')); At least this is how i understand it. Side question: As far as i understand it, if you have a method with a preceding "_" ( _someMethod(){} ), you shouldn't be able to access it by going to http://localhost/blog/_someMethod right? If you were to create a route to it, then would it that method be accessable via the url? (Not saying i would do it as it doesnt seem very cakey, just curious). Brian French x0rster wrote: Ok, thanks you AD7six So I need to add a route for each other members functions in BlogController. It's too bad that there is no way to define a route functionning like a "catch-all" if the function does not exist.Thanks for your help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~--- |
- Re: Route : defaut action for a controller Brian French
- Re: Route : defaut action for a controller x0rster
- Re: Route : defaut action for a controller [EMAIL PROTECTED]
