Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-30-2007, 09:31 PM
Junior Member
 
Join Date: Jul 2007
Posts: 2
Default Render view in another controller

Hi,

this is probably a very simple question, but I haven't found any answer to it. I want to redirect the visitor to a view in another controller, but I want the $this-view-variables to be accesible from the new view. Eg:

PHP Code:
    if(!Zend_Auth::getInstance()->hasIdentity()){
            
$this->view->errorMessage="Please do login";
            
$this->_forward('login');
        } 
This gives me the following error message: Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with message 'LinkController::userAction() does not exist and was not trapped in __call()' in.

I've tried with render and redirect. I cant get render to work and when I use redirect the view-variables that I want to pass on with the error message isn't set..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:06 AM.