Return value of Acl\Model\Table\AclNodesTable::defaultConnectionName() must be of the type string, null returned
In [E:\xampp\htdocs\site\vendor\cakephp\acl\src\Model\Table\AclNodesTable.php, line 43]
using windows xampp and cakephp4.2.6 strawberry
Return value of Acl\Model\Table\AclNodesTable::defaultConnectionName() must be of the type string, null returned
In [E:\xampp\htdocs\site\vendor\cakephp\acl\src\Model\Table\AclNodesTable.php, line 43]
using windows xampp and cakephp4.2.6 strawberry
Have you checked that particular line of code? Looks like it’s probably return Configure::read('Acl.database');
? Have you actually set up that configuration?
Thanks, actually cache wasn’t cleared
can you please tell me how do you implement all this code with example @zohaib.yunis actually i am using cakephp 4.4.15 latest released version and there is no helping support for role based access and permission please help me if you already done this all
@lish apology i don’t have the code, i build it for someone at that time, this repo will help a lot in implementation of ACL GitHub - cakephp/acl: Plugin for managing ACL in CakePHP applications.
thanks for reply @zohaib.yunis but its really hard to understand how to implement this code stuff. you please tell me this package with Authentication or Authorization plugin, because My existing code I am using these plugin for login logout and registering user. Cakephp official documentation told about Policies but there are also some confusion how to set dynamic permissions and role. if you have any about it then tell me.
Watched youtube tutorial but that was Laravel which provide simple plugin so I just got idea from that but hard to implement in cakephp