On Tuesday, October 11, 2011 11:10:55 AM UTC+2, cakii wrote:
>
> i, 
>
> i have a few problems i can't solve .. 
>
> im using cake 2.0.0-RC3 and PHP Version 5.3.1 
> cake default layout , debug 2 
>
> in my controller i only have one simple line: (the corresponding view 
> is completly empty) 
>
> $this->redirect('http://http://www.cakephpforum.net/'); 
>

This is invalid URL, but redirection is worknig
 

>
>
> but nothing happens, just a white page. 
>
> same with: 
>
> $this->redirect(array('controller' => 'test', 'action' => 'view')); 
>
>
>
> also i cant get the sessions working. 
>
> i have this line in my appcontroller: 
>
> public $components = array('Session'); 
>
> (is this line needed ? and/or anything else to use sessions? ) 
>
 
  No, Session is already attached to Controller (parent class)


> in my controller (extend appcontroller) the only 3 lines are: 
>
>
> echo $this->Session->check('lastVisit'); 
> $this->Session->write('lastVisit', time()); 
> echo $this->Session->check('lastVisit'); 
> debug($this->Session->read()); 
>
 
 Works for me in AppController::beforeFilter()
 

>
> --> no output just an empty cakephp layout without any content 
>
> any idea whats the problem ? 
>

You can try with latest 2.0 and clean app install to isolate just this 
problem (from other app code and config).
 

>
>
> Thanks in advance..

-- 
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

Reply via email to