I am no expert on routes, but as far as I understand, you don't need a
route for the /post/view route, as CakePHP will do it normal "magic"
and assign it to the posts controller with the action view.
So try to remove the /post/view/* route and see what you get.
Enjoy,
   John

On Jan 17, 8:33 am, abhiraj <[email protected]> wrote:
> Hi
>
> Router.php
> Router::connect('/', array('controller' => 'posts', 'action' =>
> 'index'));
> Router::connect('/posts/view/*', array('controller' => 'posts',
> 'action' => 'view'));
>
> I am able to open urlhttp://localhost/cakephpwherein cakephp is my
> root directory. This is opening fine according to the first
> Router::Connect(...) as shown above. For the second Router::Connect
> (...) when i hithttp://localhost/cakephp/posts/view/1on my browser it does 
> not opens
> up and shows error
>
> The requested URL /cakephp/posts/view/1 was not found on this server
>
> Kindly help me as i am stuck up with this long.
>
> Thank You
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en

Reply via email to