I was changed some changes in my app controller after that i got this error
message
this is code what i am wrote
------------------------------------------
app_controller.php
-------------------------------
<?php
class AppController extends Controller {
var $components = array('Auth', 'RequestHandler');
var $uses = array ('Tbluser') ;
var $helpers = array('Javascript','Html','Form','Ajax');
function beforeFilter(){
$this->Auth->userModel = 'Tbluser';
$this->Auth->authorize = 'tblusers';
$this->Auth->fields = array('username' => 'struid', 'password' =>
'strpid');
$this->Auth->allow('login');
$username = $this->Auth->user('struid');
$id = $this->Auth->user('lnguser');
$this->set('userId', $this->Auth->user('lnguser '));
$this->Auth->loginRedirect = array('controller' => 'tblusers',
'action' => 'index');
}
function isAuthorized() {
return true;
}
}
?>
Erros:
*Warning* (512) <javascript:void(0);>: Auth::isAuthorized() -
$authorize is set to an incorrect value. Allowed settings are:
"actions", "crud", "model" or null.
[*CORE/cake/libs/controller/components/auth.php*, line *525*]
Code <javascript:void(0);> | Context <javascript:void(0);>
$type = "tblusers"
$object = null
$user = array(
"Tbluser" => array(
"lnguser" => "35",
"strfname" => "ddddddddddddddddd",
"strlname" => "dddddddddddddddd",
"struid" => "admin",
"lnguser_group" => "13",
"strtelarea" => null,
"strtelno" => "dddddddddddddddddd",
"stremail" => "dddddddddddddddddd",
"struserconfirm" => null,
"dtmregistered" => null,
"dtmapproved" => null,
"blnchatuser" => null
)
)
$valid = false
break; default:
trigger_error(__('Auth::isAuthorized() - $authorize is set to an
incorrect value. Allowed settings are: "actions", "crud", "model" or
null.', true), E_USER_WARNING);
AuthComponent::isAuthorized() -
CORE/cake/libs/controller/components/auth.php, line 525
AuthComponent::startup() -
CORE/cake/libs/controller/components/auth.php, line 400
Component::startup() - CORE/cake/libs/controller/component.php, line 111
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 209
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 193
[main] - APP/webroot/index.php, line 87
*Warning* (2) <javascript:void(0);>: Cannot modify header information
- headers already sent by (output started at
/var/www/wizard_auth/cake/basics.php:108)
[*CORE/cake/libs/controller/controller.php*, line *646*]
Code <javascript:void(0);> | Context <javascript:void(0);>
$type = "tblusers"
$object = null
$user = array(
"Tbluser" => array(
"lnguser" => "35",
"strfname" => "ddddddddddddddddd",
"strlname" => "dddddddddddddddd",
"struid" => "admin",
"lnguser_group" => "13",
"strtelarea" => null,
"strtelno" => "dddddddddddddddddd",
"stremail" => "dddddddddddddddddd",
"struserconfirm" => null,
"dtmregistered" => null,
"dtmapproved" => null,
"blnchatuser" => null
)
)
$valid = false
break; default:
trigger_error(__('Auth::isAuthorized() - $authorize is set to an
incorrect value. Allowed settings are: "actions", "crud", "model" or
null.', true), E_USER_WARNING);
AuthComponent::isAuthorized() -
CORE/cake/libs/controller/components/auth.php, line 525
AuthComponent::startup() -
CORE/cake/libs/controller/components/auth.php, line 400
Component::startup() - CORE/cake/libs/controller/component.php, line 111
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 209
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 193
[main] - APP/webroot/index.php, line 87
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