naming Model
I have following Controller and Model set up manually since the baker
is not so easy to use.
But somehow I can't get to work. First of all, about the class name, I
am not sure why they want to use singular for model and plural for
controller
and small letters for routes.php. It's been nightmare with cakephp
project for last 5 months.
class TemplatesController extends AppController {
$name = "Templates";
function index(){
}
}
class Template extends exends Model{
$name = "Template";
}
Router::connect('/template_page/:id',array('controller'=>templates',
'action' => 'index', 'client'=>$domains[0]) );
--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home