PHP error include(AuthModule.php) using filter in controller #15

magefad opened this Issue Jan 16, 2013 · 1 comment


None yet

2 participants

magefad commented Jan 16, 2013
throw new CHttpException(401, Yii::t('AuthModule.main', 'Access denied.'));

include(AuthModule.php) [function.include]: failed to open stream: No such file or directory

You can add an import

    'import'            => array(

But I think it's an ugly solution?

Can be attributed to a bug of yii framework, as it is not clear why we need to use the import module file to use Yii:t() function

crisu83 commented Jan 23, 2013

I've fixed this by removing the call to Yii::t() for now.

@crisu83 crisu83 closed this Jan 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment