[fw-general] Zend_Validate_Barcode - Unable to instanciate with custom adapter

2011-04-18 Thread Martin Carpentier
use a failure when trying to load custom adapters. Here's a possible fix: $zfAdapter = ucfirst(strtolower($adapter)); > require_once 'Zend/Loader.php'; > if (Zend_Loader::isReadable('Zend/Validate/Barcode/' . $zfAdapter. '.php')) > { > $adapter = 'Zend_Validate_Barcode_' . $zfAdapter; > } Let me know if I should open an issue on the tracker or if I missed something. Martin Carpentier

Re: [fw-general] Re: Zend_Dojo_Form required RadioButton

2009-11-18 Thread Martin Carpentier
That explains it !!! Now I just need to figure out how to go about defining that isValid() method. Thank you very much for your help. Martin Carpentier On Wed, Nov 18, 2009 at 15:06, Matthew Weier O'Phinney wrote: > -- Martin Carpentier wrote > (on Monday, 16 November 2009, 02:

Re: [fw-general] Re: Zend_Dojo_Form required RadioButton

2009-11-18 Thread Martin Carpentier
Sorry to bump this again but it's really making me go crazy as I can't figure it out. Any help would be greatly appreciated. Martin Carpentier On Mon, Nov 16, 2009 at 14:44, Martin Carpentier < carpentier.mar...@gmail.com> wrote: > Hi Matthew, > > thanks for the reply.

Re: [fw-general] Re: Zend_Dojo_Form required RadioButton

2009-11-16 Thread Martin Carpentier
Something"); if (!form.validate()) { return false; } return true; } All the elements get validated on the submit except for the radio buttons. Do I have to add javascript code specificaly for the validation of the radio buttons ? Martin Carpentier On Mon, Nov 16, 2009

[fw-general] Re: Zend_Dojo_Form required RadioButton

2009-11-16 Thread Martin Carpentier
I'm bumping this topic as I haven't found a solution yet and have a hard time believing I'm the only one having to use required radio buttons in a form. Anyone having a solution for this ? Thanks, Martin Carpentier On Tue, Nov 10, 2009 at 16:18, Martin Carpentier < carpentie

[fw-general] Zend_Dojo_Form required RadioButton

2009-11-10 Thread Martin Carpentier
ms":{"dojoType":"dijit.form.RadioButton"}},{"id":"elementName-1","params":{"dojoType":"dijit.form.RadioButton"}}, ... ]; The required flag is only set on the "main" elementName element but doesn't seem to be taken into account for the validation. So my question is, how can I make the RadioButton element being flagged as required when none of it's values has been selected? Martin Carpentier

Re: [fw-general] Get the database adapter without Zend_Db_Table

2009-09-17 Thread Martin Carpentier
'db'); You don't need the extra bootstrap code since it will already be available as the "db" resource >From there you could inject it into your models on instantiation. Martin Carpentier On Wed, Sep 16, 2009 at 14:50, wrote: > Hello Bence, > you can cal

Re: [fw-general] Zend_Validate_NotEmpty and null values

2009-09-15 Thread Martin Carpentier
Excellent! Thanks Can't wait for the next ZF release! Martin Carpentier On Tue, Sep 15, 2009 at 18:53, Ralph Schindler wrote: > Please check trunk now, both trunk and branch release 1.9 are in sync. > > Thanks! > ralph > > Martin Carpentier wrote: > >> Hi R

Re: [fw-general] Zend_Validate_NotEmpty and null values

2009-09-15 Thread Martin Carpentier
I don't open issues needlessly? My understanding was that the trunk was the most up to date. Martin Carpentier On Tue, Sep 15, 2009 at 02:22, Ralph Schindler wrote: > Sorry, I meant to check against this: > > http://framework.zend.com/svn/framework/standard/branches/release-1

Re: [fw-general] Zend_Validate_NotEmpty and null values

2009-09-14 Thread Martin Carpentier
Peter, Thank you for the reply. I'll open an issue then. Martin Carpentier On Sun, Sep 13, 2009 at 08:45, Peter Warnock wrote: > Based on your example, it looks like the backward compatibility was broken. > > - pw > > > On Sat, Sep 12, 2009 at 7:20 AM, Martin Carpen

[fw-general] Zend_Validate_NotEmpty and null values

2009-09-12 Thread Martin Carpentier
ALID error type. A fix for this would be to check that the value is not null before checking its type (in Zend/Validate/NotEmpty.php on line 56) if (null !== $value && !is_string($value) && !is_int($value) && !is_float($value) && !is_bool($value) && !is_array($value)) { $this->_error(self::INVALID); return false; } Could someone confirm this issue? Martin Carpentier

[fw-general] Re: Zend_Validate_NotEmpty and unchecked radio button marked as required fields

2009-09-10 Thread Martin Carpentier
Hi, I'm sorry to bring this up again but I'm really surprised there's been no reply regarding this problem yet. Can anyone confirm if it's a real issue, in which case I'll open a ticket, or if it's now the desired behavior of Zend_Validate_NotEmpty for null value

[fw-general] Re: Zend_Validate_NotEmpty and unchecked radio button marked as required fields

2009-09-08 Thread Martin Carpentier
r messages and translations. Thank you in advance for your help. Martin Carpentier On Thu, Sep 3, 2009 at 17:19, Martin Carpentier wrote: > Hi, > > since the modification made to Zend_Validate_NotEmpty in ZF 1.9.0 (checking > the value for valid types) radio buttons set with th

