SlideShare une entreprise Scribd logo
1  sur  46
Télécharger pour lire hors ligne
FuelPHP
            CHRISTOPHER JOHN CUBOS
WEB DESIGN AND DEVELOPMENT MONTH (AUGUST 2011)
 COLLEGES & UNIVERSITIES DAVAO CITY PHILIPPINES




         FuelPHP HMVC Framework August 2011
                  www.silicongulf.com
Who is Chris Cubos
  • Started programming at age 10 (1985)
  • Created his first website (1995)
  • The first web designer/developer in Mindanao
  • Been doing this for 26 years and still learning
  • Won the first web design competition in the Philippines
    (1995) held in Cebu City
  • Developed his first CD-ROM application (1996)
  • Developed his first flash site (1995)

  … forward to the present


FuelPHP HMVC Framework August 2011
www.silicongulf.com
Tech Stuff
  • Languages: Q/BASIC/A, Pascal, C, C++,
    Assembly, PHP, JavaScript, VBScript, ASP,
    AutoLISP, Lingo, ActionScripting, etc…
  • PHP Frameworks: CodeIgniter, FuelPHP
  • CMS: Wordpress, Drupal, Joomla, Mambo, etc
  • Applications: Photoshop, Dreamweaver,
    Illustrator, AfterEffects, Premiere, CS, etc…



FuelPHP HMVC Framework August 2011
www.silicongulf.com
1st    Web Development Company
  • Won the Philippine Webby Awards for
    Multimedia Category
  • Won Davao Web Design Competition in multiple
    categories and the overall best web design
  • 1st Company to develop flash based applications
  • 1st Company to develop multimedia CD-ROMs
  • 1st Company to develop web portals
  • 2nd Company to develop a PH search engine
  • Won multiple awards in web design, logo design

FuelPHP HMVC Framework August 2011
www.silicongulf.com
Yes the present
  • He currently devotes his time helping students
    enhance their skills with the non-profit
    organization called the SiliconGulf Initiative
  • He is also organizing large I.T. events in the
    Davao and currently organized the most number
    of I.T. events in a single month.
  • Furthermore, he is currently developing the the
    first game-based training center in Mindanao


FuelPHP HMVC Framework August 2011
www.silicongulf.com
Brewing
  • We are currently developing the first game-based
    training center in Mindanao
  • Multiple mobile apps and games
  • Organizing multiple upcoming I.T. events




FuelPHP HMVC Framework August 2011
www.silicongulf.com
What is Fuel PHP?
  • Fuel is a simple, flexible, community driven PHP
    5.3 web framework based on the best ideas of
    other frameworks with a fresh start.
  • The framework was started in late 2010 by Dan
    Horrigan then shortly after the team grew to
    include Phil Sturgeon, Jelmer Schreuder and
    Harro Verton. The team has decades of PHP
    experience between them and have all been
    involved with Open-Source projects such as
    CodeIgniter, PyroCMS, ExiteCMS and
    DataMapper ORM to name but a few.
FuelPHP HMVC Framework August 2011
www.silicongulf.com
Basic Facts
  •   9 months in the making of (1.0)
  •   24,155 lines of goodness.
  •   40+ developers contributed
  •   Community driven
  •   Based on ideas from CodeIgniter, Kohana and Rails but
      totally rewritten from the ground
  •   Lightweight (800kb.gz)
  •   Load what you need
  •   Configuration over convention
  •   No automagic


FuelPHP HMVC Framework August 2011
www.silicongulf.com
Why I Choose FuelPHP
  •   Quality of code (very sexy)
  •   Coding standards
  •   Lightweight (smallest footprint 856kb)
  •   Performance
      – Load only what is needed
      – Short travel for each code execution
  • Easy to create your own libraries
  • Responsive community
  • Flexibility to adapt to MY style

FuelPHP HMVC Framework August 2011
www.silicongulf.com
Getting Started: Download
  www.fuelphp.com

  • Framework
  • Documentation
  • Packages
     – Oil
     – Auth
     – ORM


FuelPHP HMVC Framework August 2011
www.silicongulf.com
Requirements
  •   Web Server – Apache running on *nix.
  •   Database
  •   PHP Version – 5.3.2
  •   mod_rewrite – For clean and seo-friendly URLs
  •   PHPUnit – 3.5.12 (for testing)

  • Works easily with WAMP and XAMPP



FuelPHP HMVC Framework August 2011
www.silicongulf.com
Installing: Windows
  • Install WAMP or XAMPP
  • Download Fuel PHP
  • Run!




FuelPHP HMVC Framework August 2011
www.silicongulf.com
Recommended Tools
  •   Adobe Dreamweaver
  •   CodeLobster
  •   E-texteditor
  •   Komodo
  •   Eclipse
  •   Google Chrome
  •   WAMP
  •   Notepad++
  •   Navicat

FuelPHP HMVC Framework August 2011
www.silicongulf.com
Your First Animation
Clicking your way through Adobe Edge
FuelPHP MVC
  • MVC is an approach to separate code depending
    on what role it plays in an application
  • The application starts by loading a Controller
  • That Controller executes a method which
    retrieves data using Models
  • Once done, the controller decides what View to
    load, it contains the output the visitors get to see
  • Clear separation of design and business logic


FuelPHP HMVC Framework August 2011
www.silicongulf.com
How does MVC work?


                                     Controller




                   View                           Model


FuelPHP HMVC Framework August 2011
www.silicongulf.com
Controllers
  • Fuel's routing decides based on the
    requested URL what controller to
    load and what method to call upon it.
  • The Controller decides what actions to take, what
    to do with any user input, what data gets
    manipulated and which View is shown
  • The Controller does none of these things itself
    however; it calls upon Models and Classes to do
    the work.

