Join Drew Falkman for an in-depth discussion in this video Yii concepts and features, part of MVC Frameworks for Building PHP Web Applications (2015).
- Yii is a framework built for large scale applications…and to make them perform.…The release of 2.0 has brought…a lot of modern constructs to Yii.…Let's look at some of the concepts and features of Yii.…Getting started with Yii,…the new preferred method of installation…is using Composer starting in version 2.0.…You can, however, if you prefer,…use the download and extract method…and put it in your web server.…Once you have it installed,…Yii comes with a special web tool called Gii,…which will speed up some of the code generation…and will allow you to jump start creating things…like controllers and models.…
When working with Yii, the controller has actions…that will run based on URL and your routing configuration.…Views in Yii are simple HTML and PHP files.…There are some special classes, like ActiveForm,…which can help you to generate validations,…scripts, and labels.…Models in Yii use the active record pattern.…There are no queries necessary to get data.…There's just functions you'll use…if you're using a supported database.…
- 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.