34k+
News
Guide
API
Wiki
Forum
Community
Places
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Extensions
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
Release Cycle
License
Team
Official Logos and Design
Login
Organize directories for applications with front-end and back-end
Comparing
#2
with
#3
Revision #3 was created by
intel352
on Jun 26, 2012, 6:59:18 PM.
Fixing call to Yii
« Previous (#2)
Next (#4) »
Content
[...]
```php
// index.php:
require('path/to/yii.php');
Yii::
app()->
createWebApplication('protected/config/main.php')->run(); // backend.php: require('path/to/yii.php'); Yii::
app()->
createWebApplication('protected/backend/config/main.php')->run();
```
The front-end application configuration is very normal, just like we usually have for single-end applications. The back-end application configuration is a bit special. Its content is given as follows,
[...]