Try to access this location http://localhost/cakephp/ 
<http://localhost/cakephp/ContactManager/Contacts> you will get your 
plugins index view. Because you have added route for plugin's index method 
on '/' that's why you can access your index method directly on the given 
location.

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.php
>
>> CakePlugin::load('ContactManager');
>>
>> in routes.php
>
> Router::connect('/', array('plugin' => 'ContactManager', 'controller' => 
> 'Contacts', 'action' =>'index'));
>
> http://i.imgur.com/tjPklMS.jpg
>
> ContactManagerAppController.php
>
> <?phpclass ContactManagerAppController extends AppController {}
>
> ContactsController.php
>
> <?phpclass ContactsController extends ContactManagerAppController {
>     public $uses = array('ContactManager.Contact');
>
>     public function index() {
>         //...
>     }}
>
> ContactManagerAppModel.php
>
> <?phpclass 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to