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

Typo on p.594 #15

Open
chasinglucid opened this issue Sep 1, 2018 · 1 comment
Open

Typo on p.594 #15

chasinglucid opened this issue Sep 1, 2018 · 1 comment

Comments

@chasinglucid
Copy link

This is correct in the sample code.

else if (isset($routes[$this->route]['permissions'])
➥ &&
!$this->routes->checkPermission
(**$$routes**[$this->route]['permissions'])) {
header('location: /login/error');
}
else

Also, the sample code appears to be missing the functionality for hasPermission() though it's in the book.

@bobate
Copy link

bobate commented Nov 12, 2019

@chasinglucid I found that $$ error too, fortunately by reading ahead, so found it again quickly when I was pasting the code into my IDE.
Are you still working on this website framework? I'm more than a year behind you and having mixed results, looking for some guidance from someone who may have figured it all out, or can plod along with me. I've been working on it about two months at this point.
I keep running into walls, taking a day to a week to resolve the problems. I had it more or less on track up thru categories, but now in Permissions I'm at a wall again.
Would you have time and patience to respond to problems I would send you?
Thanks
Nate

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