Re: Problem with Router::connect

2011-07-19 Thread Johan
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.

Re: Problem with Router::connect

2011-07-18 Thread heohni
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 cake-php+unsubscr

Problem with Router::connect

2011-07-18 Thread heohni
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 th