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 using WebApplicationEnd behavior
Comparing
#5
with
#6
Revision #6 was created by
andy_s
on Apr 16, 2010, 5:04:10 AM.
Syntax error in "$this->foo = (Yii::app()->endName == 'front') 'bar1' : 'bar2';" line.
« Previous (#5)
Next (#7) »
Content
[...]
{
// ...
// We can configure our module depending on the value
// of Yii::app()->endName.
$this->foo = (Yii::app()->endName == 'front')
?
'bar1' : 'bar2';
// Raise onModuleCreate event.
Yii::app()->onModuleCreate(new CEvent($this));
}
```
[...]