[fw-general] Gdata class for new Google Maps Data API

2009-05-20 Thread Jeffrey Sambells
submitting this as a formal part of ZF? Do we submit it as a regular proposal or do we need to collaborate with/ contact the current authors of Zend_Gdata? Thanks. -- Jeffrey Sambells PHP5 Zend Certified Engineer On 20-May-09, at 5:03 PM, Colin Guthrie wrote: 'Twas brillig, and Jon

[fw-general] Translate error

2008-06-16 Thread Jeffrey Sambells
Hi All, I'm suddenly getting: exception 'Zend_Translate_Exception' with message 'XML error: XML declaration not finished at line 1' in /library/Zend/Translate/Adapter/ Tmx.php:100 my TMX file hasn't changed in weeks and begins with... eXchange//EN" "tmx14.dtd"> creationtoolversion="1.0.0"

[fw-general] Best Practice?

2008-06-12 Thread Jeffrey Sambells
Hi All, Just wondering about controller action helpers and methods on controllers. If an app has a custom controller class extended from Zend_Controller_Action, is there a preferred way of adding "helper" methods? For example, I could add a method directly to the class or add a helper via

Re: [fw-general] Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Jeffrey Sambells
r - GET redirect page Server - Check FlashMessenger queue for messages Server to Client - Print out messages In order to solve your problem, record messages to an internal message queue (say an array on Zend_Registry) when you aren't redirecting, otherwise use FlashMessenger. - jake On Tue, J

Re: [fw-general] Using FlashMessenger to display a message when there was an error processing a form

2008-06-03 Thread Jeffrey Sambells
I think the issue is around adding to the flash messenger and then retrieving the message at the end of the same request (no refresh). I'm having a similar issue where we use the flash messenger to store messages and then try to retrieve them during the same request. Sometimes the applicati

Re: [fw-general] SVN Layout migration

2008-05-23 Thread Jeffrey Sambells
ader, Zend Framework http://www.thomasweidner.com - Original Message ----- From: "Jeffrey Sambells" <[EMAIL PROTECTED] > To: "Zend Framework General" Sent: Friday, May 23, 2008 6:08 PM Subject: Re: [fw-general] SVN Layout migration Has the migration been compl

Re: [fw-general] SVN Layout migration

2008-05-23 Thread Jeffrey Sambells
Has the migration been completed yet? Any ETA? - Jeffrey On 21-May-08, at 4:29 PM, Matthew Weier O'Phinney wrote: Greetings! Darby posted last week about some changes we propose making to the svn repository structure. That proposal, now revised slightly, is available at: http://framewo

[fw-general] Altering exsiting route object?

2008-05-05 Thread Jeffrey Sambells
Is it possible to alter a route object after it has been instantiated? I'd like to be able to do something like this: // for route: /example/:id $clone = clone $router->getRoute( 'example' ); $clone->setRoute( '/example2/:id' ); $router->addRoute( 'example2', $clone ); Which would result in /e

Re: [fw-general] zend + iphone subdomain

2008-05-03 Thread Jeffrey Sambells
You could use .iphone as the extension for your iphone views. - Jeff On 3-May-08, at 4:50 PM, draketherake wrote: Hi Matthew, Thanks for such a prompt post! After looking over the contextswitcher, I have a few more questions. It seems like the context switcher is only for changing the vi

Re: [fw-general] Nightly build system

2008-05-02 Thread Jeffrey Sambells
I've set up phpUnderControl (http://www.phpundercontrol.org/) which encompasses the below tools. Took me a short afternoon to figure out but once I did it works awesome and is easy to use. Our bugtracking, SVN and DB use other separate tools that are not related but I rely heavily on phpUnd

Re: [fw-general] Re: web services

2008-04-25 Thread Jeffrey Sambells
that seems to be a SOAP service, not REST: http://www.webservicex.net/WCF/ServiceDetails.aspx?SID=19 - Jeff On 25-Apr-08, at 3:25 PM, Greg Donald wrote: On Wed, Apr 23, 2008 at 3:04 PM, Greg Donald <[EMAIL PROTECTED]> wrote: Is this the part of ZF to use to consume web services? http://fram

Re: [fw-general] Validating Selects with Zend_Validate and Zend_Form

2008-04-25 Thread Jeffrey Sambells
I ran into a similar problem where I had written a validator that takes an array input. There was no way to use it as the logic structure below must return valid/invalid for each element so the single elements weren't valid in my validator even thought the array as a whole was valid. It wou

Re: [fw-general] Zend_Registry is good for?

