I am pretty new to cake.
I am aware of naming conventions in cakePHP as I have created some
more models n controller they are working fine. Here the table name
itself is in singular name format. And I am not suppose to change the
table name to plural.
I am facing a problem while naming the controller name.
Here it goes------>
I have a table called myname(id,name)
I created a model as myname.php
<?php
class Myname extends AppModel {
var $name = 'Myname';
}
?>
I created a controller as myname_controller.php
<?php
class MynameController extends AppController {
var $name = 'Myname';
var $components = array('Auth');
. . . . . . .
}
?>
and a view.ctp file
I have several tables of singular name.
Please help me...
Thanks in advance
:)
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
To unsubscribe, reply using "remove me" as the subject.
No comments:
Post a Comment