ivanamat / cakephp3-aclmanager

CakePHP 3.x - Acl Manager
MIT License
27 stars 27 forks source link

Missing Route, help :) #22

Closed traeH-Heart closed 6 years ago

traeH-Heart commented 6 years ago

Missing Route accessing http://myUrl.com/AclManager

Bootstrap Configure::write('AclManager.aros', array( 'Roles', 'Users')); Configure::write('AclManager.admin', false);

Plugin::load('Acl', ['bootstrap' => true]); Plugin::load('AclManager', ['bootstrap' => true, 'routes' => true]);

None of the currently connected routes match the provided parameters. Add a matching route to config/routes.php

ivanamat commented 6 years ago

Hi @iamdavidheartmercado

It seems to be all right

traeH-Heart commented 6 years ago

Is it a clean installation - Yes, I just install composer require ivanamat/cakephp3-aclmanager smoothly.

Wich CakePHP version have you installed - "cakephp/cakephp": "3.4.*"

Have you write some route - Nope i set AclManager routes to TRUE

Is your url really camelcase? ( AclManager ) - I try used to used (AclManager, acl-manager) I'm using DashedRoute

traeH-Heart commented 6 years ago

Ops! @ivanamat

I tried to install your cakephp3-app. it works perfectly, may I have some wrong configuration on tables, I only used two tables (Roles , Users).

traeH-Heart commented 6 years ago

@ivanamat

This is my current error

Error: A route matching "array ( 'controller' => 'settings', 'action' => 'edit', 'plugin' => 'AclManager', '_ext' => NULL, )" could not be found.

traeH-Heart commented 6 years ago

image

ivanamat commented 6 years ago

Hi @iamdavidheartmercado

Please copy and paste your full route file to see if there is any route that is not well defined.

I have projects with personalized routes and I do not have any problems. I hope you copy and paste the file of routes to be able to know more.

I will not be able to check it until I get home.

Regards!

traeH-Heart commented 6 years ago

@ivanamat

:) the issue is on my custom routes, It's working no, I set up my routes like this.. thanks

image

ivanamat commented 6 years ago

Hi @iamdavidheartmercado

The routes you have specified are already defined in plugin routes! You don't need to define them again.

If you need more help, do not hesitate, contact me. ;)

Regards!!

traeH-Heart commented 6 years ago

I got it. Thanks.