Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The datasource configuration "" was not found. #77

Closed
macnie opened this issue Jun 2, 2015 · 1 comment
Closed

Error: The datasource configuration "" was not found. #77

macnie opened this issue Jun 2, 2015 · 1 comment

Comments

@macnie
Copy link

macnie commented Jun 2, 2015

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');
}
@r0kawa
Copy link

r0kawa commented Sep 21, 2015

Have you create the aros/acos table ?

@dakota dakota closed this as completed Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants