Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Framework concepts

From: MVC Frameworks for Building PHP Web Applications

Video: Framework concepts

When learning about frameworks there are a few core development concepts to understand, both when evaluating which framework to choose and in learning how to use a particular framework. Making these sorts of one-to-one comparisons can often be tricky, especially given how the documentation is organized within each of the different frameworks. But it's still really important if you're trying to determine which one you'd like to use. Fortunately, I've spent many hours putting together this material for you throughout the course, but the first step will be to understand the development concepts with which to look at these frameworks.

Framework concepts

When learning about frameworks there are a few core development concepts to understand, both when evaluating which framework to choose and in learning how to use a particular framework. Making these sorts of one-to-one comparisons can often be tricky, especially given how the documentation is organized within each of the different frameworks. But it's still really important if you're trying to determine which one you'd like to use. Fortunately, I've spent many hours putting together this material for you throughout the course, but the first step will be to understand the development concepts with which to look at these frameworks.

The first concept to look at his pattern usage. All of these frameworks utilize the MVC pattern. The question is, how strictly and in what way did they enforce it and what other patterns do they utilize? For example, CakePHP has a very strict naming and code-organization enforcement, whereas CodeIgniter is much less dogmatic about how you place things, but it does still enforce MVC. What type of framework is it? Is it the glue framework or is it a full-stack framework? A full-stack framework comes with an entire set of constructs that you will use, and you pretty much have to use everything or not use it at all.

Whereas a glue framework allows you to break up and use different pieces of the framework. Zend is a good example of a glue framework. You can use the different library of classes if you want to, of Zend, without actually using the MVC aspect of it. Another thing to look at is how code is organized. Namely, you are going to want to determine if it makes sense to you how everything is broken up. How is the data handled from within the framework? Does it use an object relational mapping tool like Doctrine? Can you persist through a tool like MongoDB, or does it use it fairly basic PHP or PHP's data tool, called PDO? What types of component classes and helper classes are available from within the frameworks? Does it provide methodologies for performing authentication, for sending emails, for building forms and validating those forms? Does it provide the ability for caching? How modular is the frameworks? Can use different parts of it? Or how difficult is it to integrate PHP that wasn't created from within the framework? Is there anything included in the framework that's going to help you with your user interface development? Some of the frameworks will include easy access to libraries like jQuery and Dojo, which have JavaScript and visual elements that will be easy to implement.

Some of the frameworks will also provide you with tools to generate HTML5 forms that can be really helpful if you're trying to deliver to mobile and devices. The last thing to look at will be developer tools. Will you be able to use your existing development environment for this framework, or will you have to adapt another one? Does the framework itself provide tools for profiling your application and seeing how well it performs? Does it provide tools for easy debugging, and does it provide constructs for you to do testing? There are a number of concepts that you will need to understand, both when comparing frameworks and when you begin to learn them. We've looked at some of these, including pattern usage, code organization, data-handling mechanisms available helper classes, modularity, user interface helpers, and developer tools. Understanding how a framework incorporates these elements will help you to understand how it works.

Show transcript

This video is part of

Image for MVC Frameworks for Building PHP Web Applications
MVC Frameworks for Building PHP Web Applications

51 video lessons · 20254 viewers

Drew Falkman
Author

 
Expand all | Collapse all
  1. 4m 58s
    1. Welcome
      51s
    2. What you should know
      2m 9s
    3. Using the exercise files
      1m 19s
    4. Installing Apache, MySQL, and PHP
      39s
  2. 17m 42s
    1. Why use a framework?
      2m 59s
    2. MVC is the MVP
      2m 1s
    3. Framework concepts
      3m 19s
    4. Finding the right solution
      2m 58s
    5. Comparing Zend, Symfony, CakePHP, and CodeIgniter
      6m 25s
  3. 15m 49s
    1. Intro to Zend 1.11 and the 2.0 beta
      4m 2s
    2. Zend concepts, advantages, and issues
      4m 11s
    3. Zend components
      3m 24s
    4. Zend flow and architecture
      4m 12s
  4. 43m 53s
    1. Downloading and setting up Zend Framework
      6m 30s
    2. The development environment
      2m 48s
    3. Creating a project
      4m 36s
    4. The view
      9m 1s
    5. The model
      7m 36s
    6. Controller, form, and actions
      10m 17s
    7. Taking it from here
      3m 5s
  5. 11m 57s
    1. Intro to Symfony 2.0
      2m 44s
    2. Symfony concepts, advantages, and issues
      3m 7s
    3. Symfony components
      1m 38s
    4. Symfony flow and architecture
      4m 28s
  6. 35m 25s
    1. Downloading and setting up Symfony
      4m 36s
    2. Routing, controllers, and bundles
      6m 50s
    3. The view: Twig and templates
      7m 15s
    4. The model: Doctrine 2
      7m 53s
    5. Form and actions
      6m 43s
    6. Taking it from here
      2m 8s
  7. 11m 40s
    1. Intro to CodeIgniter 2.1
      2m 9s
    2. CodeIgniter concepts, advantages, and issues
      2m 51s
    3. CodeIgniter classes
      1m 50s
    4. CodeIgniter flow and architecture
      4m 50s
  8. 32m 8s
    1. Downloading and setting up CodeIgniter
      2m 0s
    2. The model
      6m 7s
    3. The controller
      5m 30s
    4. The view
      7m 19s
    5. Forms and making it all work
      9m 24s
    6. Taking it from here
      1m 48s
  9. 12m 48s
    1. Intro to CakePHP 2.0
      2m 19s
    2. CakePHP concepts, advantages, and issues
      3m 14s
    3. CakePHP components
      2m 32s
    4. CakePHP flow and architecture
      4m 43s
  10. 28m 15s
    1. Downloading and setting up CakePHP
      2m 22s
    2. The model
      4m 9s
    3. The controller
      5m 0s
    4. The view and the FormHelper
      8m 53s
    5. Making it all work
      5m 59s
    6. Taking it from here
      1m 52s
  11. 36s
    1. Goodbye
      36s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed MVC Frameworks for Building PHP Web Applications.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.