Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
magefad opened this issue Jan 16, 2013 · 1 comment
Closed

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

magefad opened this issue Jan 16, 2013 · 1 comment

Comments

@magefad
Copy link
Contributor

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(
        ...
        'application.modules.auth.AuthModule'
    ),

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
Copy link
Owner

crisu83 commented Jan 23, 2013

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

@crisu83 crisu83 closed this as completed Jan 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants