You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw Error :The datasource configuration "" was not found.
<?php
namespace App\Model\Table;
use Cake\Event\Event;
use Cake\ORM\Table;
use Cake\ORM\Entity;
use Cake\Validation\Validator;
class MenusTable extends Table
{
public function initialize(array $config)
{
$this->addBehavior('Tree');
$this->addBehavior('Acl.Acl',['type' => 'controlled','alias'=>true]);
}
My datasource configureation is fine.
Acl bootstrap.php
use Cake\Core\Configure;
if (!Configure::read('Acl.classname')) {
Configure::write('Acl.classname', 'DbAcl');
}
if (!Configure::read('Acl.database')) {
Configure::write('Acl.database', 'default');
}
The text was updated successfully, but these errors were encountered:
throw Error :The datasource configuration "" was not found.
My datasource configureation is fine.
Acl bootstrap.php
The text was updated successfully, but these errors were encountered: