I recently upgraded one of my sites to the latest version of Yii from 1.1.1.
This used to work;
array('allow', // allow admin user to perform 'admin' and 'delete' actions
But now throws this error;
Use of undefined constant ga - assumed 'ga'
/var/www/yii/framework/base/CComponent.php(587) : eval()'d code(1)
No source code available.
You should use the quotes as suggested. Se “Array do’s and don’ts” in this page.
Also see this post by Mike. Perhaps you upgraded PHP as well?
Thanks for the reply. I changed the $_GET[ga] to $_GET["ga"] and now it works again…
Cheers for your help!