[fw-general] Authentication Request for Multiple Users -- Zend_Http_CookieJar

2009-01-13 Thread Junior Gillespie
Hello, I've implemented zend_http with Zend_Http_CookieJar and followed the example on "Example 23.14. Performing consecutive requests with one client". This example allows me to use one authentication request per user, store CookieJar in the user's session and allow for additional requests withou

[fw-general] Updates to Zend_Wildfire (Firebug/FirePHP logger)

2009-01-13 Thread Christoph Dorn
I have made some important updates to Zend_Wildfire. Code is in the SVN trunk. When logging objects in frameworks like ZF there can be many object members that while important to the framework are of less interest when debugging. If these members are logged they bloat the log message that is

Re: [fw-general] Zend_Captcha

2009-01-13 Thread Stanislav Malyshev
Hi! Out of curiosity i just need to know if the PNGs created by Zend_Captcha gets deleted after expiration or later on. I just noticed this files can grow in immensely in number on the server and hence populate unnecessary space. Is there a way of configuring the component such that it deletes e

[fw-general] Zend_Captcha

2009-01-13 Thread dele454
Out of curiosity i just need to know if the PNGs created by Zend_Captcha gets deleted after expiration or later on. I just noticed this files can grow in immensely in number on the server and hence populate unnecessary space. Is there a way of configuring the component such that it deletes expire

Re: [fw-general] Maybe I'm Missing Something -- Or is Zend_Form?

2009-01-13 Thread Jason Webster
Yeah, it is fully included in HTML 4.0, and depreciated but still available in XHTML 1.0. It is not until XHTML 1.1 where it is fully removed. Somebody raised an issue saying that the name attribute was invalid according to the w3c, and I, unfortunately, did not do due diligence, and stripped

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-13 Thread Benjamin Eberlei
Hello matthew, i would subscribe to such a component based registry thing :-) ok its not up to me, but i think its a very good mixture between DI and simplicity and especially the Controller component would really benefit from the more flexibility. :-) On Tue, 13 Jan 2009 16:38:48 -0500, Matthew

Re: [fw-general] Maybe I'm Missing Something -- Or is Zend_Form?

2009-01-13 Thread Matthew Weier O'Phinney
-- jlevy wrote (on Tuesday, 13 January 2009, 12:29 PM -0800): > > form setup in my controller can't be any simpler: > > $form = new Zend_Form(); > > $form->setName('oscarMayer'); > > // set action, method, etc etc etc etc > > and in my view: > > form ?> > > I should have: > blah. > > But

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-13 Thread Matthew Weier O'Phinney
-- Benjamin Eberlei wrote (on Tuesday, 13 January 2009, 06:11 PM +0100): > great post ralph! this is a step into a brighter future ;-D > > my two cents though. > > 1. having __construct(array $options); is cool from a simplicity point but it > hides dependencies, since in an array you couldincl

Re: [fw-general] Zend_Form and required checkbox

2009-01-13 Thread PHPScriptor
true, you can't use required for that one. When checked the value is default '1', not checked default '0'. So there's always a value passed and required is always true. So I would use a validator e.g. Identical and check for value '1'. Or you can use the validator GreaterThan and check if it's gre

Re: [fw-general] Maybe I'm Missing Something -- Or is Zend_Form?

2009-01-13 Thread Jason Murray
Did you do: $this->view->form = $form; in the controller? Regards, Jason Murray On Tue, Jan 13, 2009 at 3:29 PM, jlevy wrote: > > form setup in my controller can't be any simpler: > > $form = new Zend_Form(); > > $form->setName('oscarMayer'); > > // set action, method, etc etc etc etc > >

Re: [fw-general] Maybe I'm Missing Something -- Or is Zend_Form?

2009-01-13 Thread Jason Webster
This isn't particularly relevant to your problem, but it is worthwhile to note that the name attribute on forums has been depreciated, and may not be around in next gen XHTML specs On 13/01/2009 12:29 PM, jlevy wrote: form setup in my controller can't be a

Re: [fw-general] Maybe I'm Missing Something -- Or is Zend_Form?

2009-01-13 Thread Tobias Gies
Hi Jeff, quoting Matthew Weier O'Phinney: > The "name" attribute is deprecated in HTML 4.01, and invalid with XHTML > 1.0. You can use the id attribute to reference forms from javascript. He posted this just a month ago. Pro tip: You can search the ZF mailing list archives via Nabble at http://w

[fw-general] Zend_Form and required checkbox

2009-01-13 Thread Giorgio Sironi
How can I create a required checkbox in my class that extends Zend_Form? Suppose I am in init() method. I want the form being not valid if checkbox isn't checked. This does not work: ->addElement('Checkbox', 'privacy', array( 'label' => 'Sottos

[fw-general] Maybe I'm Missing Something -- Or is Zend_Form?

2009-01-13 Thread jlevy
form setup in my controller can't be any simpler: $form = new Zend_Form(); $form->setName('oscarMayer'); // set action, method, etc etc etc etc and in my view: form ?> I should have: http://www.nabble.com/Maybe-I%27m-Missing-SomethingOr-is-Zend_Form--tp21443838p21443838.html Sent from th

[fw-general] displaying an xml partial

2009-01-13 Thread Bob O
Hello all, So im new to Zend and the bulk of PHP coming over from the Rails community. We are converting our site from Rails to PHP using the Zend framework, and i have a trip up. in Rails i am calling a reference to a rxml file like so :controller => :reports, :action => :data where this points

RE: [fw-general] Eclipse PDT 2.0

