Solution is Custom Routing class, as friend said, OR rewrite this route.
Example:
Router::connect('/home/vasti',array('plugin'=>'vastipatrak','controller'=>'vastipatraks','action'=>'index'));
Router::connect('/home/vasti/:action',array('plugin'=>'vastipatrak','controller'=>'vastipatraks'));
Router::connect('/home/vasti/:action/*',array('plugin'=>'vastipatrak','controller'=>'vastipatraks'));
Em quinta-feira, 9 de agosto de 2012 11h18min39s UTC-3, Rodrigo Rodrigues Moyle escreveu:
-- Em quinta-feira, 9 de agosto de 2012 11h18min39s UTC-3, Rodrigo Rodrigues Moyle escreveu:
There is not a option, if you define a route with /:action you are telling CakePHP the :action param is required.Maybe you try make this route using a custom class.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
No comments:
Post a Comment