Difference between #5 and #6 of
Organize directories for applications with front-end and back-end using WebApplicationEnd behavior

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));
}
```
[...]
26 0
44 followers
Viewed: 135 518 times
Version: 1.1
Category: Tutorials
Tags:
Written by: andy_s
Last updated by: kiran sharma
Created on: Feb 2, 2010
Last updated: 11 years ago
Update Article

Revisions

View all history