Using Yii inside assets dir
Posted 12 December 2009 - 05:51 PM
I would like to use Yii inside my image/file browser extension, but cant because of assets loading before Yii.
Now I get a Fatal error: Class 'Yii' not found in ...
I actually only need to set a few vars in my extension config files, and I can send those vars in session, but using framework functionality there would be much better idea and really handy
Posted 13 December 2009 - 07:52 AM
Can you give a little more detail what you try to do?
Posted 13 December 2009 - 09:43 AM
Im trying to dynamically setup my image/file browser for tinymce which have separate config file in assets directory and in this config file im trying to use Yii base class with no success...
Actually this a popup window with url referencing to some file eg. conn.php in my assets dir which includes my config file, and i think that's the problem, because it's not Yii calling my conn.php