[fw-general] Zend_Validate_NotEmpty and unchecked radio button marked as required fields

2009-09-03 Thread Martin Carpentier
;_error(self::INVALID); return false; } With that check in place, a null $value would get flagged as being of an INVALID type A fix would be to check also that the value is not null like this: if (null !== $value && !is_string($value) && !is_int($value) && !is_float($value) && !is_bool($value)) { $this->_error(self::INVALID); return false; } Let me know if I should submit a bug report... or if I shouldn't be expecting that behavior anymore. Martin Carpentier

Re: [fw-general] Best place to specify encoding

2007-10-15 Thread Martin Carpentier
e [1] > > so it all Just Works. But if you have it working, you're good. > > > > Mike > > > > [1] except for the web server which usually runs in the C locale > > because it may need to handle many encodings simultaneously. > > > > -- > > Michael B Allen > > PHP Active Directory SPNEGO SSO > > http://www.ioplex.com/ > > -- Martin Carpentier

Re: [fw-general] Using a complete HTML Template

2007-09-28 Thread Martin Carpentier
In my controller I do this on postDispatch() > > public function postDispatch() > > { > > $this->view->viewScript = $this->getRequest()->getControllerName() > > . "/" . $this->getRequest()->getActionName() > >

Re: [fw-general] Using a complete HTML Template

2007-09-26 Thread Martin Carpentier
. ".phtml"; > $this->_helper->viewRenderer->renderScript("layouts/main.phtml" ); > } > > > It works, but it is not flexible cause _forward() renders the layout > view script a second time. Invocation on preDispatch() or smth. else > dont works, cause there are no assigned data available in the view > scripts. Now I believe my approach is a dead-end street...any help is > appreciated ;-) > > Best regards > /Ralf > > > > > -- > Looking for a deal? Find great prices on flights and > hotels<http://us.rd.yahoo.com/evt=47094/*http://farechase.yahoo.com/;_ylc=X3oDMTFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20->with > Yahoo! FareChase. > -- Martin Carpentier

Re: [fw-general] Two-Step View, subclassing controller, etc

2007-06-25 Thread Martin Carpentier
view'); > } > } > > and then have your controllers extend MyAppController instead of > Zend_Controller_Action. Thoughts? > > -- > David Mintz > http://davidmintz.org/ > > "Our universe is just one of those things that happens from time to time." -- Martin Carpentier

Re: [fw-general] Migration problem with viewRenderer

2007-06-06 Thread Martin Carpentier
can chime in ;). Paddy Pádraic Brady http://blog.astrumfutura.com http://www.patternsforphp.com ----- Original Message From: Martin Carpentier <[EMAIL PROTECTED]> To: fw-general@lists.zend.com Sent: Wednesday, June 6, 2007 11:27:55 AM Subject: [fw-general] Migration problem w

[fw-general] Migration problem with viewRenderer

2007-06-06 Thread Martin Carpentier
del_Ged_Document::getPresentationModel(); $this->view->user = 'anonymous'; // Controller = 'index', Action = 'index', param name = 'document' $this->view->documentUrl = 'index/index/document'; } /** * STAGE 5: Choose view and submit presentation model to view. */ protected function displayStage5() { // Hard way: //$this->_response->appendBody($this->view->render(' indexDocuments.phtml')); $this->renderToSegment('body'); // initiate STAGE 6 in the view template } /** * redirect bogus URLs back to the application's "home" page */ public function __call($name, $parameters) { $this->_redirect('/'); } } The problem I get is that once in the view script, the view object has been reset by the viewRenderer helper and I'm unable to display any data I assign to the view. Thanks -- Martin Carpentier

[fw-general] zfdemo tutorial

2007-05-31 Thread Martin Carpentier
( http://framework.zend.com/wiki/display/ZFDEV/Tutorial ) from where he left? -- Martin Carpentier

Re: [fw-general] Conventional Modular Layout and application wide view scripts

2007-03-30 Thread Martin Carpentier
On 3/29/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: -- Martin Carpentier <[EMAIL PROTECTED]> wrote (on Thursday, 29 March 2007, 05:09 PM +0200): > That's exactly the kind of elegant solution I was looking for. > Thanks for your fast reply. > > I

Re: [fw-general] Conventional Modular Layout and application wide view scripts

2007-03-29 Thread Martin Carpentier
folders with other folder like config, views, etc. What would you suggest ? On 3/29/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: -- Martin Carpentier <[EMAIL PROTECTED]> wrote (on Thursday, 29 March 2007, 02:48 PM +0200): > I'm currently in the process of upg

[fw-general] Conventional Modular Layout and application wide view scripts

2007-03-29 Thread Martin Carpentier
te); ?> . What I'm wondering is where would be a good place to put the site wide view scripts such as _menu.phtml (also think header/footer scripts) and what would be the best way to use them inside the modules controller ? Thanks in advance, -- Martin Carpentier

[fw-general] Zend_Gdata and Google Search Appliance

2007-03-02 Thread Martin Carpentier
_string() I've tried with approach 3 was somewhat successful but it's very tedious and makes for ugly code. To me approach 1 feels like the best way to go but I'm not sure what I'd need to do. Any help would be greatly appreciated. Regards, -- Martin Carpentier