Re: [fw-general] Zend_Form select element always multi?

2008-03-07 Thread gammamatrix
I would not necessarily call it broken. Here is how to get what you need: // Start code $form = new Zend_Form(); $my_select_field_options = array( '1' => '1 fish', '2' => '2 fish', 'red' => 'red fish', 'blue' => 'blue fish', );

Re: [fw-general] Zend_Form select element always multi?

2008-03-07 Thread gammamatrix
I forgot to state in the last message: ->setIsArray(false) This is the key here to turn a field into a drop down select statement. The default creates an array based name select input which leads to a multi select input: ->setIsArray(false) ->setIsArray(true) gammamatrix wrot

Re: [fw-general] Zend_Form select element always multi?

2008-03-07 Thread mrolli
gammamatrix wrote: > > I forgot to state in the last message: > > ->setIsArray(false) > > This is the key here to turn a field into a drop down select statement. > The default creates an array based name select input which leads to a > multi select input: > > ->setIsArray(false) >

[fw-general] Zend_Acl: team rights vs. team leaders

2008-03-07 Thread Nicolai Scheer
Hi! Just started to explore the possibilities of Zend_Acl. Assume I use the following role structure: team-north | |- team-a | |- subteam-1a | |- subteam-2a | \- subteam-3a | |- team-b | |- subteam-1b | |- subteam-2b | \- subteam-3b and the following ressources: pages |- page1 |- page2

[fw-general] bug? action names changed. lowercased

2008-03-07 Thread Julian Davchev
Hi, I was badly surprised when updated ZF to 8625 I am trying to access this action 'addIndex' - camel sized action in controller I have public function addIndexAction() but I get string 'Action "addindex" does not exist and was not trapped in __call()' /(length=64)/ changing method na

Re: [fw-general] Zend_Form select element always multi?

2008-03-07 Thread Martin Martinov
On 07/03/2008, mrolli <[EMAIL PROTECTED]> wrote: > > > > gammamatrix wrote: > > > > I forgot to state in the last message: > > > > ->setIsArray(false) > > > > This is the key here to turn a field into a drop down select statement. > > The default creates an array based name select i

Re: [fw-general] bug? action names changed. lowercased

2008-03-07 Thread Rob Allen
On 7 Mar 2008, at 10:13, Julian Davchev wrote: Hi, I was badly surprised when updated ZF to 8625 I am trying to access this action 'addIndex' - camel sized action in controller I have public function addIndexAction() but I get string 'Action "addindex" does not exist and was not trapped in

Re: [fw-general] Zend_Form select element always multi?

2008-03-07 Thread Matthew Weier O'Phinney
-- Jeffrey Sambells <[EMAIL PROTECTED]> wrote (on Thursday, 06 March 2008, 11:10 PM -0500): > I seem to be having a problem rendering a select box. I have this: > > $form->addElement( 'select', 'select', array( > 'label' => 'select', > 'value' => 'value', >

Re: [fw-general] bug? action names changed. lowercased

2008-03-07 Thread Matthew Weier O'Phinney
-- Julian Davchev <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 12:13 PM +0200): > I was badly surprised when updated ZF to 8625 > > I am trying to access this action > 'addIndex' - camel sized action > > in controller I have > public function addIndexAction() > > but I get > string 'Acti

Re: [fw-general] bug? action names changed. lowercased

2008-03-07 Thread Matthew Weier O'Phinney
-- Rob Allen <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 12:27 PM +): > On 7 Mar 2008, at 10:13, Julian Davchev wrote: > > I was badly surprised when updated ZF to 8625 > > > > I am trying to access this action > > 'addIndex' - camel sized action > > > > in controller I have > > publ

Re: [fw-general] Zend_Acl: team rights vs. team leaders

2008-03-07 Thread Darby Felton
Nicolai Scheer wrote: Hi! Just started to explore the possibilities of Zend_Acl. Assume I use the following role structure: team-north | |- team-a | |- subteam-1a | |- subteam-2a | \- subteam-3a | |- team-b | |- subteam-1b | |- subteam-2b | \- subteam-3b and the following ressources:

[fw-general] shouldn't ZF promote not using short tags

2008-03-07 Thread Julian Davchev
Hi, I see in documentation everywhere using

Re: [fw-general] shouldn't ZF promote not using short tags

2008-03-07 Thread Matthew Weier O'Phinney
-- Julian Davchev <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 04:18 PM +0200): > I see in documentation everywhere using Shouldn't ZF not tolerate short tag notation and provide examples as > ... These conventions in our *view scripts* lead to greater readability and management

Re: [fw-general] shouldn't ZF promote not using short tags

2008-03-07 Thread Thomas Weidner
+1 from me... This is an issue of coding standard and many people do not have enabled short tags for security or other reasons. Greetings Thomas Weidner, I18N Team Leader http://www.thomasweidner.com - Original Message - From: "Julian Davchev" <[EMAIL PROTECTED]> To: "Zend Framework

[fw-general] DB, where clauses

2008-03-07 Thread debussy007
Hi, When inserting or fetching in a DB, the where condition must be of the following syntax (when using an array): $where = array( 'id_photo = ?' => $pic, 'member_id = ?' => $memberId ); But when updating, the above where close will generate a wrong Sql, and need to apply anot

Re: [fw-general] shouldn't ZF promote not using short tags

2008-03-07 Thread Matthew Weier O'Phinney
-- Thomas Weidner <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 03:52 PM +0100): > +1 from me... > > This is an issue of coding standard and many people do not have enabled > short tags for security or other reasons. As noted in my response, I plan on adding a stream wrapper to Zend_View s

Re: [fw-general] shouldn't ZF promote not using short tags

2008-03-07 Thread Julian Davchev
Yep, that would be great indeed. Let me know if can watch some ticket or something on progress...would be good. If not, will wait to hear on mailinglist for this great feature. Matthew Weier O'Phinney wrote: -- Thomas Weidner <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 03:52 PM +0100)

[fw-general] Nabble forum design

2008-03-07 Thread Tobias Gies
Hi there, I don't know if any of you Zenders recently checked Nabble, but there's a notice box stating that the skinning feature of Nabble is obsolete and will disappear soon. More info: http://www.nabble.com/help/Answer.jtp?id=42&skin=16154 Best regards Tobias

[fw-general] RSS Component

2008-03-07 Thread Kevin McArthur
Before I go and reinvent the wheel, has anyone proposed or developed a RSS feed _creator_ for the framework? Zend_Feed does an excellent job of parsing feeds but I don't see any documented way to create RSS feeds in a similar way to how zend_feed parses them. Kevin

Re: [fw-general] RSS Component

2008-03-07 Thread Vincent
On 3/7/08, Kevin McArthur <[EMAIL PROTECTED]> wrote: > > Before I go and reinvent the wheel, has anyone proposed or developed a > RSS feed _creator_ for the framework? > > Zend_Feed does an excellent job of parsing feeds but I don't see any > documented way to create RSS feeds in a similar way to h

[fw-general] cacheDir on Example 10.100 and Example 10.101

2008-03-07 Thread Bagus Nugroho
Hi, is misconfigure the cache backend configuration on example 10.100 and 10.101? == $backendOptions = array( 'cacheDir'=> 'cacheDir' ); == Rgds

[fw-general] Zend_Form adding decorators with config

2008-03-07 Thread Vytautas Jakutis
In 1.5.0RC1 is there a good way to add a decorator when creating a form with Zend_Config, without clearing the default ones? for example: I want this this to add a decorator and preserve the default. Currently, this clears them. elements.firstname.options.decorators.link.type = "Callback" elem

[fw-general] Reply to mailing list

2008-03-07 Thread Isaak Malik
Hey, When I reply to a message from the mailing list I'm replying to the person in private and when I paste the mailing list E-mail address into the "To" field I don't receive any of my sent messages, am I doing something wrong? -- Isaak Malik Web Developer

Re: [fw-general] RSS Component

2008-03-07 Thread Kevin McArthur
Aha, Thanks Vincent. This will do nicely. I might suggest a doc update, adding a heading 'Creating Feeds' which points out the saveXML and send methods more explicitly than under their current organization. K Vincent wrote: On 3/7/08, *Kevin McArthur* <[EMAIL PROTECTED]

Re: [fw-general] RSS Component

2008-03-07 Thread Matthew Weier O'Phinney
-- Kevin McArthur <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 11:29 AM -0800): > Before I go and reinvent the wheel, has anyone proposed or developed a RSS > feed _creator_ for the framework? > > Zend_Feed does an excellent job of parsing feeds but I don't see any > documented way to cre

Re: [fw-general] Zend_Form adding decorators with config

