http://book.cakephp.org/2.0/en/plugins/how-to-create-plugins.html
-- i don't know run index.ctp in my browser. Please help me!
in bootstrap.php
CakePlugin::load('ContactManager');
in routes.php
Router::connect('/', array('plugin' => 'ContactManager', 'controller' => 'Contacts', 'action' =>'index'));
http://i.imgur.com/tjPklMS.jpg
ContactManagerAppController.php
<?php class ContactManagerAppController extends AppController {}
ContactsController.php
<?php class ContactsController extends ContactManagerAppController { public $uses = array('ContactManager.Contact'); public function index() { //... } }
ContactManagerAppModel.php
<?php class ContactManagerAppModel extends AppModel {}
Contact.php
class Contact extends ContactManagerAppModel {}
How display index.ctp in my browser index.ctp
<?php echo 'hello'; ?>
http://localhost/cakephp/ContactManager/Contacts --> wrong
http://i.imgur.com/IrRFJKc.jpg
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment