• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Benefits of the CodeIgniter Framework
 

Benefits of the CodeIgniter Framework

on

  • 27,244 views

Toby Beresford's slides from the PHP London Conference 08 on CodeIgniter - part of a comparison with Zend and Symfony

Toby Beresford's slides from the PHP London Conference 08 on CodeIgniter - part of a comparison with Zend and Symfony

Statistics

Views

Total Views
27,244
Views on SlideShare
26,856
Embed Views
388

Actions

Likes
27
Downloads
893
Comments
4

14 Embeds 388

http://hauerland.wordpress.com 198
http://joefrancisninal.info 78
http://www.slideshare.net 58
http://192.168.10.3 16
http://rnnadaf.ubdtcse.in 10
http://localhost 9
https://twitter.com 8
http://www.linkedin.com 3
http://rnnadaf.webuda.com 2
http://rnnadaf.net63.net 2
http://www.techgig.com 1
http://fanscloud.pbworks.com 1
http://10.150.200.57 1
http://webcache.googleusercontent.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

14 of 4 previous next Post a comment

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Benefits of the CodeIgniter Framework Benefits of the CodeIgniter Framework Presentation Transcript

    • CodeIgniter PHP Framework Toby Beresford [email_address]
    • Content
      • Bio
      • Benefits
      • Why Frameworks
      • MVC
      • Demo
      • Links
    • Toby Bio
      • 12 years – professional Web App Development
        • 5 years - Lotus Domino
        • 7 years – PHP
        • 8 months - CodeIgniter
      • Toby Beresford Applications Ltd
      • Platform applications
        • Facebook
        • Bebo, Myspace et al.
      • Clients
        • Sky News, Last.fm, Comic Relief, VideoJug, AfffiliateWindow, .name registry….
      • [email_address] / www.tobyberesford.com
      • h www.facebook.com/pages/Toby-Beresford-Applications/6164004474
    • Benefits of CI
      • Small
      • Fast
      • Simple
      • Customer ready
        • a sys admin can install the CI framework in a few minutes
        • great documentation means easy hand over: new developers just learn the framework not your home grown MVC code
      • Great for mash-up apps using multiple platforms
        • eg. Facebook apps
      • Cleaner code
    • Why Frameworks No framework Framework Me and my framework Framework Platform API Me, my framework and a Platform API
    • MVC
      • View (views/frog_count.php)
        • <html>
        • <body>
          • <h1> You’ve <?=$froggies;?> items in list</h1>
          • </body>
        • </html>
      • Controller (controllers/my_controller.php)
        • function total_frogs () {
          • $this->load->model(“frogs”);
          • $number_of_frogs = $this->frogs->count_frogs();
          • $data[‘froggies’] = $number_of_frogs;
          • $this->load->view(“frog_view”, $data);
        • }
      • Model (models/frogs.php)
        • function count_frogs() {
          • $this->db->where(“type”,”frog”);
          • $this->db->from(“animals”);
          • $query = $this->db->get();
          • Return $query->num_rows();
          • }
      Model View Controller
    • How to run a CI method
      • http:// www.my_server.com/index.php/my_controller/my_frogs
      Where you’ve installed CI Your main controller file: System/application/controllers/my_controller.php The name of a method in your controller
    • Download from www.codeigniter.com
    • Upload to your server
    • See the welcome screen
    • Create your database
    • Configure CodeIgniter Base URL
    • Configure Database Connection
    • Create a controller
    • Add the view
    • Try it
    • Send variables to the view via an array VIEW CONTROLLER
    • And…
    • Model: Get item
      • Uses ActiveRecord
    • Model: Put Item
    • Model: Get all
    • Model: Delete Item
    • Controller: Add
    • View: Add/Edit
    • User Interface: Add
    • Controller: Save
    • Controller: Edit
    • User Interface: Edit
    • Controller: List all
    • Views: List
      • Note we can use ordinary PHP in the views, no template language to learn
    • User Interface: List
    • Controller: Delete
    • Views: Delete Confirm
    • User Interface: Delete
    • Class Libraries and Helpers Helper Reference Array Helper Cookie Helper Date Helper Directory Helper Download Helper Email Helper File Helper Form Helper HTML Helper Inflector Helper Path Helper Security Helper Smiley Helper String Helper Text Helper Typography Helper URL Helper XML Helper Class Reference Benchmarking Class Calendaring Class Config Class Database Class Email Class Encryption Class File Uploading Class FTP Class HTML Table Class Image Manipulation Class Input and Security Class Loader Class Language Class Output Class Pagination Class Session Class Trackback Class Template Parser Class Unit Testing Class URI Class User Agent Class Validation Class XML-RPC Class Zip Encoding Class
    • Summary
      • CI is fast to run, light to deploy and easy to learn
      • Great for mash-up applications in the platform world
        • Wishlist = Eg. AffiliateWindow retailer list API, product API, Facebook UI, Facebook User tables, + PayPal mass pay for commissions
    • Useful links
      • www.codeigniter.com
        • User manual, community forums, releases
      • www.kohanaphp.com
        • PHP5 CodeIgniter fork
      • www.phpframeworks.info
        • All the frameworks side by side
      • www.people4web2.com
        • Contractor site with a skills category for the major PHP Frameworks
      • LondonGarage06.eventbrite.com
        • Facebook Developer Garage – 5 th March
      • Questions?
        • [email_address]