Hi,
I have a multilingual page and I wanted to use the Router::connect
stuff to
1. have such a link:
$this->Html->url(array('controller' => 'pages', 'action' => 'display',
strtolower(Configure::read('video.'.$this->Session-
>read('Config.language').'.video-1')))));
which creates something like this:
<a href="/pages/display/blechlager">Blechlager / Blecheingang</a>
2. in my routes.php I added:
Router::connect('/blechlager', array('controller' => 'pages', 'action'
=> 'display', 'video-1'));
and I added the file in pages/video-1.ctp
Bit its not working, like I usually know that it should work.
I would expect that cake is knowing about the route connect and would
write
<a href="/blechlager">Blechlager / Blecheingang</a> and would re-
connect to the video-1.ctp...
It says that instead:
Error: The view for PagesController::display() was not found.ยด
Error: Confirm you have created the file: D:\Project\views\pages
\blechlager.ctp
I don't know what I am doing wrong :-(
Please help!
--
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