Hi,
I installed a open source CMS named Croogo succesfully on my linux
server. The problem now is when i try to login to the admin page. WHen
i try to login i get an empty or blank page. I try to debug this issue
by printing out the necessary data and params on beforeFilter but it
seems it's too hard to debug.
When it goes to the component to AclFIlter thats where seems the
problem comes in. Please help me as I try to debug this for 4
consecutive nights now.
public $components = array(
'Croogo',
'Security',
'Acl',
'Auth',
'Acl.AclFilter',
'Session',
'RequestHandler',
'Cookie' ,
'DebugKit.Toolbar'
);
public function beforeFilter() {
$this->AclFilter->auth();
$this->RequestHandler->setContent('json', 'text/x-json');
$this->Security->blackHoleCallback = '__securityError';
if (isset($this->params['admin']) && $this->name !=
'CakeError') {
$this->layout = 'admin';
}
if ($this->RequestHandler->isAjax()) {
$this->layout = 'ajax';
}
if (Configure::read('Site.theme') && !isset($this-
>params['admin'])) {
$this->theme = Configure::read('Site.theme');
} elseif (Configure::read('Site.admin_theme') && isset($this-
>params['admin'])) {
$this->theme = Configure::read('Site.admin_theme');
}
if (!isset($this->params['admin']) &&
Configure::read('Site.status') == 0) {
$this->layout = 'maintenance';
$this->set('title_for_layout', __('Site down for
maintenance', true));
$this->render('../elements/blank');
}
if (isset($this->params['locale'])) {
Configure::write('Config.language', $this-
>params['locale']);
}
}
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php