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

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 569
    Comment on it

    After downlaoding and extracting CakePHP folder, one should see the following files and folders:

     app
     cake
    vendors
    plugins
    .htaccess
    index.php
    README
    

    Three main folders in which one will usually work:


    1.The app folder is one where the applications files will be placed.It's further divided into sub folders and files:

    a)config Configuration details i.e Database connection details, bootstrapping, core configuration files and other details are stored here.


    b)controllers

    Comprises of applications controllers and it's components.


    c)libs

    Contains internal libraries or we can sat 1st Party classes or libraries.This keeps your organizations internal libraries separete from vendor libraries.


    d)locale


    e)models

    Comprises of applications models, behaviors, and other datasources.


    f)plugins

    Comprises of Plugin packages.


    g)tmp

    Used for storing temporary data in cakePHP.This folder usually stores model descriptions, temporary log(s) files, and session information when required.

    This should be made writable through providing permissions i.e 777.


    h)vendors

    All the third-party classes or libraries are placed here.By this we can easy access then using the code line App::import(vendor, name) function.


    i)views

    All Presentational files should be placed here i.e ( elements, error pages, helpers, layouts, and view files).


    j)webroot

    This folder is said to be the document root of your application.It can also hold spaces for CSS stylesheets, images, and JavaScript files.



    2.The cake folder is where we worked our magic.One should not edit files in this folder.We can call it as core too.

    3.Finally, the vendors folder is where all the third-party PHP libraries used for cakePHP applications are being placed.

 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: