Re: [fw-general] Controller flow changes when using render() inside controller action

2009-06-08 Thread agatone
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

Re: [fw-general] Controller flow changes when using render() inside controller action

2009-06-08 Thread agatone
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

[fw-general] Controller flow changes when using render() inside controller action

2009-06-07 Thread agatone
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

Re: Re: [fw-general] Tags for the memcached and APC backends for Zend_Cache - new approach

2008-11-06 Thread agatone
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

Re: [fw-general] contextSwitch AjaxContent

2008-08-11 Thread agatone
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

[fw-general] contextSwitch AjaxContent

2008-08-07 Thread agatone
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

Re: [fw-general] Error in Zend Framework 1.6 RC1 ?

2008-08-07 Thread agatone
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

Re: [fw-general] Error in Zend Framework 1.6 RC1 ?

2008-07-31 Thread agatone
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

Re: [fw-general] Error in Zend Framework 1.6 RC1 ?

2008-07-29 Thread agatone
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');

Re: [fw-general] Error in Zend Framework 1.6 RC1 ?

2008-07-28 Thread agatone
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

Re: [fw-general] Error in Zend Framework 1.6 RC1 ?

2008-07-24 Thread agatone
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 -

[fw-general] View, template fragments/partials

2008-02-27 Thread agatone
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

[fw-general] Subfolders in controller folders

2007-12-06 Thread agatone
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

[fw-general] Controller called inside controller for header/footer/menu purposes

2007-08-23 Thread agatone
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

Re: [fw-general] Controller called inside controller for header/footer/menu purposes

2007-08-23 Thread agatone
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

[fw-general] Zend_Db (Table-Row)

2007-07-30 Thread agatone
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

Re: [fw-general] Zend_Db (Table-Row)

2007-07-30 Thread agatone
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

[fw-general] Router, Controller Front, Dispatcher

2007-06-27 Thread agatone
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.

Re: [fw-general] Broken code when upgrading from 0.9.2 - 1.0

2007-06-12 Thread agatone
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

[fw-general] multilanguage contents

2007-05-16 Thread agatone
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

Re: [fw-general] multilanguage contents

2007-05-16 Thread agatone
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

[fw-general] Action files

2007-04-20 Thread 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() { ... }