课程: MVC Frameworks for Building PHP Web Applications

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Yii app walkthrough

Yii app walkthrough

- [Instructor] Now that we've installed the Yi framework, let's take a look at what's happening at the code level. So now I'm in my text editor and I'm looking at the directory structure of the Yi framework. There are a few things to note here. One, these are our runtime commands. The back is for Linux Mac environments, and Yi is for Windows environment. I have my composer.JSON file which manages all the dependencies. The config directory is where a lot of different configurations are handled. Test is the default for our particular application. So you can use this to set up application-specific elements. It's really our module but it's the application in this instance. The web PHP is where a lot of things are set up. Now an important thing to note is the routing and we've talked about this with other frameworks so I want to make sure how to cover it here. By default, Yi uses the index.php as the central script file to manage everything. And it will append all the additional…

内容