Dave Hollingworth

Results 97 comments of Dave Hollingworth

If that's the error message, then it's probably the database connection credentials that are incorrect (username, password etc.) check these are correct and that it's connecting to the database correctly

That's an interesting idea! I'm currently working on a major update for this framework, I'll make a note of this, thanks!

What is in the app variable? This isn't a variable that the framework provides - to access the session you need to pass the session to the template, or use...

You can set it as a global variable, e.g. `$twig->addGlobal('session', $_SESSION);`

I just answered this in the Q&A section on the course this relates to on Udemy, please see my answer there.

The router doesn't deal with subdomains as it is, but you could modify it to route based on the subdomain if you wanted to. Alternatively, you could do it in...

You need to start the path with a slash so it's route relative: ``

Are you running the code in a subfolder? Then you need to include that too