Join Drew Falkman for an in-depth discussion in this video CakePHP app walkthrough, part of MVC Frameworks for Building PHP Web Applications (2015).
- Let's take a look at the code level of…how CakePHP is laid out.…This should enable you to hit the ground running…if you want to start developing using CakePHP.…So let's go ahead and, using our text editor,…I'm going to open the directory…of our CakePHP application.…In this case I put it in the htdocs subdirectory of MAMF,…which is the webroot.…So I'm going to go ahead and open that directory,…which will show me the application structure…of CakePHP on the left.…
You can see I have a few main subfolders.…The app directory is going to be my app,…and we'll look there in a second.…The lib directory contains the CakePHP core.…So these are all the classes and helpers…and things that you'll use inside of Cake.…The plugins directory allows you to put any…kind of plugin patches or whatever else…you want to add in terms of plugins.…These can be third party or you can write your own plugins.…And the vendors is specifically for third-party tools.…
Let's open the app directory.…You can see in here, this is our application.…
- Why use a framework?
- Introducing MVC-framework concepts
- Examining each framework's components
- Setting up the software
- Walking through sample apps built in each framework
- Comparing frameworks
Skill Level Intermediate
Q: When setting up Composer on my Windows machine, I'm asked to specify where php.exe is located. Where can I find it?
<div>A: Depending on how you installed PHP, the location can vary. If you're running WAMP on your Windows machine, the executable is located at: </div><div> </div><div><span style="font-family: Courier;">C:\wamp\bin\php\php5.5.12\php.exe </span></div><div>(This path will change slightly if you're running a different version number of PHP.)</div><div> </div><div>If you're running XAMPP on your Windows machine, the executable is located at:</div><div><span style="font-family: Courier;">C:\xampp\php\php.exe</span></div><div> </div>
Q: Why doesn't my folder structure in Laravel match what's on screen?
A: Version 5 of Laravel was released after the recording of this course. The core information in this course is still valid, but the Laravel's main files have been reorganized. For more details on how this reorganization has changed the structure of Laravel files, please see <a href="https://mattstauffer.co/blog/laravel-5.0-directory-structure-and-namespace" target="_blank" rel="nofollow">https://mattstauffer.co/<wbr>blog/laravel-5.0-directory-<wbr>structure-and-namespace</a>.
Q: Why isn't mcrypt prepped for PHP when I run the phpize command?
A: If you're having trouble setting up mcrypt, you may need to change the directory from which you run the phpize command. You'll want to navigate to the /ext/mcrypt/ folder within the folder for the version of PHP that you're running.
1. About PHP Frameworks
- Mark as unwatched
- Mark all as unwatched
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.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.