i enconter a question when use Zend Framework's _foward function

This is a discussion on i enconter a question when use Zend Framework's _foward function within the PHP General forums, part of the PHP Programming Forums category; in the function init() ,i want to use the function _foward but it doesn't work. how to deal the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-28-2008
little btx
 
Posts: n/a
Default i enconter a question when use Zend Framework's _foward function

in the function init() ,i want to use the function _foward but it doesn't
work. how to deal the problem

Reply With Quote
  #2 (permalink)  
Old 01-28-2008
Nathan Nobbe
 
Posts: n/a
Default Re: [PHP] i enconter a question when use Zend Framework's _foward function

On Jan 27, 2008 9:53 PM, little btx <btxlittle@gmail.com> wrote:

> in the function init() ,i want to use the function _foward but it doesn't
> work. how to deal the problem
>



i think youll have to be more specific, can you
supply some code that illustrates the problem ?

-nathan

Reply With Quote
  #3 (permalink)  
Old 01-28-2008
Nathan Nobbe
 
Posts: n/a
Default Re: [PHP] i enconter a question when use Zend Framework's _foward function

On Jan 27, 2008 10:01 PM, little btx <btxlittle@gmail.com> wrote:

> public function init()
> try{
> $this->subject = new subject($subject_id);
> }catch (Zend_Exception $e)
> {
>
> $this->_forward('index','error',null,array('error'=>$e->getMessage());
> }
> }
> when it catch the Zend_Exception ,the function _forward doesn't work
>



please 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

Reply With Quote
  #4 (permalink)  
Old 01-28-2008
Jim Lucas
 
Posts: n/a
Default Re: [PHP] i enconter a question when use Zend Framework's _fowardfunction

Nathan Nobbe wrote:
> On Jan 27, 2008 10:01 PM, little btx <btxlittle@gmail.com> wrote:
>
>> public function init()
>> try{
>> $this->subject = new subject($subject_id);
>> }catch (Zend_Exception $e)
>> {
>>
>> $this->_forward('index','error',null,array('error'=>$e->getMessage());


You are missing one parenthesis at the end of the above line

>> }
>> }
>> when it catch the Zend_Exception ,the function _forward doesn't work
>>

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



--
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 Shakespeare
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

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

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



All times are GMT +1. The time now is 08:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0