I am not understanding how to use aros table...

how to add data in acos, aros and aros_acos table.

Do I need to create model for these 3 tables.

Please some body reply


On Jul 22, 3:10 pm, Ambika Kulkarni <[email protected]>
wrote:
> Hi Folks,
>
> This is the first that I am working on ACL, so I facing lot of
> problems with ACL. I followed cakephp tutorial and did the way as it
> is mentioned in the tutorial. Now when i login I am not able to access
> to any of my controller. As it is giving me following error
>
> Warning (512): AclNode::node() - Couldn't find Aro node identified by
> "Array
> (
>     [Aro0.model] => User
>     [Aro0.foreign_key] => 997
> )
> " [CORE/cake/libs/model/db_acl.php, line 191]
>
> Code | Context
>
> $this   =       Aro
> Aro::$name = "Aro"
> Aro::$hasAndBelongsToMany = array
> Aro::$cacheQueries = false
> Aro::$actsAs = array
> Aro::$useDbConfig = "default"
> Aro::$useTable = "aros"
> Aro::$displayField = "id"
> Aro::$id = false
> Aro::$data = array
> Aro::$table = "aros"
> Aro::$primaryKey = "id"
> Aro::$_schema = array
> Aro::$validate = array
> Aro::$validationErrors = array
> Aro::$tablePrefix = ""
> Aro::$alias = "Aro"
> Aro::$tableToModel = array
> Aro::$logTransactions = false
> Aro::$transactional = false
> Aro::$belongsTo = array
> Aro::$hasOne = array
> Aro::$hasMany = array
> Aro::$Behaviors = BehaviorCollection object
> Aro::$whitelist = array
> Aro::$cacheSources = true
> Aro::$findQueryType = NULL
> Aro::$recursive = 1
> Aro::$order = NULL
> Aro::$__exists = NULL
> Aro::$__associationKeys = array
> Aro::$__associations = array
> Aro::$__backAssociation = array
> Aro::$__insertID = NULL
> Aro::$__numRows = NULL
> Aro::$__affectedRows = NULL
> Aro::$_findMethods = array
> Aro::$_log = NULL
> Aro::$Aco = Aco object
> Aro::$Permission = Permission object
> $ref    =       array(
>         "Aro0.model" => "User",
>         "Aro0.foreign_key" => "997"
> )
> $db     =       DboMysql
> DboMysql::$description = "MySQL DBO Driver"
> DboMysql::$_baseConfig = array
> DboMysql::$startQuote = "`"
> DboMysql::$endQuote = "`"
> DboMysql::$_useAlias = true
> DboMysql::$_commands = array
> DboMysql::$columns = array
> DboMysql::$index = array
> DboMysql::$alias = "AS "
> DboMysql::$fieldCache = array
> DboMysql::$__bypass = true
> DboMysql::$__sqlOps = array
> DboMysql::$connected = true
> DboMysql::$fullDebug = false
> DboMysql::$error = NULL
> DboMysql::$affected = 0
> DboMysql::$numRows = 0
> DboMysql::$took = 0
> DboMysql::$_result = resource
> DboMysql::$_queriesCnt = 0
> DboMysql::$_queriesTime = NULL
> DboMysql::$_queriesLog = array
> DboMysql::$_queriesLogMax = 200
> DboMysql::$_queryCache = array
> DboMysql::$__descriptions = array
> DboMysql::$_sources = array
> DboMysql::$connection = resource
> DboMysql::$config = array
> DboMysql::$configKeyName = "default"
> DboMysql::$_transactionStarted = false
> DboMysql::$cacheSources = true
> DboMysql::$_log = NULL
> DboMysql::$results = resource
> DboMysql::$map = array
> DboMysql::$__booleans = array
> $type   =       "Aro"
> $result =       array()
> $table  =       "aros"
> $name   =       "User"
> $model  =       User
> User::$name = "User"
> User::$primaryKey = "user_id"
> User::$belongsTo = array
> User::$actsAs = array
> User::$validate = array
> User::$useDbConfig = "default"
> User::$useTable = "users"
> User::$displayField = "title"
> User::$id = false
> User::$data = array
> User::$table = "users"
> User::$_schema = array
> User::$validationErrors = array
> User::$tablePrefix = ""
> User::$alias = "User"
> User::$tableToModel = array
> User::$logTransactions = false
> User::$transactional = false
> User::$cacheQueries = false
> User::$hasOne = array
> User::$hasMany = array
> User::$hasAndBelongsToMany = array
> User::$Behaviors = BehaviorCollection object
> User::$whitelist = array
> User::$cacheSources = true
> User::$findQueryType = NULL
> User::$recursive = 1
> User::$order = NULL
> User::$__exists = NULL
> User::$__associationKeys = array
> User::$__associations = array
> User::$__backAssociation = array
> User::$__insertID = NULL
> User::$__numRows = NULL
> User::$__affectedRows = NULL
> User::$_findMethods = array
> User::$_log = NULL
> User::$Group = Group object
> User::$Aro = Aro object
> $tmpRef =       null
> $val    =       "997"
> $key    =       "foreign_key"
> $queryData      =       array(
>         "conditions" => array(
>         "Aro0.model" => "User",
>         "Aro0.foreign_key" => "997"
> ),
>         "fields" => array(
>         "id",
>         "parent_id",
>         "model",
>         "foreign_key",
>         "alias"
> ),
>         "joins" => array(
>         array()
> ),
>         "order" => "`Aro`.`lft` DESC"
> )
>
>             if (!$result) {
>                 trigger_error("AclNode::node() - Couldn't find {$type}
> node identified by \"" . print_r($ref, true) . "\"", E_USER_WARNING);
>
> AclNode::node() - CORE/cake/libs/model/db_acl.php, line 191
> DbAcl::check() - CORE/cake/libs/controller/components/acl.php, line
> 235
> AclComponent::check() - CORE/cake/libs/controller/components/acl.php,
> line 89
> AuthComponent::isAuthorized() - CORE/cake/libs/controller/components/
> auth.php, line 482
> AuthComponent::startup() - CORE/cake/libs/controller/components/
> auth.php, line 403
> Component::startup() - CORE/cake/libs/controller/component.php, line
> 112
> Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 210
> Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194
> [main] - APP/webroot/index.php, line 88
>
> Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in
> permissions check.  Node references:
> Aro: Array
> (
>     [User] => Array
>         (
>             [user_id] => 997
>             [title] =>
>             [name] => sadasd
>             [surname] => ewrwer
>             [group_id] => 0
>             [telephone] => 4354354
>             [fax] => 3423
>             [email] => [email protected]
>             [address1] => nbm
>             [address2] => nbmn
>             [address3] => mb
>             [postal_code] => nbm
>             [username] => duambika
>             [security_question] =>
>             [security_answer] =>
>             [active] => 1
>             [deleted] => 0
>         )
>
> )
>
> Aco: Divisions/division [CORE/cake/libs/controller/components/acl.php,
> line 239]
>
> In app_controller.php
>  var $components = array('Acl', 'Session','Auth', 'RequestHandler');
> ----
> ----
>  function beforeFilter(){
>
>         $this->Auth->authorize = 'actions';
>         $this->Auth->loginAction = array('controller' => 'campaigns',
> 'action' => 'step_one');
>         $this->Auth->logoutRedirect = array('controller' => 'users',
> 'action' => 'login');
>         $this->Auth->loginRedirect = array('controller' => 'elements',
> 'action' => 'element');
>
> }
>
> Help me how to handle this error.
>
> Thanks in advance
> Ambika

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to