2009-01-13 Thread Wil Sinclair
There is a ZF formatter in Zend Studio; not sure if you can use that with PDT 2.0. CC'ing our Studio team lead in case he's got a solution for you. ,Wil From: Thomas Fritz [mailto:fritz...@gmail.com] Sent: Tuesday, January 13, 2009 2:00 AM To: fw-general@lists.zend.com Subject: [fw-general

RE: [fw-general] Lost password for wiki

2009-01-13 Thread Wil Sinclair
You can reset it here: http://framework.zend.com/crowd/ I also added that link to the welcome message in JIRA, so hopefully people will be able to find it more easily. I'm not sure that it showed up anywhere on the site before. :o ,Wil > -Original Message- > From: keith Pope [mailto:mute

Re: [fw-general] How to add a Link into a group of Zend Form elements?

2009-01-13 Thread PHPScriptor
this is not 100%. And it's maybe not ment to be used like this but what you could do is create an hidden field, set a description and make de description decorator escape => false. Why can't u use setlabel? 'Cause you can't set the escape to false in the decorator. It's always escaping. Somethin

Re: [fw-general] Weird problem with view script and Zend_Dojo_Data

2009-01-13 Thread Nico Edtinger
Stores in Dojo have the attribute queryExpr, which is normally set to "{0}*" (search term + wildcard) IIRC (or it might have been the widget using the store). I don't have a code example at hand so I hope you can use that and Firebug to find out where to set the correct value. nico Ralf Eg

[fw-general] Alternate Route for Module

2009-01-13 Thread Bagus Nugroho
Hi All, As stated on reference guide to default route was [hostname/]module/controler/action/params, is possible to set module as part of hostname, then the route look become like this [module.hostname/]controller/action/params? Thanks in advance rgds, bn

[fw-general] How to add a Link into a group of Zend Form elements?

2009-01-13 Thread Michel Morelli
Hi all. I have this piece of code : $this->addDisplayGroup(array('id_brand','id_model','version'),'DatiMezzo',array('legend' => 'Dati automezzo')) ->addDecorator('HtmlTag', array('tag' => 'div)); } And it is ok, the three elements are inside a fieldset. But now, I need to insert

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-13 Thread Benjamin Eberlei
great post ralph! this is a step into a brighter future ;-D my two cents though. 1. having __construct(array $options); is cool from a simplicity point but it hides dependencies, since in an array you couldinclude ANYTHING. Most components also don't require the dependencies to be set in constr

Re: [fw-general] Model / Form / Resource Loading in Modules

2009-01-13 Thread Matthew Weier O'Phinney
-- Simon Corless wrote (on Tuesday, 13 January 2009, 05:55 AM -0800): > > Just a question really on how others do the same sort of thing... That being > the loading of forms, models and anything else outside the immediate ZF > fold. I have my modules and each has a model and form directory, then

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-13 Thread Ralph Schindler
Comments inline: > The better solution is dependency injection, and one facet of this is removing I disagree (if you are talking about DI as a container model) > explicit references to Registry/global items from source code. This is a I agree. > feature the ZF has yet to include but Bradley H

[fw-general] Lost password for wiki

2009-01-13 Thread keith Pope
Hi, I have forgot my login for the wiki and cant find anywhere to retrieve it from can any of the admins help? Thx Keith

Re: [fw-general] Model / Form / Resource Loading in Modules

2009-01-13 Thread Ralph Schindler
Simon, we are discussing this very thing right now in a proposal: http://framework.zend.com/wiki/display/ZFPROP/Zend_Loader_Autoloader_Resourc e+-+Matthew+Weier+O%27Phinney Let me first mention that within a module the classes always start with SomeModuleName_ > Just a question really on ho

Re: [fw-general] How to create a Div for an Zend Form Element with Label

2009-01-13 Thread PHPScriptor
To add a div around it you can by just adding another decorator after the label decorator... ->addDecorator(array('last'=>'HtmlTag', array('tag'=>'div', 'class' => 'pippo')) To remove the , I think you need to set a custom decorator on the form itself. Michel Morelli wrote: > > Hi all. > I ha

[fw-general] Model / Form / Resource Loading in Modules

2009-01-13 Thread Simon Corless
Just a question really on how others do the same sort of thing... That being the loading of forms, models and anything else outside the immediate ZF fold. I have my modules and each has a model and form directory, then any other directories for resources. I thought it would be a good idea to use t

[fw-general] How to create a Div for an Zend Form Element with Label

2009-01-13 Thread Michel Morelli
Hi all. I have my form (Zend Form) with this element: $this->addElement('select','category',array('label' => 'Sotto categoria', 'class' => 'field_category', 'id' => 'field_category')); $this->getElement('category') ->addDecorator('HtmlTag',array('tag' => 'div', 'class' => 'de

Re: [fw-general] Eclipse PDT 2.0

2009-01-13 Thread Jason Murray
Thomas, Take a look at PEAR/PHP_Beautifier it shouldn't be too difficult to tweak to make it work. It already includes the PEAR coding standards as an option and, as I understand it, the Zend standards are an extension of PEAR's (or at least closely related). Regards, Jason On Tue, Jan 13,

[fw-general] Eclipse PDT 2.0

2009-01-13 Thread Thomas Fritz
a little bit offtopic, but i want to ask some devs about that. I tried the new PDT 2.0. There is a source formatter. But it only intends and replaces tabs with spaces or vice versa - There are no advanced settings possible like brace policy, indentation, array syntax, etc. like in Zend Studio (of

Re: [fw-general] Url Helper on Routed Page

2009-01-13 Thread Giuliano Riccio
The url helper remembers the current router and parameters passed to the request, therefore you need to specify the router name and to reset the parameters. You can achieve that this way: $this->url(array('module' => 'default', 'controller' => 'login', 'action' => 'index')), 'default', true);