Baking With Cake Php

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Baking With Cake Php - Presentation Transcript

    1. Baking with CakePHP
      • a practical overview by
      Valberg Lárusson
    2. MyRecipes-Online.com
    3. What is CakePHP?
      A framework for building
      PHP websites and applications.
    4. 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.
    5. How does CakePHP do that?
      Library like reusable code
      Convention over configuration
      MVC for structure
      ORM(ish) for database mapping
    6. How do I use it?
      Download the code
      Extract to your project folder
      Create your
      Database table
      Model
      Controller
      View
      (or just get started with CRUD scaffolding)
    7. MVC
      Model, database mapping
      View, what the user sees
      Controller, the business logic
      http://book.cakephp.org/view/10/Understanding-Model-View-Controller >>
    8. ORM
      Cake PHP uses an Ruby on Rails like Active Record system to map models to objects
      Not Cake’s strongest feature but pretty good
      http://en.wikipedia.org/wiki/Object-relational_mapping >>
    9. The 15 minute Blog
      Install CakePHP
      Create the Database
      Create the Model
      Create the Controller
      Create Views
      >>
    10. URL’s and SEO
      Cake uses mod_rewrite to provide readable URL’s
      www.domain.com/controller/action/param1
      This is controlled via .htacess files
      Can be turned off if .htacess is not read
    11. Routing
      Routing is a feature that maps URLs to controller actions.
      You can use Route configurations to define how your website maps your web addresses
      Example
      Router::connect('/admin', array('controller' => 'pages', 'action' => 'index', 'admin' => true));
      Maps http://website.com/admin to the admin_index action in the pages controller
    12. Components
      Access Control Lists (Acl)
      Authentication
      Cookies
      Email
      Request Handling
      (getClientIP(), getReferrer(), isMobile())
      Security Component
      Sessions
      A wrapper for $_SESSION + added methods
    13. Behaviours
      Acl
      integrate a model with your ACL system
      Containable
      Improvement on recursive finds
      Translate
      Table contains translations and the language is set in either the Model or Controller
      Tree
      Assists in maintaining the structure of the site
    14. Helpers
      Ajax
      Cache
      Form
      Html
      Javascript
      Number
      • Paginator
      • RSS
      • Session
      • Text
      • Time
      • XML
    15. Utility Libraries
      • Security methods
      • Hashing, encrypting
      • Cache
      • HttpSocket
      • To fetch content
      Inflector
      Slug, pluralize, tableize
      String methods
      uuid, insert
      XML parsing
      Set
      Array management
    16. Console Applications
      Code generation
      Schema management and migrations
    17. Testing
      CakePHP integrates SimpleTest
      Unit testing and Web testing
      Test-driven development
    18. A few Cake PHP websites
    19. More websites
    20. More websites
    21. More websites
    22. The big questions
      Performance
      Speed
      Load tolerance
      Security
      Stability and uptime
    23. Room for improvements?
      Debugging tools
      Documentation is reasonable
      Integrated version control
      Commercial support for enterprise deployment
      >>
    SlideShare Zeitgeist 2009

    + valbergvalberg Nominate

    custom

    423 views, 1 favs, 0 embeds more stats

    A hands on introduction to CakePHP presented at the more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 423
      • 423 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 9
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories