Category : cakephp

Environment: Mac OS Big Sur Version 11.6 Composer version 2.1.8 2021-09-15 13:55:14 PHP version 8.0.10 I crated a folder for my sample application: ~/cakephp/sample and copied the latest composer.phar into it: 2262733 Sep 23 17:24 composer.phar Then per the tutorial on the cakePHP tutorial site: https://book.cakephp.org/4/en/quickstart.html I typed the following command, from the ~/cakephp/sample folder: ..

Read more

Im following along the CMS tutorial in cakephp: https://book.cakephp.org/4/en/tutorials-and-examples/cms/authorization.html I’ve followed along step by step and have gotten to authorization step and keep getting the same errors: Policy for CakeORMEntity has not been defined. if i try to edit, add or delete an article The request to /users did not apply any authorization checks. if ..

Read more

I have made a prefixed Admin section for my web application in CakePHP 4. In config/routes.php I scoped the Auth plugin as such (so only /admin/* would need login: $routes->prefix(‘Admin’, function (RouteBuilder $routes) { $routes->registerMiddleware( ‘auth’, new AuthenticationMiddlewareAuthenticationMiddleware($this) ); $routes->applyMiddleware(‘auth’); // etc. Because I wanted to have a simple landing page (e.g., localhost/admin) for the ..

Read more