sn0rcha
(Ben)
1
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
'actions'=>array('getimage'),
'expression'=>'isset($_GET[ga])',
),
But now throws this error;
PHP Error
Description
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?
tri
(tri - Tommy Riboe)
2
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?
/Tommy
sn0rcha
(Ben)
3
Hey tommy,
Thanks for the reply. I changed the $_GET[ga] to $_GET["ga"] and now it works again…
Cheers for your help!