Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to developing an website application. That website using cakePHP Framework. I am just learn about cakePHP. CakePHP using MVC. When i opened View file, theres alot file with ctp extension. What is ctp extension for? so what is that relation to Model and Controller File?

What I have tried:

admin_dashboard.ctp:

<!-- Content Header (Page header) -->
           <?php
               $permitted_module = $this->General->CheckIsPermitted($this->Session->read('Auth.User.id'),'user_manager');
               $admin_role_id = $this->Session->read('Auth.User.role_id');
               // pr($permitted_module);die;
           ?>
               <section class="content-header">
                   <h1>
                       Dashboard
                       <small>Control panel</small>
                   </h1>
                   <ol class="breadcrumb">
                       <li><a href="javascript:void(0)">class="fa fa-dashboard"> <?php echo $this->Html->link('Home', array('controller' => 'admins', 'action' => 'dashboard', 'plugin' => null)); ?></a></li>
                       <li class="active">Dashboard</li>
                   </ol>
               </section>
Posted
Updated 9-Mar-17 1:35am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900