Hi, everyone,

I just using Cake 1.2.
Normally, in the stable version. We just need define a router like:

$Route->connect('/', array('controller' => 'events','action' =>
'index'));

And then all the action related with events like view, edit will work
perfectly.

BUT in the 1.2, I also define a router like below:

Router::connect('/posts', array('controller' => 'posts', 'action' =>
'index'));

It is only work with /posts.

When I wanna brower ../cake2/posts/view/1
There is an error message like Missing View Controller.

Then I define
Router::connect('/posts/view/*', array('controller' => 'posts',
'action' => 'view'));

It works again.

Is it the way to work within 1.2 ?
We should define every single action in the router?
Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to