Revision #6 has been created by andy_s on Apr 16, 2010, 5:04:10 AM with the memo:
Syntax error in "$this->foo = (Yii::app()->endName == 'front') 'bar1' : 'bar2';" line.
« previous (#5) next (#7) »
Changes
Title
unchanged
Organize directories for applications with front-end and back-end using WebApplicationEnd behavior
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
changed
[...]
{
// ...
// 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));
}
```[...]