Organize directories for applications with front-end and back-end using WebApplicationEnd behavior

Comparing #5 with #6

Revision #6 was created by andy_s andy_s on Apr 16, 2010, 5:04:10 AM.

Syntax error in "$this->foo = (Yii::app()->endName == 'front') 'bar1' : 'bar2';" line.

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));
}
```
[...]