I have done the mollio template tutorial and that is the way I want to
go for my first cake app.
http://wiki.cakephp.org/tutorials:building_a_cakephp_site_part_-_2
But I do not understand how to set up templates/routes for other pages
I add to the menu. Can anyone please shed light?
I have tried routes thus:
# $Route->connect('/', array('controller' => 'pages', 'action' =>
'display', 'home'));
$Route->connect ('/', array('controller'=>'templates',
'action'=>'index'));
# $Route->connect('/pages/*', array('controller' => 'pages', 'action'
=> 'display'));
# $Route->connect('/templates/*', array('controller' => 'templates',
'action' => 'display'));
$Route->connect('/pages/*', array('controller' => 'templates',
'action' => 'display'));
And in the menu nav.thtml I have put a link to my next page
<li class="first"><a href="templates/test">Test</a></li>
which when I click menu item 'test' gives me the page Ok, but with URL.
http://localhost/app/templates/test
If I put in the menu
<li class="first"><a href="test">Test</a></li>
I get this:
http://localhost/app/test
Missing controller - ie it is not using the templates I think.
How do I get the URL correct? Or should I be routing this differently?
Hugh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---