Re: i enconter a question when use Zend Framework's _foward function
| From: | Jim Lucas | Date: | Mon, 28 Jan 2008 16:14:53 +0000 |
| Subject: | Re: i enconter a question when use Zend Framework's _foward function | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268197@lists.php.net to get a copy of this message | ||
Nathan Nobbe wrote:
On Jan 27, 2008 10:01 PM, little btx <btxlittle@gmail.com> wrote:You are missing one parenthesis at the end of the above linepublic function init() try{$this->subject = new subject($subject_id); }catch (Zend_Exception $e) {$this->_forward('index','error',null,array('error'=>$e->getMessage());
-- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeareplease keep posts on list for the benefit of others. what is the precise error you receive when _forward() is called? also, what is the context of this code you have posted? are you extending a class from the zend framework? -nathan}} when it catch the Zend_Exception ,the function _forward doesn't work