Having the same problem. I thought I resolved it by switching ACL and
Auth around in my components array but it came back later in another
view.
Any luck with this?
On Aug 5, 1:17 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> on my localhost all work fine but in my webserver when im puted
> app_controller.php aftert that i haveblankpage:
>
> class AppController extends Controller{
> var $uses = array('Tracker');
> var $components = array('Acl','Auth','P28n');
> function beforeFilter(){
> if(isset($this->params['lang'])){
> $this->Session->write('Config.language',
> $this->params['lang']);
> }
>
> if(isset($this->Auth)){
> if($this->viewPath == 'pages')
> $this->Auth->allow('*');
> else{
> $this->Auth->fields = array('username' =>
> 'login','password' =>
> 'password');
> $this->Auth->loginAction = '/users/login';
> $this->Auth->authorize = 'actions';
> //$this->Auth->loginRedirect =
> array('controller' => 'members',
> 'action' => 'home');
> }
> }
> }
> /*
> events in system
> when u wana record event in system use this f()
> eg. $user->saveData \n $this->recordEvent($user->lastInsertId);
>
> function recordEvent($id) {
> $pages = str_replace("/index.php",'',
> $_SERVER['REQUEST_URI']);
> $pages = explode("/", $pages);
> $userId= NULL;
> if($_SESSION['is_logged'])
> $userId= $_SESSION['data']['user_id'];
> $this->data['Tracker']['user_id'] = $userId;
> $this->data['Tracker']['action'] = (isset($pages[2]) ?
> $pages[2] :
> NULL);
> $this->data['Tracker']['user_agent'] =
> $_SERVER['HTTP_USER_AGENT'];
> $ip = ip2long($_SERVER['REMOTE_ADDR']);
> $this->data['Tracker']['user_ip'] = ($ip>0 ? $ip : NULL);
> $this->data['Tracker']['controller'] = (isset($pages[1]) ?
> $pages[1] : NULL);
> $this->data['Tracker']['action'] = (isset($pages[2]) ?
> $pages[2] :
> NULL);
>
> if(isset($pages[3])) {
> $params = $pages;
> array_shift($params);
> array_shift($params);
> array_shift($params);
> $this->data['Tracker']['params'] = implode('/',
> $params);
> }
> if(isset($_SERVER['HTTP_REFERER'])) {
> $this->data['Tracker']['referer'] =
> $_SERVER['HTTP_REFERER'];
> } else {
> $this->data['Tracker']['referer'] = NULL;
> }
> $this->Tracker->save($this->data);
> }
> */
>
> }
>
> whats happen ? i have lastest lib from svn .7436
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---