2008-04-24 Thread Jeffrey Sambells
Flame war starting :) Let's just put it this way, the Zend_Registry is simply a proper OO design pattern implementation similar to php $GLOBALS. If you don't care about design patterns then you'll probably find Zend_Registry pointless but if you do care about design patterns then you'll use

Re: [fw-general] Localized urls?

2008-04-18 Thread Jeffrey Sambells
be using cookies as expected. - Jeff On 18-Apr-08, at 11:05 AM, Marcus Bointon wrote: On 18 Apr 2008, at 15:09, Jeffrey Sambells wrote: Internally the app is all localized properly and translates as necessary so I'm just trying to figure out the easiest way to add the URL feature but

[fw-general] Localized urls?

2008-04-18 Thread Jeffrey Sambells
Hi All, We've developed an app using ZF and have now decided that we'd like to localize the urls by prefixing them with the language, eg: http://example.com/page/whatever http://example.com/en/page/whatever http://example.com/fr/page/whatever etc. If no language is present in the url we'll d

[fw-general] Multi-Page forms

2008-04-02 Thread Jeffrey Sambells
Hello, I've been following the advanced multi-page form idea in the documentation: http://framework.zend.com/manual/en/zend.form.advanced.html#zend.form.advanced.multiPage and I have a few issues. First, because isVaild() is used on the form before it's rendered, even before you've had a

[fw-general] Zend_Acl getRoles()

2008-03-26 Thread Jeffrey Sambells
Is there a way to retrieve a list of the roles currently registered in a Zend_Acl object? I know there is a hasRole() but what if you want to know what roles are there (the registration occurs elsewhere in the setup of the code)? - Jeff

[fw-general] Zend_Form select element always multi?

2008-03-06 Thread Jeffrey Sambells
I seem to be having a problem rendering a select box. I have this: $form->addElement( 'select', 'select', array( 'label' => 'select', 'value' => 'value', 'multiOptions' => array( 'First', 'Second', 'third' ) ) ); The

[fw-general] Zend_Layout with nested layout?

2008-03-06 Thread Jeffrey Sambells
Hi All, I'm just playing with Zend_Layout and have a quick question. What I'd like to do is have a three part view. I'd like my designer to design a wrapper "template" that consists of the markup surrounding the output of action views. This is exactly what Zend_Layout does so perfect! but

Re: [fw-general] Zend_Form::isValidPartial() and array keyword

2008-03-04 Thread Jeffrey Sambells
Ah, I see my problem, I had accidentally extended the toArray method when playing with the SPL stuff. Thanks. On 4-Mar-08, at 9:54 AM, Matthew Weier O'Phinney wrote: -- Jeffrey Sambells <[EMAIL PROTECTED]> wrote (on Tuesday, 04 March 2008, 09:23 AM -0500): Hello, I'd

[fw-general] Zend_Form::isValidPartial() and array keyword

2008-03-04 Thread Jeffrey Sambells
Hello, I'd like to pass the result of a database query into the Zend_Form isValidPartial() method to pre-populate a form and analyze errors if applicable. Something like $rowset = $this->_table->find( '1' ); $row = $rowset->current(); $form->isValidPartial( $row ); However this isn't allo

[fw-general] Zend_Form how to prevent null values

2008-02-26 Thread Jeffrey Sambells
Hi All, I've been integrating Zend_Form and have a bit of a problem I'm trying to resolve. Let's say I have a form such as this: $form = new Zend_Form(); $title = new Zend_Form_Element_Text( 'title' ); $hidden = new Zend_Form_Element_Hidden('secret') $hidden->setValue('whatever'); $form->

Re: [fw-general] FlashMessenger delayed response

2007-11-07 Thread Jeffrey Sambells
is a little wonky. It says in the Docbloc that there's a parameter but there isn't. Anyways, all is working now. Jeff On 7-Nov-07, at 9:28 AM, Jeffrey Sambells wrote: Hi All, I'm having a bit of an issue with the FlashMessenger controller helper. After adding a message i

[fw-general] FlashMessenger delayed response

2007-11-07 Thread Jeffrey Sambells
Hi All, I'm having a bit of an issue with the FlashMessenger controller helper. After adding a message in my controller: $this->_flashMessenger->addMessage('new message '.date(DATE_RFC2822)); I later on (in a view helper) want to retrieve the messages so I do this, which I think is correct:

[fw-general] Existing Applications?

2007-04-06 Thread Jeffrey Sambells
Hi All, I'm just evaluation (re-evaluating actually) ZF for use in our production environment and I'm wondering if there are any ready-made applications using ZF? Things like catalogues, shopping carts, member management, calendars etc. Is there a list somewhere of existing projects avail