FuelPHP HMVC Framework August 2011
www.silicongulf.com
Models
  • Models contain data that needs to be processed
    Create, Read, Update and Delete (CRUD)
  • A Model is a representation of some kind of data
    and has the methods to change them.
  • Never put SQL queries in a Controller, those are
    put in the Model and the Controller will call it.
  • If your database changes you won't need to
    change all your Controllers, just the Model.


FuelPHP HMVC Framework August 2011
www.silicongulf.com
Views
  • Views contain your HTML, which should never
    be found in your Controllers or any other class
    that is not specifically meant to create output
  • Separate your design from your logic
  • Change the layout and look through the Views
  • Views can contain loops, results, forms and the
    overall design and layout of the site.



FuelPHP HMVC Framework August 2011
www.silicongulf.com
ViewModels
  • When your application gets more complex you'll
    discover that it gets hard to decide if a piece of
    logic really belongs in the Controller
  • What if it is very specifically about the View and
    has little to do with your application logic?
  • This is where ViewModels come in; they are the
    glue between your controllers and your views.




FuelPHP HMVC Framework August 2011
www.silicongulf.com
HMVC Requests
  • HMVC requests are a great way to separate logic
    and re-use controller logic in multiple places.
  • One common use of this is when you use a theme
    or template engine to generate your pages, where
    every page is divided into sections, and sections
    are populated by widgets.
  • By using modules to produce the widget output,
    you can create a highly modular application, with
    easy to re-use components.

FuelPHP HMVC Framework August 2011
www.silicongulf.com
Let’s Code .. Not!!!
  Excited, hehe




FuelPHP HMVC Framework August 2011
www.silicongulf.com
OIL
  • Generate - Build MVC components, migrations
    and entire scaffolding.
  • Refine - Run tasks such as migrate and your own
    custom ones.
  • Package - Install, update and remove packages.
  • Console - Test your code in real time using an
    interactive shell.



FuelPHP HMVC Framework August 2011
www.silicongulf.com
Things you need to do
  •   Create a database (PHPMyAdmin/Navicat)
  •   Configure database (/fuel/app/config/db.php)
  •   Add ORM (/fuel/app/config/config.php)
  •   Create basic CRUD site with OIL




FuelPHP HMVC Framework August 2011
www.silicongulf.com
Creating Tables and CRUD
  > php oil g scaffold users username:varchar
    password:varchar sex:tinyint

  Creating model: C:wampwwwfuelphpfuelappclasses/model/users.php
  Creating migration: C:wampwwwfuelphpfuelappmigrations/001_create_users.php
  Creating controller: C:wampwwwfuelphpfuelappclasses/controller/users.php
  Creating view: C:wampwwwfuelphpfuelappviews/users/index.php
  Creating view: C:wampwwwfuelphpfuelappviews/users/view.php
  Creating view: C:wampwwwfuelphpfuelappviews/users/create.php
  Creating view: C:wampwwwfuelphpfuelappviews/users/edit.php
  Creating view: C:wampwwwfuelphpfuelappviews/users/_form.php
  Creating view: C:wampwwwfuelphpfuelappviews/template.php


  > php oil refine migrate:up

FuelPHP HMVC Framework August 2011
www.silicongulf.com
Controllers (davaoit.php)
  class Controller_Davaoit extends Controller {

      public function action_index()
      {
        $data[‘title’] = ‘Welcome to Davao IT’;
        $data[‘content’]=‘We are a group of great developers’;
        $data[‘nav’]=array(‘home’, ‘about’, ‘contact’)
        $this->response->body = View::factory(‘davaoit/index’, $data);
      }
  }



FuelPHP HMVC Framework August 2011
www.silicongulf.com
Views (davaoit/index.php)
  <html>
  <head>
    <title><?php echo $title;?></title>
  </head>
  <body>
    <header><?php echo $title;?></header>
    <nav><?php $nav;?></nav>
    <article><?php echo $content;?></article>
  </body>
  </html>

FuelPHP HMVC Framework August 2011
www.silicongulf.com
Showcase: What we’ve done.
  •   DEMO: Social networking site using
  •   DEMO: Game-based learning system
  •   DEMO: Photo Gallery
  •   DEMO: Basic user authentication




FuelPHP HMVC Framework August 2011
www.silicongulf.com
Social Network (development)




FuelPHP HMVC Framework August 2011
www.silicongulf.com
Photo Gallery (under development)




FuelPHP HMVC Framework August 2011
www.silicongulf.com
What Others have done
  •   http://lumberhandling.com/ (corporate site)
  •   http://poll.froedge.com (online poll)
  •   http://pastecode.com (cut and paste code)
  •   http://wtfismypagerank.com (pr checker)
  •   http://mjs.me/ (url shortener)
  •   http://www.scrapyrd.com/ (code snippets)
  •   http://www.amwaitingfor.com/ (community)
  •   http://www.colorfyit.com/ (analyze site colors)


FuelPHP HMVC Framework August 2011
www.silicongulf.com
What’s next
  •   Try something in OIL
  •   Modify it
  •   Read docs
  •   Create some apps
  •   Repeat and master
  •   Join forums
  •   Search the net



FuelPHP HMVC Framework August 2011
www.silicongulf.com
Thanks
  Oops… There’s more




