I think you got the wrong idea about routes. With this line:
Router::connect('/blechlager', array('controller' => 'pages', 'action' =>
'display', 'video-1'));
You are telling CakePHP that any requests to the URL "/blechlager" have to
be treated as if "/pages/display/video-1" was being requested.
Because "/pages/display/video-1" != "/pages/display/blechlager", you are
getting that error.
What you should do is to use routes like "/pages/display/blechlager/video-1"
and treat them in the pages controller. Read more about passing arguments on
the Router configuration section of the Cookbook:
http://book.cakephp.org/view/948/Defining-Routes
Cheers,
- Johan
On Tue, Jul 19, 2011 at 8:55 AM, heohni <
[email protected]> wrote:
> Can anyone please help me?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php