*In that case, *he will have to write to a property of the layout() directly and return

$this->_helper->layout()->myOutput = $myOutput;
$this->_helper->viewRenderer->setNoRender();
return;

*or, alternatively,*
create a template cache.phtml:

<?php echo $this->cache ?> <!--  this is all -->

and call inside the action:

if($in_cache){
   $this->view->cache = $myCache;
   $this->render('cache');//renders cache.phtml
}

Bart

Giuliano Riccio schreef:
He cannot let it die()... if he is using a layout the rest of the page will
not be sent.
Maybe you should make an empty action where you disable the view and forward
to it when the cached action is available.
If you are not using a layout then you should probably cache the action with
a 'Page' frontend.

Giuliano

Bart McLeod wrote:
you probably forward to the same action then. I suggest you just let it die() since you echo out the desired output anyway.

Bart

Tagger schreef:
With _forward(); enters in a loop infinity.



Tom Graham-2 wrote:
Could it be you need to _forward(); then return; ?

Tom

On 23 Sep 2008, at 10:54, Tagger wrote:

Die is not posibble, stops the execution. I need to redirec to another action in the same controller, for example with forward, but something wrong with
it.


DASPRiD wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well what to do instead? You could simply just "die;"

Tagger schrieb:
In preDispath of Zend_Controller_Action verify the Cache. If the Cache
is
available i don“t want to launch the action, is possible to do this?.


DASPRiD wrote:
Usually it's 42...

Honestly: to which question?

Tagger schrieb:
does anybody know the answer?
- --
...................................
:  ___   _   ___ ___ ___ _ ___    :
: |   \ /_\ / __| _ \ _ (_)   \   :
: | |) / _ \\__ \  _/   / | |) |  :
: |___/_/:\_\___/_| |_|_\_|___/   :
:........:........................:
: Web    : http://www.dasprids.de :
: E-mail : [EMAIL PROTECTED]       :
: Jabber : [EMAIL PROTECTED]     :
: ICQ    : 105677955              :
:........:........................:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI2LQn0HfT5Ws789ARAm/fAJ9P2lniMDU87gVbdNiD0graH2wk+gCg1IPm
WXcGhNFK0d8j3lVUUrth9Kc=
=P+e8
-----END PGP SIGNATURE-----


--
View this message in context:
http://www.nabble.com/Skip-action-tp19612879p19624536.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Reply via email to