Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • File Structure of CakePHP 3.0

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 850
    Comment on it

    File Structure of CakePHP 3.0

    Welcome to FindNerd. Today we are going to discuss the file structure in CakePHP3. If you have worked with previous versions of CakePHP then you will see the changes in cakePHP3 file structure. CakePHP developers have modified the file as well as folder structure. If you talk about previous version then it contains a app folder but in CakePHP3 we have same folder with different name that is src. We are going to list all the folders in a table with their description. Please have a look.

     

    Folders Description
     bin  This includes three files cake shell script, cake.bat and cake.php. These files are known as console executables files.
     config  This folder includes different configuration files such as Database connection file, bootstrapping, core configuration files and few more.
     plugins  This folder includes third party plugins which work with your application.
     logs  This folder includes different logs files like error logs etc. This must be writable.
     src  This is your main working folder and contain your application files. We will discuss inside folders later.
     tests  This folder contains test cases for your application.
     tmp  It stores temporary data like session files. This must be writable.
     vendor  This folder contains the core files. We recommend you not to make the changes in this folder.
     webroot  This is a public folder and contains publicly available files.

     

    Inside folders of src folder

    Console : Contains shell and console related tasks.

    Controller : Controller files with its component files.

    Locale :  Contains language/translation related files.

    Model :  Contains tables, entities and behaviors.

    View :  Contains template,cell and helper files.

    Template : Contains elements, error pages and ctp files.

     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: