Hi, first excuse my english, i’m brazilian.
I’m creating an application in CakePHP and after using login authentication in CakePHP 4 it seems that my view doesn’t “run”.
this is the error:
i using wamp64, this is my routes:
and i activated mod_rewrite.so.
Have you got the CMS Tutorial to run?
Get that working all the way through to the Authentication & Authorization stages and you may pick up what went wrong in your own app.
Thanks Jawfin, I didn’t use the tutorial, I will do the complete tutorial.
would this error be an authorization error?
If I had to guess, there’s probably a dozen things missing. Plugins not baked into your app, initializations of some settings, adding other php units in the uses - do the tutorial and follow along the same steps in your app. Or even once the tutorial is done just change it to what you want - it may be easier to knock out stuff in a working app than to try to work it out from scratch.
static files like CSS, JS and images should be handled by the webserver itself, not CakePHP.
So make sure your webserver configuration (vhost config) is set correctly so your docroot folder path is set to either the “root” directory or the
Basically you should be able to call e.g. http://localhost/css/cake.css and the browser should show you the CSS file.