<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Zend Framework Forum - Core Infrastructure</title>
		<link>http://www.zfforums.com/</link>
		<description>Zend_Cache, Zend_Config, Zend_Console_Getopt, Zend_Debug, Zend_Filter, Zend_Loader, Zend_Loader_Autoloader, Zend_Log, Zend_Memory Zend_Registry, Zend_Validate, Zend_Version</description>
		<language>en</language>
		<lastBuildDate>Thu, 09 Sep 2010 22:36:43 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.zfforums.com/images/misc/rss.png</url>
			<title>Zend Framework Forum - Core Infrastructure</title>
			<link>http://www.zfforums.com/</link>
		</image>
		<item>
			<title>Model Subdirectories</title>
			<link>http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/model-subdirectories-5496.html</link>
			<pubDate>Sat, 04 Sep 2010 10:19:12 GMT</pubDate>
			<description><![CDATA[I've looked around for some resources on this but I haven't found anything substantial as of yet and I'm hoping someone might be able to point me in...]]></description>
			<content:encoded><![CDATA[<div>I've looked around for some resources on this but I haven't found anything substantial as of yet and I'm hoping someone might be able to point me in the right direction.<br />
<br />
I want to put my models into subdirectories and still use the autoloader to load these classes. I have a directory structure like the following:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">application/<br />
&nbsp;  -- models/<br />
&nbsp; &nbsp; &nbsp; -- projects/<br />
&nbsp; &nbsp; &nbsp; &nbsp;  Task.php</code><hr />
</div> I want to be able to load the Task class named &quot;App_Model_Projects_Task&quot; simply by calling:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">$task = new App_Model_Projects_Task()</code><hr />
</div> Could anyone provide any help to how this can be done, any help would be very much appreciated.</div>

 ]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/">Core Infrastructure</category>
			<dc:creator>Synforge</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/model-subdirectories-5496.html</guid>
		</item>
		<item>
			<title><![CDATA[Zend_Form, setAttrib('escape',false) not working, help.]]></title>
			<link>http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/zend_form-setattrib-escape-false-not-working-help-5487.html</link>
			<pubDate>Wed, 01 Sep 2010 19:20:42 GMT</pubDate>
			<description>Hi everyone,  
 
I am using Zend_Form and I would like one of my elements to not escape. I have the following code, I think it should not escape but...</description>
			<content:encoded><![CDATA[<div>Hi everyone, <br />
<br />
I am using Zend_Form and I would like one of my elements to not escape. I have the following code, I think it should not escape but it does without fail:<br />
<br />
In form class:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $btc_name = $this-&gt;createElement('text','btc_name');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $btc_name-&gt;setLabel('Company Name')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;setRequired(true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;setAttrib('size',45)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;setAttrib('escape',false)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;addFilter('StripTags')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;addFilter('StringTrim')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;addValidator('NotEmpty');</code><hr />
</div> Output html:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;dt id=&quot;btc_name-label&quot;&gt;&lt;label for=&quot;btc_name&quot; class=&quot;required&quot;&gt;Company Name&lt;/label&gt;&lt;/dt&gt; <br />
&lt;dd id=&quot;btc_name-element&quot;&gt; <br />
&lt;input type=&quot;text&quot; name=&quot;btc_name&quot; id=&quot;btc_name&quot; value=&quot;Joe\'s Tire Warehouse&quot; size=&quot;45&quot; /&gt;&lt;/dd&gt;</code><hr />
</div> You can see the form in action with a print_r of the $formData and getValue of the field here: <a href="http://76.174.128.75/billtocompany/add" target="_blank">Titan ES</a><br />
<br />
Any help would be greatly appreciated. <br />
<br />
Thanks, <br />
Joe Chin</div>

 ]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/">Core Infrastructure</category>
			<dc:creator>joechin</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/zend_form-setattrib-escape-false-not-working-help-5487.html</guid>
		</item>
		<item>
			<title>Warning:  Attempt to assign property of non-object in Zend_Config</title>
			<link>http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/warning-attempt-assign-property-non-object-zend_config-5469.html</link>
			<pubDate>Wed, 25 Aug 2010 17:11:00 GMT</pubDate>
			<description><![CDATA[I'm am getting a strange warning on occasion  when using Zend_Config. All of my pages, at some point or another will produce a log entry like this: 
...]]></description>
			<content:encoded><![CDATA[<div>I'm am getting a strange warning on occasion  when using Zend_Config. All of my pages, at some point or another will produce a log entry like this:<br />
<br />
<br />
[Wed Aug 25 02:21:02 2010] [error] [client 10.231.196.38] PHP Warning:  Attempt to assign property of non-object in /usr/local/claredi/lib/ZendFramework/Zend/Config.php on line 100, referer: <a href="https://localhost/tpp/settings" target="_blank">https://localhost/tpp/settings</a><br />
[Wed Aug 25 02:21:02 2010] [error] [client 10.231.196.38] PHP Warning:  Attempt to assign property of non-object in /usr/local/claredi/lib/ZendFramework/Zend/Config.php on line 101, referer: <a href="https://localhost/tpp/settings" target="_blank">https://localhost/tpp/settings</a><br />
[Wed Aug 25 02:21:02 2010] [error] [client 10.231.196.38] PHP Warning:  Attempt to assign property of non-object in /usr/local/claredi/lib/ZendFramework/Zend/Config.php on line 102, referer: <a href="https://localhost/tpp/settings" target="_blank">https://localhost/tpp/settings</a><br />
[Wed Aug 25 02:21:02 2010] [error] [client 10.231.196.38] PHP Warning:  Attempt to assign property of non-object in /usr/local/claredi/lib/ZendFramework/Zend/Config.php on line 103, referer: <a href="https://localhost/tpp/settings" target="_blank">https://localhost/tpp/settings</a><br />
<br />
This will repeat hundreds of times. The page itself doesn't load, but instead prints the same warnings. If I refresh the page, it will sometimes fix it. Other times, I need to refresh the page several times. It seems to be happening on any page. I can't reproduce it every time, but If I keep hitting the same page, I'll eventually get this. Then I can refresh until it comes back up.<br />
<br />
The lines it's referring to in the Zend/Config.php files are in the constructor:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_allowModifications = (boolean) $allowModifications;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_loadedSection = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_index = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_data = array();</code><hr />
</div> The error appears to suggest that $this is not an object. That seems odd though considering Zend/Config.php is a class and $this should refer to an instance of the class.<br />
<br />
Has anyone seen anything like this or know how to solve it?</div>

 ]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/">Core Infrastructure</category>
			<dc:creator>jmars23</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/warning-attempt-assign-property-non-object-zend_config-5469.html</guid>
		</item>
		<item>
			<title>Zend_View_Helper_FormErrors Question?</title>
			<link>http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/zend_view_helper_formerrors-question-5467.html</link>
			<pubDate>Tue, 24 Aug 2010 16:12:47 GMT</pubDate>
			<description>Hi there 
 
Using Zend_View_Helper_FormErrors, I would like to  do the following  
* setElementStart($string); 
 
 
* setElementSeparator($string); 
...</description>
			<content:encoded><![CDATA[<div>Hi there<br />
<br />
Using Zend_View_Helper_FormErrors, I would like to  do the following <ul><li>setElementStart($string);</li>
</ul><ul><li>setElementSeparator($string);</li>
</ul><ul><li>setElementEnd($string);</li>
</ul><br />
How do I access these methods?<br />
$this-&gt;formErrors()-&gt;????<br />
<br />
Do I set it in my View?<br />
Is it possible to set them in the Form itself?<br />
<br />
...can you give me an example?<br />
<br />
Thanks</div>

 ]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/">Core Infrastructure</category>
			<dc:creator>altergothen</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/zend_view_helper_formerrors-question-5467.html</guid>
		</item>
		<item>
			<title>parsing an XML file with Zend_Config_Xml</title>
			<link>http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/parsing-xml-file-zend_config_xml-5294.html</link>
			<pubDate>Thu, 12 Aug 2010 05:31:28 GMT</pubDate>
			<description><![CDATA[$config = new Zend_Config_Xml ('/path/to/file.xml'); 
 
It creates an object. But it doesn't matter whether I call toArray() or not, there is data...]]></description>
			<content:encoded><![CDATA[<div>$config = new Zend_Config_Xml ('/path/to/file.xml');<br />
<br />
It creates an object. But it doesn't matter whether I call toArray() or not, there is data missing. For elements with no attributes (&lt;element&gt;some data&lt;/element&gt;), I can just use $config-&gt;element (or $config ['element'] if using an array) and it works fine. However, if there is an attribute (&lt;element attr=&quot;value&quot;&gt;some data&lt;/element&gt;), then $config-&gt;element ['attr'] will be &quot;value&quot; but the main content of the element will be lost.<br />
<br />
The following is very simple well-formed xml, but Zend_Config_Xml can not handle it.<br />
&lt;main&gt;<br />
&lt;element attr=&quot;value&quot;&gt;data&lt;/element&gt;<br />
&lt;/main&gt;<br />
<br />
Does anyone know of a php XML library that works reliably?</div>

 ]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/">Core Infrastructure</category>
			<dc:creator>sawatdee</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/core-infrastructure-19/parsing-xml-file-zend_config_xml-5294.html</guid>
		</item>
	</channel>
</rss>
