<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Using Zend_Form with Zend_Config</title>
	<atom:link href="http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/</link>
	<description>Developer, Gamer, Thinker</description>
	<pubDate>Thu, 28 Aug 2008 19:03:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Apit</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-213</link>
		<dc:creator>Apit</dc:creator>
		<pubDate>Fri, 04 Jul 2008 03:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-213</guid>
		<description>Hi. I am new zfform. Your post  helps me  understand and appeciate customizability of zfform more. Thx.</description>
		<content:encoded><![CDATA[<p>Hi. I am new zfform. Your post  helps me  understand and appeciate customizability of zfform more. Thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Vayanis</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-193</link>
		<dc:creator>Andrew Vayanis</dc:creator>
		<pubDate>Thu, 17 Apr 2008 15:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-193</guid>
		<description>I just went to look at the new documentation, and this does address my concerns.  However, it might be worth pointing out that these types of disconnects, are prevalent elsewhere within the Zend Framework's documentation.  Unless, they have also been addressed with the release of 1.5?  

Anyhow, I still like how things are coming, keep up the good work!</description>
		<content:encoded><![CDATA[<p>I just went to look at the new documentation, and this does address my concerns.  However, it might be worth pointing out that these types of disconnects, are prevalent elsewhere within the Zend Framework&#8217;s documentation.  Unless, they have also been addressed with the release of 1.5?  </p>
<p>Anyhow, I still like how things are coming, keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Weier O'Phinney</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-191</link>
		<dc:creator>Matthew Weier O'Phinney</dc:creator>
		<pubDate>Thu, 17 Apr 2008 11:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-191</guid>
		<description>Something to note: you were reading the documentation prior to the final release of 1.5.0. I put a lot of work into the documentation in that final week, and the results are online now.

In the documentation, there is a 'Configuration' section for each subcomponent of Zend_Form. In these, I have language such as the following:

* If 'set' + key refers to a Zend_Form_Element method, then the value provided will be passed to that method.
* Otherwise, the value will be used to set an attribute.

Hopefully this addresses your documentation concerns with Zend_Form. I realize there are a lot more places where it needs improvement -- e.g., more examples on decorators -- but hopefully your primary concerns have been addressed.</description>
		<content:encoded><![CDATA[<p>Something to note: you were reading the documentation prior to the final release of 1.5.0. I put a lot of work into the documentation in that final week, and the results are online now.</p>
<p>In the documentation, there is a &#8216;Configuration&#8217; section for each subcomponent of Zend_Form. In these, I have language such as the following:</p>
<p>* If &#8217;set&#8217; + key refers to a Zend_Form_Element method, then the value provided will be passed to that method.<br />
* Otherwise, the value will be used to set an attribute.</p>
<p>Hopefully this addresses your documentation concerns with Zend_Form. I realize there are a lot more places where it needs improvement &#8212; e.g., more examples on decorators &#8212; but hopefully your primary concerns have been addressed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Vayanis</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-163</link>
		<dc:creator>Andrew Vayanis</dc:creator>
		<pubDate>Tue, 01 Apr 2008 05:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-163</guid>
		<description>Don't want this to come off as snobby, so I preface before saying it, but as stated in the post, when ZF looks up class methods using the Zend_Config, method calls are prepended with 'set'.  Therefore, internally, ZF is actually calling setMessages().

As you said the documentation is pretty good on the PHP side, and a bit lacking on the config side.  However, there is also a bit of a disconnect which I will hope to bridge (with my own posts) as I learn the framework myself.  The tidbit about prepending 'set' to method calls is just one of many examples I am sure you will find as you go through things.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t want this to come off as snobby, so I preface before saying it, but as stated in the post, when ZF looks up class methods using the Zend_Config, method calls are prepended with &#8217;set&#8217;.  Therefore, internally, ZF is actually calling setMessages().</p>
<p>As you said the documentation is pretty good on the PHP side, and a bit lacking on the config side.  However, there is also a bit of a disconnect which I will hope to bridge (with my own posts) as I learn the framework myself.  The tidbit about prepending &#8217;set&#8217; to method calls is just one of many examples I am sure you will find as you go through things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VINCENT</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-162</link>
		<dc:creator>VINCENT</dc:creator>
		<pubDate>Tue, 01 Apr 2008 04:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-162</guid>
		<description>Thanks Andrew for the reply, I really appreciate the reply, you got me out of a big hole (I was about to abandon config files for my forms and use nasty php).

I'm also still learning the Zend Framework (24 hours into it) and I've decided to completely rebuild my apps using it :).

I think its a very good framework to use, it is a bit of a learning curve to get into the MVC pattern, but after that, its pretty easy. Most of it is just getting around the idea of a MVC file structure and a bootstrapper.

I must say however, the Zend Framework does provide very good documentation on the PHP side, but it does lack documentation on formatting config ini files and config xml files, which is a shame because all web 2.0 websites driven by AJAX is built on the idea of text config files. I hope that they fix that up soon.

Other than that, thank god for open source discussion.

btw. how did you figure out to use messages instead of setmessages (from setMessages();)?</description>
		<content:encoded><![CDATA[<p>Thanks Andrew for the reply, I really appreciate the reply, you got me out of a big hole (I was about to abandon config files for my forms and use nasty php).</p>
<p>I&#8217;m also still learning the Zend Framework (24 hours into it) and I&#8217;ve decided to completely rebuild my apps using it :).</p>
<p>I think its a very good framework to use, it is a bit of a learning curve to get into the MVC pattern, but after that, its pretty easy. Most of it is just getting around the idea of a MVC file structure and a bootstrapper.</p>
<p>I must say however, the Zend Framework does provide very good documentation on the PHP side, but it does lack documentation on formatting config ini files and config xml files, which is a shame because all web 2.0 websites driven by AJAX is built on the idea of text config files. I hope that they fix that up soon.</p>
<p>Other than that, thank god for open source discussion.</p>
<p>btw. how did you figure out to use messages instead of setmessages (from setMessages();)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Vayanis</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-161</link>
		<dc:creator>Andrew Vayanis</dc:creator>
		<pubDate>Mon, 31 Mar 2008 23:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-161</guid>
		<description>I was actually going to throw in another post regarding this, but I will show you now what I did to set custom validation messages because the defaults are definitely horrible.

elements.username.type = "text"
elements.username.options.label = "Username:"
elements.username.options.required = true
elements.username.options.validators.notempty.validator = "NotEmpty"
elements.username.options.validators.notempty.options.messages.isEmpty = "A valid username is required."
elements.username.options.validators.notempty.breakChainOnFailure = true
elements.username.options.validators.alnum.validator = "alnum"
elements.username.options.validators.alnum.breakChainOnFailure = true
elements.username.options.validators.alnum.options.messages.notAlnum = "Invalid username.  Please enter a valid username."
elements.username.options.validators.strlen.validator = "StringLength"
elements.username.options.validators.strlen.options.min = "5"
elements.username.options.validators.strlen.options.max = "30"
elements.username.options.validators.strlen.options.messages.stringLengthTooShort = "Invalid username.  Please enter a valid username."
elements.username.options.validators.strlen.options.messages.stringLengthTooLong = "Invalid username.  Please enter a valid username."

I am still learning the Zend Framework myself, but I hope this helps.  Also, feel free to ask any other questions, and I will answer what I can.</description>
		<content:encoded><![CDATA[<p>I was actually going to throw in another post regarding this, but I will show you now what I did to set custom validation messages because the defaults are definitely horrible.</p>
<p>elements.username.type = &#8220;text&#8221;<br />
elements.username.options.label = &#8220;Username:&#8221;<br />
elements.username.options.required = true<br />
elements.username.options.validators.notempty.validator = &#8220;NotEmpty&#8221;<br />
elements.username.options.validators.notempty.options.messages.isEmpty = &#8220;A valid username is required.&#8221;<br />
elements.username.options.validators.notempty.breakChainOnFailure = true<br />
elements.username.options.validators.alnum.validator = &#8220;alnum&#8221;<br />
elements.username.options.validators.alnum.breakChainOnFailure = true<br />
elements.username.options.validators.alnum.options.messages.notAlnum = &#8220;Invalid username.  Please enter a valid username.&#8221;<br />
elements.username.options.validators.strlen.validator = &#8220;StringLength&#8221;<br />
elements.username.options.validators.strlen.options.min = &#8220;5&#8243;<br />
elements.username.options.validators.strlen.options.max = &#8220;30&#8243;<br />
elements.username.options.validators.strlen.options.messages.stringLengthTooShort = &#8220;Invalid username.  Please enter a valid username.&#8221;<br />
elements.username.options.validators.strlen.options.messages.stringLengthTooLong = &#8220;Invalid username.  Please enter a valid username.&#8221;</p>
<p>I am still learning the Zend Framework myself, but I hope this helps.  Also, feel free to ask any other questions, and I will answer what I can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent</title>
		<link>http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-160</link>
		<dc:creator>Vincent</dc:creator>
		<pubDate>Mon, 31 Mar 2008 15:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.vayanis.com/2008/03/17/using-zend_form-with-zend_config/#comment-160</guid>
		<description>Thanks for the article! it was very very helpful.

I love using ini config files, it makes maintaining code a million times easier than messing with php coding.

but i've hit a brick wall. i've tried setting custom validation error messages with no luck... do you have any ideas?

; orderFullName element
cartForm.elements.orderFullName.type                                  = text
cartForm.elements.orderFullName.options.label                         = Full Name
cartForm.elements.orderFullName.options.size                          = 25
cartForm.elements.orderFullName.options.maxlength                     = 25
cartForm.elements.orderFullName.options.validators.strlen.validator   = StringLength
cartForm.elements.orderFullName.options.validators.strlen.options.min = 2
cartForm.elements.orderFullName.options.validators.strlen.options.max = 25
cartForm.elements.orderFullName.options.required                      = true
cartForm.elements.orderFullName.options.required.setMessages          = Required field</description>
		<content:encoded><![CDATA[<p>Thanks for the article! it was very very helpful.</p>
<p>I love using ini config files, it makes maintaining code a million times easier than messing with php coding.</p>
<p>but i&#8217;ve hit a brick wall. i&#8217;ve tried setting custom validation error messages with no luck&#8230; do you have any ideas?</p>
<p>; orderFullName element<br />
cartForm.elements.orderFullName.type                                  = text<br />
cartForm.elements.orderFullName.options.label                         = Full Name<br />
cartForm.elements.orderFullName.options.size                          = 25<br />
cartForm.elements.orderFullName.options.maxlength                     = 25<br />
cartForm.elements.orderFullName.options.validators.strlen.validator   = StringLength<br />
cartForm.elements.orderFullName.options.validators.strlen.options.min = 2<br />
cartForm.elements.orderFullName.options.validators.strlen.options.max = 25<br />
cartForm.elements.orderFullName.options.required                      = true<br />
cartForm.elements.orderFullName.options.required.setMessages          = Required field</p>
]]></content:encoded>
	</item>
</channel>
</rss>
