The plugin name in the url should be snake case http://localhost/cakephp/contact_manager/Contacts
On Tuesday, June 16, 2015 at 3:12:56 AM UTC+5:30, Scyllar wrote:
-- On Tuesday, June 16, 2015 at 3:12:56 AM UTC+5:30, Scyllar wrote:
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.phpCakePlugin::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'; ?>
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