Zend_Controller_Action_Helper_Abstract
{
public function postDispatch()
{ /* pre-render logic here */ }
}
-- Mon
On Mon, Jun 8, 2009 at 4:42 PM, agatone zoran.z...@gmail.com wrote:
--
View this message in context:
http://www.nabble.com/Controller-flow-changes-when-using-render%28%29-inside
Sorry, yes you are right. PostDispatch of plugin always occours after the
rendering of the view.
I'll try the solution with adding helper, thank you.
I hoped i can solve it directily in the plugin.
thanks
Mon Zafra wrote:
That's not true. The plugin postDispatch always occurs after the
I have a controller action that picks out what script is going to render. So
I use render('scriptname.phtml') inside my action. There is scenario where I
have to alter some view scripts and i do that inside controller's
postDispatch() method - since i want it for all actions inside that
Hello,
I'm sorry for replying to older post but I need to clear some things.
I don't understand how this TwoLevels cache should work and I see some odd
results quick tests.
Is that it will use fast cache for untagged entries, and slow for tagged
entries? Cuz sometimes I see both entries in APC
So nobody knows anything ? never used it ?
agatone wrote:
Hi,
I'm trying to use contextSwitch (or AjaxSwitch) as i want for some action
to be accessible in JSON format.
The code i have in my init() of a controller is:
$context = $this-_helper-getHelper('ContextSwitch');
$context
Hi,
I'm trying to use contextSwitch (or AjaxSwitch) as i want for some action to
be accessible in JSON format.
The code i have in my init() of a controller is:
$context = $this-_helper-getHelper('ContextSwitch');
$context-addActionContext('read', 'json');
$ajaxContext-initContext();
If
on with this
bug.
Maybe you don't have time to work on it , didn't get to it yet or smtin like
that - just say what's up with it :)
Anyways, thanks for work you do! :)
regards
Matthew Weier O'Phinney-3 wrote:
-- agatone [EMAIL PROTECTED] wrote
(on Wednesday, 30 July 2008, 11:40 PM -0700):
Bug
Bug is still there.
I've attached ZIP on that ticket. Use zip to recreate the bug.
Matthew Weier O'Phinney-3 wrote:
-- Matthew Weier O'Phinney [EMAIL PROTECTED] wrote
(on Monday, 28 July 2008, 01:37 PM -0400):
-- Michael Depetrillo [EMAIL PROTECTED] wrote
(on Monday, 28 July 2008, 10:09
No, It doesn't solve it for me.
I use controller plugin to set up my view code in plugin is :
public function dispatchLoopStartup(Zend_Controller_Request_Abstract
$request)
{
$viewRenderer =
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
So, anything on this ?
agatone wrote:
I have same problem and I'll try to explain it a bit more
Exception: File ActionUri.php was loaded but class named
Admin_View_Helper_ActionUri was not found within it.
I setup my view in controller plugin in dispatchLoopStartup() and I add
Helper
I have same problem and I'll try to explain it a bit more
Exception: File ActionUri.php was loaded but class named
Admin_View_Helper_ActionUri was not found within it.
I setup my view in controller plugin in dispatchLoopStartup() and I add
Helper path and prefix of my class -
Hello,
I'm trying to code a site completely on ZF, however with all things that ZF
includes I lose lots of time around MVC part - especially View.
At the moment I got stuck with Template fragments or partials. Trying to do
it in the way of best practice I only got more lost and frustrated so I
Hello,
I have a question about controller folder depth. Lets say i have module
admin and the folder structure would be something like this:
admin
-controllers
--IndexController.php (class Admin_IndexController extends
Zend_Controller_Action)
-models
-views
By that structure i would have URL
Since I wanna have header, footer, menu includes etc. and I notice quite few
problems and posts around it.
I found that view script can be included nicely inside other view script
(can say news) with ?php echo $this-render('index/header.phtml') ?
This is quite what i need(not completly), because
in practice.
Matthew Weier O'Phinney-3 wrote:
-- agatone [EMAIL PROTECTED] wrote
(on Thursday, 23 August 2007, 09:58 AM -0700):
Since I wanna have header, footer, menu includes etc. and I notice quite
few
problems and posts around it.
I found that view script can be included nicely inside
Fetching realted row should be something like this (if i'm not wrong)
?php
$bugsTable = new Bugs();
$bugsRowset= $bugsTable-fetchAll();
foreach ($bufRowset as $bug1) {
$reporter = $bug1-findParentAccounts();
}
?
My question is: Is there already somekind of function
I'm sorry ... I'll try to explain it a bit better.
Let's say we have table NEWS with fields id, title, content, rel_author_id,
rel_category_id.
So fetching all news would look something like this:
?php
$news = new News();
$newsRowset = $news-fetchAll();
?
Now every news has author, who's
I'm sorry but I had to make this post, cuz I don't know what to read anymore
and i'm getting more and more lost.
Problem:
Let's say I have application at http://exmpl.com/.
Now this application has several modules:
http://exmpl.com/news/
http://exmpl.com/blog/
http://exmpl.com/gallery/
etc.
Somehow I don't understand the logic why would you auto-init VIEW for
complete project. Why such change?
What if I have only controller that handles request and redirects and I
don't need VIEW. Sure you could easly say TURN IT OFF, but what's the point
of TURNING ON things not knowing if people
I have a question considering Multilanguage Contents (posts, news etc.
-commonly read from DB). Does ZF provide any help with solutions of
multilanguage support OR all that needs to be done by yourself ?
If that kind of multilang. isn't supported can I get some advices how you
solve that problem
integrate new adapters.
But even with this adapter you would not be able to do online
translations...
This would be a new adapter. But I think the quality of
online-translations
would not satisfy your needs ;-)
Greetings
Thomas
I18N Team Leader
- Original Message -
From: agatone
I'm sorry if this was already discussed but i could find any topics about it.
Let's say we have in our controllers folder this action file :
class IndexController extends Zend_Controller_Action {
function indexAction() { ... }
function addAction() { ... }
function removeAction() { ... }
22 matches
Mail list logo