Re: [fw-general] Base Controller Classes

2009-12-22 Thread Саша Стаменковић
You can try with extending Zend_Controller_Plugin_Abstract http://framework.zend.com/manual/en/zend.controller.plugins.html Regards, Saša Stamenković On Tue, Dec 22, 2009 at 7:23 AM, Taha Bayrak tahabay...@gmail.com wrote: Hi , I have a quick question: What is the best practice for

[fw-general] Zend_Form Int filter

2009-12-22 Thread umpirsky
Hi. I have several fields of int type which I have in my form. I want to get integer when I get values from form after submission. So, I attached int filter like: -addElement( 'text', 'name', array(

Re: [fw-general] Re: Base Controller Classes

2009-12-22 Thread Cameron
What's the deal with haters hatin' on our old friend the base class? Maybe you can implement base class functions like getAction using a dispatch level plugin, but how is that better than a simple abstract class to base your controllers around? My actual controllers are 80% method free, it's all

Re: [fw-general] ZF 1.10.0alpha1 released

2009-12-22 Thread Georgy Turevich
Great! PS: On this page http://framework.zend.com/download/latest in readme text link on http://framework.zend.com/changelog/1.10.0alpha1 is failed.

Re: [fw-general] ZF 1.10.0alpha1 released

2009-12-22 Thread Georgy Turevich
Great! PS: On this page http://framework.zend.com/download/latest in readme text link on http://framework.zend.com/changelog/1.10.0alpha1 is failed.

Re: [fw-general] Re: Base Controller Classes

2009-12-22 Thread Jurian Sluiman
I have several options to solve this issue: 1) My own library has a My_Controller_Action, extending Zend_Controller_Action. This controller provides basic functionality used through the whole application (extending the __call to access action helpers directly, for example). 2) Inside e.g. a

Re: [fw-general] URL issue with multiple customers sharing the same application

2009-12-22 Thread Guillaume ORIOL
The original question was fogotten in our discussion. Does anyone have a suggestion for building URL in that situation? Thanks for the replies Jake and Guillaume, they have made me think as I am currently adding somthing of the same to an app Im Implementing, I was thinking of having a one

[fw-general] isValid not executed on multicheckbox when the element is not required and value is not set

2009-12-22 Thread Guillaume ORIOL
Here is a schematic view of the form I have: (*) choice 1 [X] option 1 [_] option 2 [_] option 3 ( ) choice 2 When choice 1 is checked, at least one of the three options should be checked. I wanted to write a specific validator for the options but... as the options multi-checkbox

Re: [fw-general] Buttons and isChecked method

2009-12-22 Thread Hector Virgen
I get a fatal error when I try that: Fatal error: Can't use method return value in write context in /Users/hvirgen/Web/projects/virgentech/application/controllers/IndexController.php on line 49 I swapped it for this test, which is similar to yours: if (!$this-getValue()) { return true; }

[fw-general] Help with - Captcha image refresh in forum

2009-12-22 Thread Pablo de la Vega
Any one know hoy to refresh one imagen in a forun with decorate? i alredy make a validate mail and username with jquery in some inputs. i have a image captcha and i like to put a button/imagen with onclick action refresh the captcha imagen.. pliz help me!! Best Regards, Pablo -- AgeValed

[fw-general] AjaxContent

2009-12-22 Thread Eugen_cro
Hi all, I'm studying AjaxContent helper to stop my previous practice to just echo things from controller for json responses.. Now, I have one question: I have a object like this: $res-rows = 1; $res-columns = 2; Now, I pass that object to view: $this-view-res = $res; And I get json response

Re: [fw-general] AjaxContent

2009-12-22 Thread Jake McGraw
foreach($res as $field = $value) { $this-view-{$field} = $value; } On Tue, Dec 22, 2009 at 4:28 PM, Eugen_cro eugen.bo...@tvz.hr wrote: Hi all, I'm studying AjaxContent helper to stop my previous practice to just echo things from controller for json responses.. Now, I have one question:

Re: [fw-general] AjaxContent

2009-12-22 Thread Jake McGraw
Assuming it's Iterable, if not, use type casting first: $res = (array) $res; - jake On Tue, Dec 22, 2009 at 4:46 PM, Jake McGraw jmcgr...@gmail.com wrote: foreach($res as $field = $value) {  $this-view-{$field} = $value; } On Tue, Dec 22, 2009 at 4:28 PM, Eugen_cro eugen.bo...@tvz.hr

[fw-general] External Modules

2009-12-22 Thread Paul
I know this has been discussed before, but was is the best way to handle external modules? I not asking for a place to find modules or for ZF to have a site dedicated to modules, just want to know what the standard is for installing a module into your existing system. To me the library

Re: [fw-general] External Modules

2009-12-22 Thread Simon R Jones
hi Paul, We have the same requirement at Studio 24: basically wanting to store a re-usable module which has core, usually non-editable code which can then be extended/customised for a client project. I agree the normal ZF modules don't really cover this use case. At present we place this