2008-03-07 Thread Matthew Weier O'Phinney
-- Vytautas Jakutis <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 10:10 PM +0200): > In 1.5.0RC1 is there a good way to add a decorator when creating a form > with Zend_Config, without clearing the default ones? No. Passing the decorators during instantiation calls setDecorators(), which o

[fw-general] Zend Feed and Unusual Tags

2008-03-07 Thread Kyle Brady
Hi everyone, I'm new to the Zend support/help/community arena, so I apologize if this is the wrong list. I'm looking to find a way to access data inside weird feed tags (using Zend Feed), and having a hard time doing it. For example: TheTitle I've tired every way I could think of, and didn't f

RE: [fw-general] CakePHP vs. ZendFramework

2008-03-07 Thread Art Hundiak
Andrés Robinet wrote: > > That’s very easy to answer… but first we should all agree about Windows > vs. > Linux, Coke vs. Pepsi, Alien vs. Predator and Freddy vs. Jason > Linux,Coke,Predator,Freddy Next question please. -- View this message in context: http://www.nabble.com/CakePHP-vs.-Zend

RE: [fw-general] Reply to mailing list

2008-03-07 Thread Wil Sinclair
There's a good chance you're not making through the spam filter. I haven't had a chance to log in and clean it up for a couple of weeks, but I'll get to it today or over the weekend. If you're there, I'll whitelist your email so it won't happen again. ,Wil > -Original Message- > From: Isa

[fw-general] Error in manual - 15.3.9. Custom Elements

2008-03-07 Thread gammamatrix
15.3.9. Custom Elements class __construct($name, $options = null) should be public function __construct($name, $options = null) addPrefixPath('My_Decorator', 'My/Decorator/', 'decorator') ->addFilters('StringTrim') ->addValidator('Regex', false, array('/^[a-z

Re: [fw-general] Error in manual - 15.3.9. Custom Elements

2008-03-07 Thread gammamatrix
This is in: http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.custom gammamatrix wrote: > > 15.3.9. Custom Elements > > class __construct($name, $options = null) > > should be > > public function __construct($name, $options = null) > > class My_Elemen

Re: [fw-general] Error in manual - 15.3.9. Custom Elements

2008-03-07 Thread Matthew Weier O'Phinney
-- gammamatrix <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 02:01 PM -0800): > > 15.3.9. Custom Elements > > class __construct($name, $options = null) > > should be > > public function __construct($name, $options = null) > > class My_Element_Text extends Zend_Form_Element > {

[fw-general] Reminder: Code freeze for 1.5.0RC2

2008-03-07 Thread Wil Sinclair
Just a reminder, all, code freeze is TONIGHT at 9:00PM PST. Please commit all check ins targeted for 1.5RC2 by this time. Also remember to merge any changes on trunk that should be included in 1.5RC2 to the 1.5 branch by this deadline. Thanks for the contributions, and let's keep our fingers cross

[fw-general] Zend_OpenId fails for yahoo openid

2008-03-07 Thread sgrobins
I used to use a library called Auth_OpenID for my consumer which worked for all providers including yahoo. I switched to using Zend_OpenId and now it doesn't work for yahoo as a provider. Has anyone gotten this to work? After looking at the code, I was able to get it to work, but I had to do the

[fw-general] Is there a way to set options on a tag surrounding a label?

2008-03-07 Thread Karl Katzke
I'm using Zend_Form to build a form, and I'd like to align all of the labels to the right inside their table cells. I can do this with either CSS or the align="right" attribute of the table cell, but I would need to be able to set attributes on the tag... which by my read, currently isn't possible.

Re: [fw-general] Error in manual - 15.3.9. Custom Elements

2008-03-07 Thread Matthew Weier O'Phinney
-- Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 05:31 PM -0500): > -- gammamatrix <[EMAIL PROTECTED]> wrote > (on Friday, 07 March 2008, 02:01 PM -0800): > > > > 15.3.9. Custom Elements > > > > class __construct($name, $options = null) > > > > should be > >

Re: [fw-general] Is there a way to set options on a tag surrounding a label?

2008-03-07 Thread Matthew Weier O'Phinney
-- Karl Katzke <[EMAIL PROTECTED]> wrote (on Friday, 07 March 2008, 08:55 PM -0600): > I'm using Zend_Form to build a form, and I'd like to align all of the labels > to > the right inside their table cells. I can do this with either CSS or the > align= > "right" attribute of the table cell, but I