Hi.
I’ve a module inside my Yii app which uses the following, inside the theme’s main.php:
foreach ($jsFiles as $filename) {
Yii::app()->getClientScript()->registerScriptFile(
$this->module->assetsUrl.DIRECTORY_SEPARATOR."js".DIRECTORY_SEPARATOR.$filename);
}
On my dev pc, with php 5.4.6, works like a charm.
On my production server, with php 5.3.19, the same file results in the following:
$this->module is undefined.
What could it be?
I’m using Yii 1.1.12, obviously on both hosts.
thanks