function indexAction() {
        $this->logger->debug('index A');
        $this->function1('test1');
        $this->logger->debug('index B');
        $this->function2('test2');
        $this->logger->debug('index C');
}

function function1() {
        $this->logger->debug('test 1 !');
}

function function2() {
        $this->logger->debug('test 2 !');
}

Why forward to other actions?

Terre

-----Original Message-----
From: debussy007 [mailto:[EMAIL PROTECTED] 
Sent: Saturday, November 08, 2008 1:15 PM
To: [email protected]
Subject: [fw-general] forward() question


Hi,

How can I execute several actions from one action:

the follwing test will print:
index A
index B
index C
test 2 !

I was expecting it to be
index A
test 1 !
index B
test 2 !
index C

function indexAction() {
        $this->logger->debug('index A');
        $this->_forward('test1');
        $this->logger->debug('index B');
        $this->_forward('test2');
        $this->logger->debug('index C');
}
function test1Action() {
        $this->_helper->viewRenderer->setNoRender();
        $this->logger->debug('test 1 !');
}
function test2Action() {
        $this->_helper->viewRenderer->setNoRender();
        $this->logger->debug('test 2 !');
}


Thank you for any help
--
View this message in context:
http://www.nabble.com/forward%28%29--question-tp20398758p20398758.html
Sent from the Zend Framework mailing list archive at Nabble.com.


Reply via email to