FuelPHP HMVC Framework August 2011
www.silicongulf.com
Full year of IT Events
  August 2011: Web Development Month
  September 2011: Mobile Application Month
  October 2011: Animation Month
  November 2011: Bloggers Month
  December 2011: SEO Month
  January 2012: Technopreneurship Month
  February 2012: I.T. Education Month
  March 2012: I.T. Career Month
  April 2012: Gaming Month
  May 2012: Graphic Design Month
  June 2012: Hacking and Network Security Month
  July 2012: Software Development Month

FuelPHP HMVC Framework August 2011
www.silicongulf.com
August I.T. Events by PGO
  University of Southeastern Philippines (USEP)
  Friday, August 12 · 9:00am - 11:30am
  http://www.facebook.com/event.php?eid=229646943743096

  John Paul II College (JP2C)
  Saturday, August 13 · 9:00am - 4:00pm
  http://www.facebook.com/event.php?eid=220035684709122

  University of Mindanao (UM)
  Wednesday, August 17 · 1:00pm - 5:00pm
  http://www.facebook.com/event.php?eid=245697658786703

  University of Immaculate Conception (UIC)
  Saturday, August 20 · 1:00pm - 5:00pm
  http://www.facebook.com/event.php?eid=231713253532167

  ACLC
  Monday, August 22 · 1:00pm - 4:00pm
  http://www.facebook.com/event.php?eid=231458190229578


FuelPHP HMVC Framework August 2011
www.silicongulf.com
August I.T. Events by PGO
  Holy Cross (HCDC)
  Tuesday, August 23 · 3:00pm - 6:00pm
  http://www.facebook.com/event.php?eid=253809011309471

  InterCity College of Science and Technology (ICST)
  Wednesday, August 24 · 9:00pm - 11:00pm
  http://www.facebook.com/event.php?eid=225237414194879

  AMA Computer College
  Thursday, August 25 · 9:30am - 1:00pm
  http://www.facebook.com/event.php?eid=138109472943706

  STI College
  Friday, August 26 · 1:00am - 4:00pm
  http://www.facebook.com/event.php?eid=124462760983852


FuelPHP HMVC Framework August 2011
www.silicongulf.com
Competition
  On-the-spot Student Web Design Competition
  August 27, 2011
  http://www.facebook.com/event.php?eid=241281559236739

  Entries can be found at
  http://www.silicongulf.com/competitions/web_design




FuelPHP HMVC Framework August 2011
www.silicongulf.com
Our Loving Supporters
  •   The SiliconGulf Initiative
  •   Davao IT
  •   Adobe User Group
  •   PHP Philippines
  •   Developers, Entrepreneurs, Artists of Davao
  •   SEO-Philippines
  •   The IT School with no name yet
  •   Philippine Global Outsourcing


FuelPHP HMVC Framework August 2011
www.silicongulf.com
Thanks
  To all speakers, PHP framework developers, our
   team at Philippine Global Outsourcing, students
   of all participating schools

  To the Adobe Development Team for this
   wonderful piece of software.

  Learn from the best www.silicongulf.com


FuelPHP HMVC Framework August 2011
www.silicongulf.com
Contact
  2nd Floor Door #8 Andreliz Bldg
  #238 Araullo Extension
  8000 Davao City Philippines
  philippineoutsourcing@gmail.com
  www.philippineglobaloutsourcing.com

  +63 916 477 9322 (globe)
  +63 907 775 6544 (smart)
  +63 922 551 4009 (sun)
  +63 923 725 4512 (sun)
  +63 82 224 1040 (landline)

FuelPHP HMVC Framework August 2011
www.silicongulf.com
Copyright
    This reference material is exclusively distributed to the
    students of SiliconGulf Campus and should not be
    distributed, transmitted, or shared without the prior written
    consent of Christopher John Cubos http://
    www.philippineglobaloutsourcing.com/chriscubos ,
    SiliconGulf http://www.silicongulf.com/ or Philippines
    Outsourcing http://www.philippineglobaloutsourcing.com/ .

    This class material should be discussed by a trained
    instructor from SiliconGulf to maximize the learning and
    understanding of the topic. Others belong to their respective
    copyright holders.

    © Copyright 2011 SiliconGulf Campus and Christopher John
    Cubos. All Rights Reserved.
FuelPHP HMVC Framework August 2011
www.silicongulf.com
Disclaimer
  • Course technology and the author specifically
    disclaim any and all other warranties, either
    express or implied, including warranties of
    merchantability, suitability to a particular task or
    purpose, or freedom from errors.
  • Some states do not allow for exclusion of implied
    warranties or limitation of incidental or
    consequential damages, so these limitations
    might not apply to you.

FuelPHP HMVC Framework August 2011
www.silicongulf.com
SiliconGulf Campus
    SiliconGulf Campus is one of the pioneers of game based learning
    system in the Philippines. Our goal is to combined complex theories
    with fun and excitement of playing games.

    SiliconGulf Campus
    2nd Floor Door #8 Andreliz Bldg.
    #238 Araullo Extension
    8000 Davao City Philippines
    silicongulfcampus@gmail.com
    www.silicongulf.com
    +63 916 477 9322 (globe)
    +63 907 775 6544 (smart)
    +63 922 551 4009 (sun)
    +63 923 725 4512 (sun)
    +63 82 224 1040 (landline)

FuelPHP HMVC Framework August 2011
www.silicongulf.com
FuelPHP HMVC Framework August 2011
www.silicongulf.com

Contenu connexe

Tendances

How to outsource the pain of drupal translation to smartling from loparev
How to outsource the pain of drupal translation to smartling from loparevHow to outsource the pain of drupal translation to smartling from loparev
How to outsource the pain of drupal translation to smartling from loparevOleksii Bogush
 
