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

Newbie Question - GhostAccessControl #2

Closed
carlos-andres opened this issue Dec 17, 2014 · 3 comments
Closed

Newbie Question - GhostAccessControl #2

carlos-andres opened this issue Dec 17, 2014 · 3 comments

Comments

@carlos-andres
Copy link

Did u have some example for Controller, because i try with all steps and o got an error

PHP Fatal error:  Class 'app\controllers\GhostAccessControl' not found in 
C:\{app}\controllers\SiteController.php on line 18
@webvimark
Copy link
Owner

Your IDE loaded wrong namespace. It should be

use webvimark\modules\UserManagement\components\GhostAccessControl;

    /**
     * @return array
     */
    public function behaviors()
    {
        return [
            'ghost-access'=> [
                'class' => GhostAccessControl::className(),
            ],
        ];
    }

@carlos-andres
Copy link
Author

you´re right!.

Sir, on the project, has been very useful and simple, so nothing complex .. thanks again!

@webvimark
Copy link
Owner

You'r welcome :)

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