Notice (8): Undefined index: Group [APP/Controller/Component/AutenticaComponent.php, line 120]Code Context $group = new Group;
$regra = $group->read(null, $group_id);
return json_decode($regra['Group']['rules']);
$group_id = 2
$group = Group
Group::$validate = array
Group::$hasMany = array
Group::$useDbConfig = "default"
Group::$useTable = "groups"
Group::$id = 2
Group::$data = array
Group::$table = "groups"
Group::$primaryKey = "id"
Group::$validationErrors = array
Group::$validationDomain = NULL
Group::$name = "Group"
Group::$alias = "Group"
Group::$tableToModel = array
Group::$cacheQueries = false
Group::$belongsTo = array
Group::$hasOne = array
Group::$hasAndBelongsToMany = array
Group::$actsAs = NULL
Group::$Behaviors = BehaviorCollection object
Group::$whitelist = array
Group::$cacheSources = true
Group::$findQueryType = NULL
Group::$recursive = 1
Group::$order = NULL
Group::$virtualFields = array
Group::$__backAssociation = array
Group::$__backInnerAssociation = array
Group::$__backOriginalAssociation = array
Group::$__backContainableAssociation = array
Group::$findMethods = array
Group::$tablePrefix = ""
Group::$User = User object
$regra = array(
array(
"id" => "2",
"name" => "Visitante",
"rules" => "["Pages:index","Pages:contato","Pages:passeios","Pages:promocoes","Pages:passeio","Pages:promocao","Pages:depoimentos","Pages:pousada","Pages:joaopessoa","Pages:eventos","Pages:acomodacoes","Pages:lazer","Pages:localizacao","Pages:tarifas","Users:login","Users:logout","Users:lost","Users:senha"]",
"active" => true,
"login_redirect" => "",
"logout_redirect" => "",
"created" => "2012-04-27 10:46:29",
"modified" => "2012-04-30 13:13:09"
)
)
AutenticaComponent::getRules() - APP/Controller/Component/AutenticaComponent.php, line 120
AutenticaComponent::isAllowed() - APP/Controller/Component/AutenticaComponent.php, line 132
AutenticaComponent::beforeFilter() - APP/Controller/Component/AutenticaComponent.php, line 52
AppController::autentica() - APP/Controller/AppController.php, line 53
AppController::beforeFilter() - APP/Controller/AppController.php, line 49
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 605
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 101
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 86
[main] - APP/webroot/index.php, line 96
Warning (2): in_array() [function.in-array]: Wrong datatype for second argument [APP/Controller/Component/AutenticaComponent.php, line 143]Code Context$url = array(
"controller" => "pages",
"action" => "index",
"admin" => false
)
$group_id = null
$rules = null
$allow = false
in_array - [internal], line ??
AutenticaComponent::isAllowed() - APP/Controller/Component/AutenticaComponent.php, line 143
AutenticaComponent::beforeFilter() - APP/Controller/Component/AutenticaComponent.php, line 52
AppController::autentica() - APP/Controller/AppController.php, line 53
AppController::beforeFilter() - APP/Controller/AppController.php, line 49
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 605
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 101
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 86
[main] - APP/webroot/index.php, line 96