Practical PHP Deployment with Jenkins
Practical PHP Deployment with JenkinsPractical PHP Deployment with Jenkins
Practical PHP Deployment with JenkinsAdam Culp
 
[drupalday2017] - DevOps: strumenti di automazione per Drupal8
[drupalday2017] - DevOps: strumenti di automazione per Drupal8[drupalday2017] - DevOps: strumenti di automazione per Drupal8
[drupalday2017] - DevOps: strumenti di automazione per Drupal8DrupalDay
 
Build & deploy PHP application (intro level)
Build & deploy PHP application (intro level)Build & deploy PHP application (intro level)
Build & deploy PHP application (intro level)Anton Babenko
 
To infinity and Beyond with Plone 5!
To infinity and Beyond with Plone 5!To infinity and Beyond with Plone 5!
To infinity and Beyond with Plone 5!Rikupekka Oksanen
 
Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...
Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...
Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...Pantheon
 
Testing Your Code as Part of an Industrial Grade Workflow
Testing Your Code as Part of an Industrial Grade WorkflowTesting Your Code as Part of an Industrial Grade Workflow
Testing Your Code as Part of an Industrial Grade WorkflowPantheon
 
Scaling php - Intercon php
Scaling php - Intercon phpScaling php - Intercon php
Scaling php - Intercon phpHandrus Nogueira
 
Content Management Systems and Refactoring - Drupal, WordPress and eZ Publish
Content Management Systems and Refactoring - Drupal, WordPress and eZ PublishContent Management Systems and Refactoring - Drupal, WordPress and eZ Publish
Content Management Systems and Refactoring - Drupal, WordPress and eZ PublishJani Tarvainen
 
One click deployment with Jenkins - PHP Munich
One click deployment with Jenkins - PHP MunichOne click deployment with Jenkins - PHP Munich
One click deployment with Jenkins - PHP MunichMayflower GmbH
 
Untangling fall2017 week1
Untangling fall2017 week1Untangling fall2017 week1
Untangling fall2017 week1Derek Jacoby
 
[drupalday2017] - Devel - D8 release party
[drupalday2017] - Devel - D8 release party[drupalday2017] - Devel - D8 release party
[drupalday2017] - Devel - D8 release partyDrupalDay
 
Ruby On Rails Presentation
Ruby On Rails PresentationRuby On Rails Presentation
Ruby On Rails PresentationChanHan Hy
 
Writing Your First Plugin
Writing Your First PluginWriting Your First Plugin
Writing Your First PluginGeorge Ornbo
 
Workshop: Introduction to Web Components & Polymer
Workshop: Introduction to Web Components & Polymer Workshop: Introduction to Web Components & Polymer
Workshop: Introduction to Web Components & Polymer John Riviello
 
Using Composer to create manageable WordPress websites
Using Composer to create manageable WordPress websitesUsing Composer to create manageable WordPress websites
Using Composer to create manageable WordPress websitesAnna Ladoshkina
 
30 Skills to Master to Become a Senior Software Engineer
30 Skills to Master to Become a Senior Software Engineer30 Skills to Master to Become a Senior Software Engineer
30 Skills to Master to Become a Senior Software EngineerSean Coates
 

Tendances (20)

How to outsource the pain of drupal translation to smartling from loparev
How to outsource the pain of drupal translation to smartling from loparevHow to outsource the pain of drupal translation to smartling from loparev
How to outsource the pain of drupal translation to smartling from loparev
 
The future of templating and frameworks
The future of templating and frameworksThe future of templating and frameworks
The future of templating and frameworks
 
Whats next in templating
Whats next in templatingWhats next in templating
Whats next in templating
 
Practical PHP Deployment with Jenkins
Practical PHP Deployment with JenkinsPractical PHP Deployment with Jenkins
Practical PHP Deployment with Jenkins
 
[drupalday2017] - DevOps: strumenti di automazione per Drupal8
[drupalday2017] - DevOps: strumenti di automazione per Drupal8[drupalday2017] - DevOps: strumenti di automazione per Drupal8
[drupalday2017] - DevOps: strumenti di automazione per Drupal8
 
Build & deploy PHP application (intro level)
Build & deploy PHP application (intro level)Build & deploy PHP application (intro level)
Build & deploy PHP application (intro level)
 
To infinity and Beyond with Plone 5!
To infinity and Beyond with Plone 5!To infinity and Beyond with Plone 5!
To infinity and Beyond with Plone 5!
 
Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...
Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...
Creating a Smooth Development Workflow for High-Quality Modular Open-Source P...
 
Untangling4
Untangling4Untangling4
Untangling4
 
Testing Your Code as Part of an Industrial Grade Workflow
Testing Your Code as Part of an Industrial Grade WorkflowTesting Your Code as Part of an Industrial Grade Workflow
Testing Your Code as Part of an Industrial Grade Workflow
 
Scaling php - Intercon php
Scaling php - Intercon phpScaling php - Intercon php
Scaling php - Intercon php
 
Content Management Systems and Refactoring - Drupal, WordPress and eZ Publish
Content Management Systems and Refactoring - Drupal, WordPress and eZ PublishContent Management Systems and Refactoring - Drupal, WordPress and eZ Publish
Content Management Systems and Refactoring - Drupal, WordPress and eZ Publish
 
One click deployment with Jenkins - PHP Munich
One click deployment with Jenkins - PHP MunichOne click deployment with Jenkins - PHP Munich
One click deployment with Jenkins - PHP Munich
 
Untangling fall2017 week1
Untangling fall2017 week1Untangling fall2017 week1
Untangling fall2017 week1
 
[drupalday2017] - Devel - D8 release party
[drupalday2017] - Devel - D8 release party[drupalday2017] - Devel - D8 release party
[drupalday2017] - Devel - D8 release party
 
Ruby On Rails Presentation
Ruby On Rails PresentationRuby On Rails Presentation
Ruby On Rails Presentation
 
Writing Your First Plugin
Writing Your First PluginWriting Your First Plugin
Writing Your First Plugin
 
Workshop: Introduction to Web Components & Polymer
Workshop: Introduction to Web Components & Polymer Workshop: Introduction to Web Components & Polymer
Workshop: Introduction to Web Components & Polymer
 
Using Composer to create manageable WordPress websites
Using Composer to create manageable WordPress websitesUsing Composer to create manageable WordPress websites
Using Composer to create manageable WordPress websites
 
30 Skills to Master to Become a Senior Software Engineer
30 Skills to Master to Become a Senior Software Engineer30 Skills to Master to Become a Senior Software Engineer
30 Skills to Master to Become a Senior Software Engineer
 

Similaire à FuelPHP - a PHP HMVC Framework by silicongulf.com

Introduction to PHP H/MVC Frameworks by www.silicongulf.com
Introduction to PHP H/MVC Frameworks by www.silicongulf.comIntroduction to PHP H/MVC Frameworks by www.silicongulf.com
Introduction to PHP H/MVC Frameworks by www.silicongulf.comChristopher Cubos
 
CodeIgniter - PHP MVC Framework by silicongulf.com
CodeIgniter - PHP MVC Framework by silicongulf.comCodeIgniter - PHP MVC Framework by silicongulf.com
CodeIgniter - PHP MVC Framework by silicongulf.comChristopher Cubos
 
Move past bootstrap and build our lightweight responsive framework w.v1.2
Move past bootstrap and build our lightweight responsive framework w.v1.2Move past bootstrap and build our lightweight responsive framework w.v1.2
Move past bootstrap and build our lightweight responsive framework w.v1.2Eric Overfield
 
Angular - Chapter 1 - Introduction
 Angular - Chapter 1 - Introduction Angular - Chapter 1 - Introduction
Angular - Chapter 1 - IntroductionWebStackAcademy
 
Angular Ivy- An Overview
Angular Ivy- An OverviewAngular Ivy- An Overview
Angular Ivy- An OverviewJalpesh Vadgama
 
Developing Great Apps with Apache Cordova
Developing Great Apps with Apache CordovaDeveloping Great Apps with Apache Cordova
Developing Great Apps with Apache CordovaShekhar Gulati
 
Sitecore development approach evolution – destination helix
Sitecore development approach evolution – destination helixSitecore development approach evolution – destination helix
Sitecore development approach evolution – destination helixPeter Nazarov
 
Overview of the AngularJS framework
Overview of the AngularJS framework Overview of the AngularJS framework
Overview of the AngularJS framework Yakov Fain
 
[QCon London 2020] The Future of Cloud Native API Gateways - Richard Li
[QCon London 2020] The Future of Cloud Native API Gateways - Richard Li[QCon London 2020] The Future of Cloud Native API Gateways - Richard Li
[QCon London 2020] The Future of Cloud Native API Gateways - Richard LiAmbassador Labs
 
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)TIMETOACT GROUP
 
Behavioral driven development with Behat
Behavioral driven development with BehatBehavioral driven development with Behat
Behavioral driven development with BehatPromet Source
 
Html5 today
Html5 todayHtml5 today
Html5 todayRoy Yu
 
Seattle bestpractices2010
Seattle bestpractices2010Seattle bestpractices2010
Seattle bestpractices2010Olaseni Odebiyi
 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)Brian Culver
 
Optimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best PracticesOptimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best PracticesTeamstudio
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)Brian Culver
 

Similaire à FuelPHP - a PHP HMVC Framework by silicongulf.com (20)

Introduction to PHP H/MVC Frameworks by www.silicongulf.com
Introduction to PHP H/MVC Frameworks by www.silicongulf.comIntroduction to PHP H/MVC Frameworks by www.silicongulf.com
Introduction to PHP H/MVC Frameworks by www.silicongulf.com
 
CodeIgniter - PHP MVC Framework by silicongulf.com
CodeIgniter - PHP MVC Framework by silicongulf.comCodeIgniter - PHP MVC Framework by silicongulf.com
CodeIgniter - PHP MVC Framework by silicongulf.com
 
Move past bootstrap and build our lightweight responsive framework w.v1.2
Move past bootstrap and build our lightweight responsive framework w.v1.2Move past bootstrap and build our lightweight responsive framework w.v1.2
Move past bootstrap and build our lightweight responsive framework w.v1.2
 
Codeigniter framework
Codeigniter framework Codeigniter framework
Codeigniter framework
 
Angular - Chapter 1 - Introduction
 Angular - Chapter 1 - Introduction Angular - Chapter 1 - Introduction
Angular - Chapter 1 - Introduction
 
Angular Ivy- An Overview
Angular Ivy- An OverviewAngular Ivy- An Overview
Angular Ivy- An Overview
 
Developing Great Apps with Apache Cordova
Developing Great Apps with Apache CordovaDeveloping Great Apps with Apache Cordova
Developing Great Apps with Apache Cordova
 
Sitecore development approach evolution – destination helix
Sitecore development approach evolution – destination helixSitecore development approach evolution – destination helix
Sitecore development approach evolution – destination helix
 
Overview of the AngularJS framework
Overview of the AngularJS framework Overview of the AngularJS framework
Overview of the AngularJS framework
 
[QCon London 2020] The Future of Cloud Native API Gateways - Richard Li
[QCon London 2020] The Future of Cloud Native API Gateways - Richard Li[QCon London 2020] The Future of Cloud Native API Gateways - Richard Li
[QCon London 2020] The Future of Cloud Native API Gateways - Richard Li
 
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
 
Behavioral driven development with Behat
Behavioral driven development with BehatBehavioral driven development with Behat
Behavioral driven development with Behat
 
Html5 today
Html5 todayHtml5 today
Html5 today
 
International Search Summit - How to scale technical SEO globally v4
International Search Summit - How to scale technical SEO globally v4International Search Summit - How to scale technical SEO globally v4
International Search Summit - How to scale technical SEO globally v4
 
Seattle bestpractices2010
Seattle bestpractices2010Seattle bestpractices2010
Seattle bestpractices2010
 
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
Convert your Full Trust Solutions to the SharePoint Framework (SPFx)
 
Optimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best PracticesOptimus XPages: An Explosion of Techniques and Best Practices
Optimus XPages: An Explosion of Techniques and Best Practices
 
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
How to convert your Full Trust Solutions to the SharePoint Framework (SPFx)
 
Webdevelopment
WebdevelopmentWebdevelopment
Webdevelopment
 
Developing apps faster
Developing apps fasterDeveloping apps faster
Developing apps faster
 

Plus de Christopher Cubos

Vmobile quick presentation kathleen fritz canada
Vmobile quick presentation kathleen fritz canadaVmobile quick presentation kathleen fritz canada
Vmobile quick presentation kathleen fritz canadaChristopher Cubos
 
Philippine Global Outsourcing Company Presentation for Student Career Talk
Philippine Global Outsourcing Company Presentation for Student Career TalkPhilippine Global Outsourcing Company Presentation for Student Career Talk
Philippine Global Outsourcing Company Presentation for Student Career TalkChristopher Cubos
 
Developing Arcturis - Our game-based learning system using FuelPHP - silicong...
Developing Arcturis - Our game-based learning system using FuelPHP - silicong...Developing Arcturis - Our game-based learning system using FuelPHP - silicong...
Developing Arcturis - Our game-based learning system using FuelPHP - silicong...Christopher Cubos
 
Game-based learning - Unschooling the Next Generation - SiliconGulf.com
Game-based learning - Unschooling the Next Generation - SiliconGulf.comGame-based learning - Unschooling the Next Generation - SiliconGulf.com
Game-based learning - Unschooling the Next Generation - SiliconGulf.comChristopher Cubos
 
Adobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.com
Adobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.comAdobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.com
Adobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.comChristopher Cubos
 
Yii PHP MVC Framework presentation silicongulf.com
Yii PHP MVC Framework presentation silicongulf.comYii PHP MVC Framework presentation silicongulf.com
Yii PHP MVC Framework presentation silicongulf.comChristopher Cubos
 

Plus de Christopher Cubos (7)

VMobile myTurf 2.0
VMobile myTurf 2.0VMobile myTurf 2.0
VMobile myTurf 2.0
 
Vmobile quick presentation kathleen fritz canada
Vmobile quick presentation kathleen fritz canadaVmobile quick presentation kathleen fritz canada
Vmobile quick presentation kathleen fritz canada
 
Philippine Global Outsourcing Company Presentation for Student Career Talk
Philippine Global Outsourcing Company Presentation for Student Career TalkPhilippine Global Outsourcing Company Presentation for Student Career Talk
Philippine Global Outsourcing Company Presentation for Student Career Talk
 
Developing Arcturis - Our game-based learning system using FuelPHP - silicong...
Developing Arcturis - Our game-based learning system using FuelPHP - silicong...Developing Arcturis - Our game-based learning system using FuelPHP - silicong...
Developing Arcturis - Our game-based learning system using FuelPHP - silicong...
 
Game-based learning - Unschooling the Next Generation - SiliconGulf.com
Game-based learning - Unschooling the Next Generation - SiliconGulf.comGame-based learning - Unschooling the Next Generation - SiliconGulf.com
Game-based learning - Unschooling the Next Generation - SiliconGulf.com
 
Adobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.com
Adobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.comAdobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.com
Adobe Edge Technology Preview - Web Development Month 2011 SiliconGulf.com
 
Yii PHP MVC Framework presentation silicongulf.com
Yii PHP MVC Framework presentation silicongulf.comYii PHP MVC Framework presentation silicongulf.com
Yii PHP MVC Framework presentation silicongulf.com
 

Dernier

Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 

Dernier (20)

Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 

