Baking with CakePHP a practical overview byValberg Lárusson
MyRecipes-Online.com
What is CakePHP?A framework for building PHP websites and applications.
What does that mean?Its a bunch of PHP code which provides commonly used functionality so you don’t have to create it your self.
How does CakePHP do that?Library like reusable codeConvention over configurationMVC for structureORM(ish) for database mapping
How do I use it?Download the codeExtract to your project folderCreate yourDatabase tableModelControllerView(or just get started with CRUD scaffolding)
MVCModel, database mappingView, what the user seesController, the business logichttp://book.cakephp.org/view/10/Understanding-Model-View-Controller  >>
ORMCake PHP uses an Ruby on Rails like Active Record system to map models to objectsNot Cake’s strongest feature but pretty goodhttp://en.wikipedia.org/wiki/Object-relational_mapping >>
The 15 minute BlogInstall CakePHPCreate the DatabaseCreate the Model Create the ControllerCreate Views>>
URL’s and SEOCake uses mod_rewrite to provide readable URL’swww.domain.com/controller/action/param1This is controlled via .htacess filesCan be turned off if .htacess is not read
RoutingRouting is a feature that maps URLs to controller actions. You can use Route configurations to define how your website maps your web addressesExampleRouter::connect('/admin', array('controller' => 'pages', 'action' => 'index', 'admin' => true));Maps http://website.com/admin to the admin_index action in the pages controller
ComponentsAccess Control Lists (Acl)AuthenticationCookiesEmailRequest Handling(getClientIP(), getReferrer(), isMobile())Security ComponentSessionsA wrapper for $_SESSION + added methods
BehavioursAclintegrate a model with your ACL systemContainableImprovement on recursive findsTranslateTable contains translations and the language is set in either the Model or ControllerTreeAssists in maintaining the structure of the site
HelpersAjaxCacheFormHtmlJavascriptNumberPaginator
RSS
Session
Text
Time
XMLUtility LibrariesSecurity methods
Hashing, encrypting
Cache
HttpSocket
To fetch content InflectorSlug, pluralize, tableizeString methodsuuid, insertXML parsingSetArray management

Baking With Cake Php

  • 1.
    Baking with CakePHPa practical overview byValberg Lárusson
  • 2.
  • 3.
    What is CakePHP?Aframework for building PHP websites and applications.
  • 4.
    What does thatmean?Its a bunch of PHP code which provides commonly used functionality so you don’t have to create it your self.
  • 5.
    How does CakePHPdo that?Library like reusable codeConvention over configurationMVC for structureORM(ish) for database mapping
  • 6.
    How do Iuse it?Download the codeExtract to your project folderCreate yourDatabase tableModelControllerView(or just get started with CRUD scaffolding)
  • 7.
    MVCModel, database mappingView,what the user seesController, the business logichttp://book.cakephp.org/view/10/Understanding-Model-View-Controller >>
  • 8.
    ORMCake PHP usesan Ruby on Rails like Active Record system to map models to objectsNot Cake’s strongest feature but pretty goodhttp://en.wikipedia.org/wiki/Object-relational_mapping >>
  • 9.
    The 15 minuteBlogInstall CakePHPCreate the DatabaseCreate the Model Create the ControllerCreate Views>>
  • 10.
    URL’s and SEOCakeuses mod_rewrite to provide readable URL’swww.domain.com/controller/action/param1This is controlled via .htacess filesCan be turned off if .htacess is not read
  • 11.
    RoutingRouting is afeature that maps URLs to controller actions. You can use Route configurations to define how your website maps your web addressesExampleRouter::connect('/admin', array('controller' => 'pages', 'action' => 'index', 'admin' => true));Maps http://website.com/admin to the admin_index action in the pages controller
  • 12.
    ComponentsAccess Control Lists(Acl)AuthenticationCookiesEmailRequest Handling(getClientIP(), getReferrer(), isMobile())Security ComponentSessionsA wrapper for $_SESSION + added methods
  • 13.
    BehavioursAclintegrate a modelwith your ACL systemContainableImprovement on recursive findsTranslateTable contains translations and the language is set in either the Model or ControllerTreeAssists in maintaining the structure of the site
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
    To fetch contentInflectorSlug, pluralize, tableizeString methodsuuid, insertXML parsingSetArray management