[fw-general] Web Data Portal Design for Distribution as OpenSource Package

2008-03-28 Thread Stefan Schwarzer
Hi there, I don't know anything about ZEND. And before starting to plunge into it, it would be great if someone could give me a hint or two to comment if we're on the right track with what we want to achieve. So, here's the situation: We’ve developed a dynamic Data Portal ( http://geodata.

Re: [fw-general] Zend_Form

2008-03-28 Thread SiCo007
Ok so how would i set custom error messages making use of: $form->addElement('text', 'name', array('required' => true, 'filters' => array('StringTrim', 'StringToLower'), 'label' => 'Name', 'description' => 'A unique name for the action, letters only.')); As whatever I do I cannot get it to work,

Re: [fw-general] Zend_Form and empty action

2008-03-28 Thread Steve Clay
Joó Ádám wrote: See this one: http://www.w3.org/TR/html4/interact/forms.html#adef-action 'User agent behavior for a value other than an HTTP URI is undefined.' "" is a valid relative URI. http://tools.ietf.org/html/rfc1808#section-5.2 : (linked from HTML4) "An empty reference resolves to the

Re: [fw-general] loading non-ZF classes using autoloader

2008-03-28 Thread rcastley
This suggestion works great in ZF 1.0.4, but since upgrading to 1.5.0 I can't get it to work. The errors I get are: [Fri Mar 28 11:53:04 2008] [error] [client 127.0.0.1] PHP Warning: Zend_Loader::include_once(DOMPDF\\Exception.php) [ function.Zend-Loader-include-once function.Zend-Loader-includ

Re: [fw-general] Zend_Form

2008-03-28 Thread Matthew Weier O'Phinney
-- SiCo007 <[EMAIL PROTECTED]> wrote (on Friday, 28 March 2008, 04:37 AM -0700): > > Ok so how would i set custom error messages making use of: > > $form->addElement('text', 'name', array('required' => true, 'filters' => > array('StringTrim', 'StringToLower'), 'label' => 'Name', 'description' =>

Re: [fw-general] Zend_Form

2008-03-28 Thread SiCo007
I'm trying to disable and reset the decorators on my form but the following does nothing! If I remove disableLoadDefaultDecorators' => true and the line $form->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'div')), 'Form')); then the form displays as normal (i.e. dd tags). I

Re: [fw-general] Zend_Form

2008-03-28 Thread Matthew Weier O'Phinney
-- SiCo007 <[EMAIL PROTECTED]> wrote (on Friday, 28 March 2008, 06:03 AM -0700): > I'm trying to disable and reset the decorators on my form but the following > does nothing! > > If I remove disableLoadDefaultDecorators' => true and the line > $form->setDecorators(array('FormElements', array('Html

[fw-general] Re: [fw-mvc] Multi Element and Translation

2008-03-28 Thread Емил Иванов / Emil Ivanov
Hi Metthew, Any luck fixing this? Regards, Emil Ivanov On 10/03/2008, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > -- Arthur M. Kang <[EMAIL PROTECTED]> wrote > (on Monday, 10 March 2008, 11:57 AM -0700): > > > Using latest SVN (8721). > > > > Not a major issue but when using translat

[fw-general] Re: [fw-mvc] Multi Element and Translation

2008-03-28 Thread Matthew Weier O'Phinney
-- Емил Иванов / Emil Ivanov <[EMAIL PROTECTED]> wrote (on Friday, 28 March 2008, 03:24 PM +0200): > Any luck fixing this? I haven't had a chance to look at it yet, and I'm not sure Amr has filed an issue (Amr: hint, hint ;-) ). > On 10/03/2008, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:

RE: [fw-general] loading non-ZF classes using autoloader

2008-03-28 Thread Robert Castley
This suggestion works great in ZF 1.0.4, but since upgrading to 1.5.0 I can't get it to work. The errors I get are: [Fri Mar 28 11:53:04 2008] [error] [client 127.0.0.1] PHP Warning: Zend_Loader::include_once(DOMPDF\\Exception.php) [ function.Zend-Loader-include-once function.Zend-Loader-inclu

[fw-general] Re: [fw-i18n] setTimezone and getTimezoneFromString

2008-03-28 Thread Thomas Weidner
Your mail is quite confusing. After reformatting there are a few things where I think that you eighter use an outdated version or are having problems with your profiler. loadClass is always called 54 times... but with 4 commented lines it takes 70ms less to load ? With the same ammount of line

Re: [fw-general] Zend_Form

2008-03-28 Thread SiCo007
Matthew Weier O'Phinney-3 wrote: > > $form = new Zend_Form(array( > 'elementDecorators' => array( > 'ViewHelper', > array('Description', array('tag' => 'div', 'class' => 'help')), > 'Errors', > array('Label'), > a

Re: [fw-general] Zend_Form

2008-03-28 Thread Matthew Weier O'Phinney
-- SiCo007 <[EMAIL PROTECTED]> wrote (on Friday, 28 March 2008, 10:38 AM -0700): > > > Matthew Weier O'Phinney-3 wrote: > > > > $form = new Zend_Form(array( > > 'elementDecorators' => array( > > 'ViewHelper', > > array('Description', array('tag' => 'div', 'cl

Re: [fw-general] Zend_Form

2008-03-28 Thread Steve Clay
SiCo007 wrote: You're probably sick of me by now but I would really like to get this working as I can't believe it's really this difficult! Thanks for all your No, keep them coming. Zend_Form is really powerful, but nothing this flexible is going to be trivial to finely configure. Thorough doc

Re: [fw-general] Web Data Portal Design for Distribution as OpenSource Package

2008-03-28 Thread Isaak Malik
Hey Stef, About the templates: using a template engine will allow users to easily customize templates and it will also make upgrading much easier than if you use static templates. If you want to make upgrading easy for your users then I would suggest you script your software using object orientat

[fw-general] Naming Recommendation for Controllers, Actions, and URLs using zend_controller

2008-03-28 Thread Dennis Fogg
Given the zend_controller naming changes in zend framework 1.5, I’m trying to figure out a recommended naming scheme that I can use for zf 1.5 and onwards. This forum post helped a lot: http://www.nabble.com/AW%3A-Normalizing-action-function-names-p16110540.html http://www.nabble.com/AW%3A-Norm

[fw-general] Conditional Validation

2008-03-28 Thread joaco182
I am trying to create a form that has a set of radio buttons marked Yes and No and a text field. I would like the text field to be required only when the Yes option is selected for the radio's. If I attach custom validation to the radio buttons, I can get an error to occur like I want, but the e

Re: [fw-general] Zend_Form

2008-03-28 Thread SiCo007
Matthew Weier O'Phinney-3 wrote: > > Okay, I missed something in the previous emails. setElementDecorators() > applies to elements set *before* it is called. When the > 'elementDecorators' config option is passed, it is run on all elements > created during configuration -- which you would have t

[fw-general] Add alternative view helper path

2008-03-28 Thread Rustin
I'm trying add an alternative view helper path without call addHelperPath in all my controllers neither include my helpers directory in the include path. Of course, I don't wanna inject code into the native classes. There's a 'politically correct' way to provide this? -- View this message in cont

Re: [fw-general] Naming Recommendation for Controllers, Actions, and URLs using zend_controller

2008-03-28 Thread Matthew Weier O'Phinney
-- Dennis Fogg <[EMAIL PROTECTED]> wrote (on Friday, 28 March 2008, 02:53 PM -0700): > > Given the zend_controller naming changes in zend framework 1.5, I’m trying to > figure out a recommended naming scheme that I can use for zf 1.5 and > onwards. This forum post helped a lot: > http://www.nabb

Re: [fw-general] Naming Recommendation for Controllers, Actions, and URLs using zend_controller

2008-03-28 Thread Dennis Fogg
Matthew Weier O'Phinney-3 wrote: > > > Let's cut to the chase: > > * Your controllers and actions can have camelCasing to accomodate > multiple words > * ON THE URL, you must specify multiple words using a word separator > ('.' or '-') > * VIEW SCRIPTS follow the same conventions