Access Rule issue since 1.1.2 upgrade

Hey gurus :)

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;

PHP Error


Use of undefined constant ga - assumed 'ga'

Source File

/var/www/yii/framework/base/CComponent.php(587) : eval()'d code(1)

No source code available.

Any ideas?

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?


Hey tommy,

Thanks for the reply. I changed the $_GET[ga] to $_GET["ga"] and now it works again…

Cheers for your help!