FuelPHP - a PHP HMVC Framework by silicongulf.com

  • 1. FuelPHP CHRISTOPHER JOHN CUBOS WEB DESIGN AND DEVELOPMENT MONTH (AUGUST 2011) COLLEGES & UNIVERSITIES DAVAO CITY PHILIPPINES FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 2.
  • 3. Who is Chris Cubos • Started programming at age 10 (1985) • Created his first website (1995) • The first web designer/developer in Mindanao • Been doing this for 26 years and still learning • Won the first web design competition in the Philippines (1995) held in Cebu City • Developed his first CD-ROM application (1996) • Developed his first flash site (1995) … forward to the present FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 4. Tech Stuff • Languages: Q/BASIC/A, Pascal, C, C++, Assembly, PHP, JavaScript, VBScript, ASP, AutoLISP, Lingo, ActionScripting, etc… • PHP Frameworks: CodeIgniter, FuelPHP • CMS: Wordpress, Drupal, Joomla, Mambo, etc • Applications: Photoshop, Dreamweaver, Illustrator, AfterEffects, Premiere, CS, etc… FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 5. 1st Web Development Company • Won the Philippine Webby Awards for Multimedia Category • Won Davao Web Design Competition in multiple categories and the overall best web design • 1st Company to develop flash based applications • 1st Company to develop multimedia CD-ROMs • 1st Company to develop web portals • 2nd Company to develop a PH search engine • Won multiple awards in web design, logo design FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 6. Yes the present • He currently devotes his time helping students enhance their skills with the non-profit organization called the SiliconGulf Initiative • He is also organizing large I.T. events in the Davao and currently organized the most number of I.T. events in a single month. • Furthermore, he is currently developing the the first game-based training center in Mindanao FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 7. Brewing • We are currently developing the first game-based training center in Mindanao • Multiple mobile apps and games • Organizing multiple upcoming I.T. events FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 8. What is Fuel PHP? • Fuel is a simple, flexible, community driven PHP 5.3 web framework based on the best ideas of other frameworks with a fresh start. • The framework was started in late 2010 by Dan Horrigan then shortly after the team grew to include Phil Sturgeon, Jelmer Schreuder and Harro Verton. The team has decades of PHP experience between them and have all been involved with Open-Source projects such as CodeIgniter, PyroCMS, ExiteCMS and DataMapper ORM to name but a few. FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 9. Basic Facts • 9 months in the making of (1.0) • 24,155 lines of goodness. • 40+ developers contributed • Community driven • Based on ideas from CodeIgniter, Kohana and Rails but totally rewritten from the ground • Lightweight (800kb.gz) • Load what you need • Configuration over convention • No automagic FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 10. Why I Choose FuelPHP • Quality of code (very sexy) • Coding standards • Lightweight (smallest footprint 856kb) • Performance – Load only what is needed – Short travel for each code execution • Easy to create your own libraries • Responsive community • Flexibility to adapt to MY style FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 11. Getting Started: Download www.fuelphp.com • Framework • Documentation • Packages – Oil – Auth – ORM FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 12. Requirements • Web Server – Apache running on *nix. • Database • PHP Version – 5.3.2 • mod_rewrite – For clean and seo-friendly URLs • PHPUnit – 3.5.12 (for testing) • Works easily with WAMP and XAMPP FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 13. Installing: Windows • Install WAMP or XAMPP • Download Fuel PHP • Run! FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 14. Recommended Tools • Adobe Dreamweaver • CodeLobster • E-texteditor • Komodo • Eclipse • Google Chrome • WAMP • Notepad++ • Navicat FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 15. Your First Animation Clicking your way through Adobe Edge
  • 16. FuelPHP MVC • MVC is an approach to separate code depending on what role it plays in an application • The application starts by loading a Controller • That Controller executes a method which retrieves data using Models • Once done, the controller decides what View to load, it contains the output the visitors get to see • Clear separation of design and business logic FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 17. How does MVC work? Controller View Model FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 18. Controllers • Fuel's routing decides based on the requested URL what controller to load and what method to call upon it. • The Controller decides what actions to take, what to do with any user input, what data gets manipulated and which View is shown • The Controller does none of these things itself however; it calls upon Models and Classes to do the work. FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 19. Models • Models contain data that needs to be processed Create, Read, Update and Delete (CRUD) • A Model is a representation of some kind of data and has the methods to change them. • Never put SQL queries in a Controller, those are put in the Model and the Controller will call it. • If your database changes you won't need to change all your Controllers, just the Model. FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 20. Views • Views contain your HTML, which should never be found in your Controllers or any other class that is not specifically meant to create output • Separate your design from your logic • Change the layout and look through the Views • Views can contain loops, results, forms and the overall design and layout of the site. FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 21. ViewModels • When your application gets more complex you'll discover that it gets hard to decide if a piece of logic really belongs in the Controller • What if it is very specifically about the View and has little to do with your application logic? • This is where ViewModels come in; they are the glue between your controllers and your views. FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 22. HMVC Requests • HMVC requests are a great way to separate logic and re-use controller logic in multiple places. • One common use of this is when you use a theme or template engine to generate your pages, where every page is divided into sections, and sections are populated by widgets. • By using modules to produce the widget output, you can create a highly modular application, with easy to re-use components. FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 23. Let’s Code .. Not!!! Excited, hehe FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 24. OIL • Generate - Build MVC components, migrations and entire scaffolding. • Refine - Run tasks such as migrate and your own custom ones. • Package - Install, update and remove packages. • Console - Test your code in real time using an interactive shell. FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 25. Things you need to do • Create a database (PHPMyAdmin/Navicat) • Configure database (/fuel/app/config/db.php) • Add ORM (/fuel/app/config/config.php) • Create basic CRUD site with OIL FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 26.
  • 27. Creating Tables and CRUD > php oil g scaffold users username:varchar password:varchar sex:tinyint Creating model: C:wampwwwfuelphpfuelappclasses/model/users.php Creating migration: C:wampwwwfuelphpfuelappmigrations/001_create_users.php Creating controller: C:wampwwwfuelphpfuelappclasses/controller/users.php Creating view: C:wampwwwfuelphpfuelappviews/users/index.php Creating view: C:wampwwwfuelphpfuelappviews/users/view.php Creating view: C:wampwwwfuelphpfuelappviews/users/create.php Creating view: C:wampwwwfuelphpfuelappviews/users/edit.php Creating view: C:wampwwwfuelphpfuelappviews/users/_form.php Creating view: C:wampwwwfuelphpfuelappviews/template.php > php oil refine migrate:up FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 28. Controllers (davaoit.php) class Controller_Davaoit extends Controller { public function action_index() { $data[‘title’] = ‘Welcome to Davao IT’; $data[‘content’]=‘We are a group of great developers’; $data[‘nav’]=array(‘home’, ‘about’, ‘contact’) $this->response->body = View::factory(‘davaoit/index’, $data); } } FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 29. Views (davaoit/index.php) <html> <head> <title><?php echo $title;?></title> </head> <body> <header><?php echo $title;?></header> <nav><?php $nav;?></nav> <article><?php echo $content;?></article> </body> </html> FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 30. Showcase: What we’ve done. • DEMO: Social networking site using • DEMO: Game-based learning system • DEMO: Photo Gallery • DEMO: Basic user authentication FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 31. Social Network (development) FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 32. Photo Gallery (under development) FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 33. What Others have done • http://lumberhandling.com/ (corporate site) • http://poll.froedge.com (online poll) • http://pastecode.com (cut and paste code) • http://wtfismypagerank.com (pr checker) • http://mjs.me/ (url shortener) • http://www.scrapyrd.com/ (code snippets) • http://www.amwaitingfor.com/ (community) • http://www.colorfyit.com/ (analyze site colors) FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 34. What’s next • Try something in OIL • Modify it • Read docs • Create some apps • Repeat and master • Join forums • Search the net FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 35. Thanks Oops… There’s more FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 36. Full year of IT Events August 2011: Web Development Month September 2011: Mobile Application Month October 2011: Animation Month November 2011: Bloggers Month December 2011: SEO Month January 2012: Technopreneurship Month February 2012: I.T. Education Month March 2012: I.T. Career Month April 2012: Gaming Month May 2012: Graphic Design Month June 2012: Hacking and Network Security Month July 2012: Software Development Month FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 37. August I.T. Events by PGO University of Southeastern Philippines (USEP) Friday, August 12 · 9:00am - 11:30am http://www.facebook.com/event.php?eid=229646943743096 John Paul II College (JP2C) Saturday, August 13 · 9:00am - 4:00pm http://www.facebook.com/event.php?eid=220035684709122 University of Mindanao (UM) Wednesday, August 17 · 1:00pm - 5:00pm http://www.facebook.com/event.php?eid=245697658786703 University of Immaculate Conception (UIC) Saturday, August 20 · 1:00pm - 5:00pm http://www.facebook.com/event.php?eid=231713253532167 ACLC Monday, August 22 · 1:00pm - 4:00pm http://www.facebook.com/event.php?eid=231458190229578 FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 38. August I.T. Events by PGO Holy Cross (HCDC) Tuesday, August 23 · 3:00pm - 6:00pm http://www.facebook.com/event.php?eid=253809011309471 InterCity College of Science and Technology (ICST) Wednesday, August 24 · 9:00pm - 11:00pm http://www.facebook.com/event.php?eid=225237414194879 AMA Computer College Thursday, August 25 · 9:30am - 1:00pm http://www.facebook.com/event.php?eid=138109472943706 STI College Friday, August 26 · 1:00am - 4:00pm http://www.facebook.com/event.php?eid=124462760983852 FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 39. Competition On-the-spot Student Web Design Competition August 27, 2011 http://www.facebook.com/event.php?eid=241281559236739 Entries can be found at http://www.silicongulf.com/competitions/web_design FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 40. Our Loving Supporters • The SiliconGulf Initiative • Davao IT • Adobe User Group • PHP Philippines • Developers, Entrepreneurs, Artists of Davao • SEO-Philippines • The IT School with no name yet • Philippine Global Outsourcing FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 41. Thanks To all speakers, PHP framework developers, our team at Philippine Global Outsourcing, students of all participating schools To the Adobe Development Team for this wonderful piece of software. Learn from the best www.silicongulf.com FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 42. Contact 2nd Floor Door #8 Andreliz Bldg #238 Araullo Extension 8000 Davao City Philippines philippineoutsourcing@gmail.com www.philippineglobaloutsourcing.com +63 916 477 9322 (globe) +63 907 775 6544 (smart) +63 922 551 4009 (sun) +63 923 725 4512 (sun) +63 82 224 1040 (landline) FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 43. Copyright This reference material is exclusively distributed to the students of SiliconGulf Campus and should not be distributed, transmitted, or shared without the prior written consent of Christopher John Cubos http:// www.philippineglobaloutsourcing.com/chriscubos , SiliconGulf http://www.silicongulf.com/ or Philippines Outsourcing http://www.philippineglobaloutsourcing.com/ . This class material should be discussed by a trained instructor from SiliconGulf to maximize the learning and understanding of the topic. Others belong to their respective copyright holders. © Copyright 2011 SiliconGulf Campus and Christopher John Cubos. All Rights Reserved. FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 44. Disclaimer • Course technology and the author specifically disclaim any and all other warranties, either express or implied, including warranties of merchantability, suitability to a particular task or purpose, or freedom from errors. • Some states do not allow for exclusion of implied warranties or limitation of incidental or consequential damages, so these limitations might not apply to you. FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 45. SiliconGulf Campus SiliconGulf Campus is one of the pioneers of game based learning system in the Philippines. Our goal is to combined complex theories with fun and excitement of playing games. SiliconGulf Campus 2nd Floor Door #8 Andreliz Bldg. #238 Araullo Extension 8000 Davao City Philippines silicongulfcampus@gmail.com www.silicongulf.com +63 916 477 9322 (globe) +63 907 775 6544 (smart) +63 922 551 4009 (sun) +63 923 725 4512 (sun) +63 82 224 1040 (landline) FuelPHP HMVC Framework August 2011 www.silicongulf.com
  • 46. FuelPHP HMVC Framework August 2011 www.silicongulf.com