Hi everyone,
Let's say I'm new in the Yii framework.
I'm trying to develop a custom plugin for a client.
I've already created a plugin that adds a menu item and points to a page containing an ajax form.
The form points to a custom file where I would like to include the core.
I tried to include the Yii class inlcuding the file /framework/yii.php, but if I try to access the properties of the class (example : Yii::app()->session) it returns me the following error:
"Notice: Trying to get property of non-object in C:\xampp\htdocs\limesurvey\plugins\multiGroupSurvey\ajax.php on line 19"
how can I initialize the class correctly inside my custom file?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.