<?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</title>
		<link>http://www.zfforums.com</link>
		<description>Zend Framework Forum, Resources</description>
		<language>en</language>
		<lastBuildDate>Fri, 21 Nov 2008 18:58:45 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.zfforums.com/images/monkeybatter/misc/rss.jpg</url>
			<title>Zend Framework Forum</title>
			<link>http://www.zfforums.com</link>
		</image>
		<item>
			<title><![CDATA[zend_form -> Allowed memory size exhausted]]></title>
			<link>http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/zend_form-allowed-memory-size-exhausted-1938.html</link>
			<pubDate>Fri, 21 Nov 2008 08:04:40 GMT</pubDate>
			<description><![CDATA[Hello there. I'm learning ZF and trying rebuild my projects using this framework.
So, i've made simple app: table from DB with links edit/delete/add. I've written this app on winXP(php5, apache2) and all works good. But yesterday i transfered my app to server(debian, php5, apache1 and apache2 try too) and got fatal error "Allowed memory size of 67108864 bytes exhausted (tried to allocate 134993477 bytes)". This error happens when i try output form(without data from DB), so table from DB works good.
IndexController code:

Code:
---------
		$this->view->title = "Add Item";
		$form = new ItemForm();
	        $this->view->form = $form;
---------
ItemForm code:

Code:
---------
class ItemForm extends Zend_Form
{
  public function __construct($options = null)
  {
    parent::__construct();
    $this->setName('item');
    ...
    $title = new   Zend_Form_Element_Text('title',array('disableLoadDefaultDecorators' => true,'class'=>'title'));
    $title->setRequired(true)
    ->addFilter('StripTags')
    ->addFilter('StringTrim')
    ->addValidator('NotEmpty');

    $this->addElements(array($id, $name, $title, $submit));
    $this->title->addDecorator('viewHelper')
    ->addDecorator('errors');
    ...
}
}
---------
View code:

Code:
---------
<form action="" method="post">
<table>
<tr>
	<td>Item title:</td>
	<td><?php echo stripslashes($this->form->title); ?></td>
</tr>
...
</table>
</form>
---------
What do you think about this? Why this code works on Win and doesn't work on Unix? Can you give me advice (maybe some features in configuration unix server?)?]]></description>
			<content:encoded><![CDATA[<div>Hello there. I'm learning ZF and trying rebuild my projects using this framework.<br />
So, i've made simple app: table from DB with links edit/delete/add. I've written this app on winXP(php5, apache2) and all works good. But yesterday i transfered my app to server(debian, php5, apache1 and apache2 try too) and got fatal error &quot;Allowed memory size of 67108864 bytes exhausted (tried to allocate 134993477 bytes)&quot;. This error happens when i try output form(without data from DB), so table from DB works good.<br />
IndexController code:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;view-&gt;title = &quot;Add Item&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $form = new ItemForm();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;view-&gt;form = $form;</code><hr />
</div>ItemForm code:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">class ItemForm extends Zend_Form<br />
{<br />
&nbsp; public function __construct($options = null)<br />
&nbsp; {<br />
&nbsp; &nbsp; parent::__construct();<br />
&nbsp; &nbsp; $this-&gt;setName('item');<br />
&nbsp; &nbsp; ...<br />
&nbsp; &nbsp; $title = new&nbsp;  Zend_Form_Element_Text('title',array('disableLoadDefaultDecorators' =&gt; true,'class'=&gt;'title'));<br />
&nbsp; &nbsp; $title-&gt;setRequired(true)<br />
&nbsp; &nbsp; -&gt;addFilter('StripTags')<br />
&nbsp; &nbsp; -&gt;addFilter('StringTrim')<br />
&nbsp; &nbsp; -&gt;addValidator('NotEmpty');<br />
<br />
&nbsp; &nbsp; $this-&gt;addElements(array($id, $name, $title, $submit));<br />
&nbsp; &nbsp; $this-&gt;title-&gt;addDecorator('viewHelper')<br />
&nbsp; &nbsp; -&gt;addDecorator('errors');<br />
&nbsp; &nbsp; ...<br />
}<br />
}</code><hr />
</div>View code:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;form action=&quot;&quot; method=&quot;post&quot;&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Item title:&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;?php echo stripslashes($this-&gt;form-&gt;title); ?&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
...<br />
&lt;/table&gt;<br />
&lt;/form&gt;</code><hr />
</div>What do you think about this? Why this code works on Win and doesn't work on Unix? Can you give me advice (maybe some features in configuration unix server?)?</div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/">Model-View-Controller (MVC)</category>
			<dc:creator>meph</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/zend_form-allowed-memory-size-exhausted-1938.html</guid>
		</item>
		<item>
			<title>Zend Expert needed - NorCal</title>
			<link>http://www.zfforums.com/zend-framework-related-requests-offers-4/paid-work-offers-requests-5/zend-expert-needed-norcal-1936.html</link>
			<pubDate>Thu, 20 Nov 2008 23:08:50 GMT</pubDate>
			<description><![CDATA[We are currently in need of an individual with a solid dev background (PHP, Zend Framework) to deal with new technology, customer relations, etc.  This individual will interact with R&D, the Advanced Tech Team, and premium clients.  You will still be performing cutting-edge dev work, and “rolling up your sleeves” (daily) will be expected.  

Furthermore, you are encouraged to be very active and visible within the Open Source community, and presentations at industry conferences and/or publication in industry literature is highly desired.

This role will require expertise in development as well as the ability to be client/customer-facing in a tech support capacity.

Compensation is highly competitive, with comprehensive benefits package.
This will be a full-time/permanent salaried role with a company you WILL want to work for.

Contact Joshua Anderson for more information - josh@remycorp.com]]></description>
			<content:encoded><![CDATA[<div>We are currently in need of an individual with a solid dev background (PHP, Zend Framework) to deal with new technology, customer relations, etc.  This individual will interact with R&amp;D, the Advanced Tech Team, and premium clients.  You will still be performing cutting-edge dev work, and “rolling up your sleeves” (daily) will be expected.  <br />
<br />
Furthermore, you are encouraged to be very active and visible within the Open Source community, and presentations at industry conferences and/or publication in industry literature is highly desired.<br />
<br />
This role will require expertise in development as well as the ability to be client/customer-facing in a tech support capacity.<br />
<br />
Compensation is highly competitive, with comprehensive benefits package.<br />
This will be a full-time/permanent salaried role with a company you WILL want to work for.<br />
<br />
Contact Joshua Anderson for more information - <a href="mailto:josh@remycorp.com">josh@remycorp.com</a></div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-related-requests-offers-4/paid-work-offers-requests-5/">Paid work offers and requests</category>
			<dc:creator>josh@remycorp.com</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-related-requests-offers-4/paid-work-offers-requests-5/zend-expert-needed-norcal-1936.html</guid>
		</item>
		<item>
			<title>does changing route make sense?</title>
			<link>http://www.zfforums.com/zend-framework-general-discussions-1/concepts-ideas-planning-39/does-changing-route-make-sense-1935.html</link>
			<pubDate>Thu, 20 Nov 2008 22:32:07 GMT</pubDate>
			<description><![CDATA[Hello,

if I want to want to provide lists and profiles of artists, locations and agencies, an url could look like:

/artist/arstists_name (should deliver profile of artist named "artists_name")

or

/location (should deliver list of locations)

I could route "/:type/:name" and use a CentralController which detects by Param("type") which profile-type to deliver instead of creation three differen Controller named ArtistController, LocationController, AgencyController etc.pp.; 

It would lead to conducting all request to one actionController, which seems to be a duplication of the FrontController-Pattern. 

Does this make sense? 

Dank und Gruß,

frankx]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
if I want to want to provide lists and profiles of artists, locations and agencies, an url could look like:<br />
<br />
/artist/arstists_name (should deliver profile of artist named &quot;artists_name&quot;)<br />
<br />
or<br />
<br />
/location (should deliver list of locations)<br />
<br />
I could route &quot;/:type/:name&quot; and use a CentralController which detects by Param(&quot;type&quot;) which profile-type to deliver instead of creation three differen Controller named ArtistController, LocationController, AgencyController etc.pp.; <br />
<br />
It would lead to conducting all request to one actionController, which seems to be a duplication of the FrontController-Pattern. <br />
<br />
Does this make sense? <br />
<br />
Dank und Gruß,<br />
<br />
frankx</div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-general-discussions-1/concepts-ideas-planning-39/">Concepts, Ideas, Planning</category>
			<dc:creator>frankx</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-general-discussions-1/concepts-ideas-planning-39/does-changing-route-make-sense-1935.html</guid>
		</item>
		<item>
			<title>passing arrays back and forth php(zend)/ajax</title>
			<link>http://www.zfforums.com/zend-framework-forum-8/general-talks-12/passing-arrays-back-forth-php-zend-ajax-1934.html</link>
			<pubDate>Thu, 20 Nov 2008 21:08:48 GMT</pubDate>
			<description><![CDATA[hi,
i'm trying to figure out how to pass arrays back and forth from php to javascript and back in the zend framework. i need to do this for check boxes in a project and i'm not supposed to use zend_form. my problem is fetching the array back in php. 
can anyone help me out]]></description>
			<content:encoded><![CDATA[<div>hi,<br />
i'm trying to figure out how to pass arrays back and forth from php to javascript and back in the zend framework. i need to do this for check boxes in a project and i'm not supposed to use zend_form. my problem is fetching the array back in php. <br />
can anyone help me out</div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-forum-8/general-talks-12/">General Talks</category>
			<dc:creator>cali_dotcom</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-forum-8/general-talks-12/passing-arrays-back-forth-php-zend-ajax-1934.html</guid>
		</item>
		<item>
			<title>getting 404 with dashed parameter</title>
			<link>http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/getting-404-dashed-parameter-1932.html</link>
			<pubDate>Thu, 20 Nov 2008 17:10:38 GMT</pubDate>
			<description><![CDATA[I have a custom route that will handle file downloads

$router->addRoute('download_file', new Zend_Controller_Router_Route_Regex(
        'download/file/(.*)',
        array(
            'module' => 'default',
            'controller' => 'download',
            'action' => 'file',
        )
);


For know the fileAction only prints the parameter.


The following url works:
http://localhost/download/file/foo.bar

The following urls do not work:
http://localhost/download/file/foo_bar
http://localhost/download/file/foo-bar

As soon as I add an underscore or a dash it returns a 404 error

Tried using ZF 1.5.3 and now 1.7.0

help please]]></description>
			<content:encoded><![CDATA[<div>I have a custom route that will handle file downloads<br />
<br />
$router-&gt;addRoute('download_file', new Zend_Controller_Router_Route_Regex(<br />
        'download/file/(.*)',<br />
        array(<br />
            'module' =&gt; 'default',<br />
            'controller' =&gt; 'download',<br />
            'action' =&gt; 'file',<br />
        )<br />
);<br />
<br />
<br />
For know the fileAction only prints the parameter.<br />
<br />
<br />
The following url works:<br />
<a href="http://localhost/download/file/foo.bar" target="_blank">http://localhost/download/file/foo.bar</a><br />
<br />
The following urls do not work:<br />
<a href="http://localhost/download/file/foo_bar" target="_blank">http://localhost/download/file/foo_bar</a><br />
<a href="http://localhost/download/file/foo-bar" target="_blank">http://localhost/download/file/foo-bar</a><br />
<br />
As soon as I add an underscore or a dash it returns a 404 error<br />
<br />
Tried using ZF 1.5.3 and now 1.7.0<br />
<br />
help please</div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/">Model-View-Controller (MVC)</category>
			<dc:creator>digit</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/getting-404-dashed-parameter-1932.html</guid>
		</item>
		<item>
			<title>Zend_db_table and join</title>
			<link>http://www.zfforums.com/zend-framework-general-discussions-1/general-q-zend-framework-2/zend_db_table-join-1931.html</link>
			<pubDate>Thu, 20 Nov 2008 13:45:45 GMT</pubDate>
			<description><![CDATA[Hi all,

a lot of posts concerning this topic on this forum, but i can not find a decent answer.

How to get this SQL query using Zend_Db_Table objects?
Code:
---------
SELECT table1.x, table2.* 
FROM table1
INNER JOIN table 2 ON table1.table2columnID=table2.columnID
---------
Currently, i'm using the following code, but this executes more database queries than using Zend_Db's join() method, right?
Code:
---------
$table1 = new Table1();
$table1Data = $table1->fetchAll();
foreach ($table1Data as $current) {
    $current->findDependentRowset('Table2', 'Rule1');
    ...
}
---------
As you can see, i'd like to end up with an array that contains all data at once?

Code:
---------
array = (    
    1  =>  array('x' => 'value', 'table2.a' => 'value', 'table2.b' => ...)
    2  =>  array('x' => 'value', 'table2.a' => 'value', 'table2.b' => ...)
)
---------
Thanks]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
a lot of posts concerning this topic on this forum, but i can not find a decent answer.<br />
<br />
How to get this SQL query using Zend_Db_Table objects?<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">SELECT table1.x, table2.* <br />
FROM table1<br />
INNER JOIN table 2 ON table1.table2columnID=table2.columnID</code><hr />
</div>Currently, i'm using the following code, but this executes more database queries than using Zend_Db's join() method, right?<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$table1 = new Table1();<br />
$table1Data = $table1-&gt;fetchAll();<br />
foreach ($table1Data as $current) {<br />
&nbsp; &nbsp; $current-&gt;findDependentRowset('Table2', 'Rule1');<br />
&nbsp; &nbsp; ...<br />
}</code><hr />
</div>As you can see, i'd like to end up with an array that contains all data at once?<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">array = (&nbsp; &nbsp; <br />
&nbsp; &nbsp; 1&nbsp; =&gt;&nbsp; array('x' =&gt; 'value', 'table2.a' =&gt; 'value', 'table2.b' =&gt; ...)<br />
&nbsp; &nbsp; 2&nbsp; =&gt;&nbsp; array('x' =&gt; 'value', 'table2.a' =&gt; 'value', 'table2.b' =&gt; ...)<br />
)</code><hr />
</div>Thanks</div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-general-discussions-1/general-q-zend-framework-2/"><![CDATA[General Q&A on Zend Framework]]></category>
			<dc:creator>zf123</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-general-discussions-1/general-q-zend-framework-2/zend_db_table-join-1931.html</guid>
		</item>
		<item>
			<title>Zend_Rest :: DELETE</title>
			<link>http://www.zfforums.com/zend-framework-components-13/web-web-services-22/zend_rest-delete-1930.html</link>
			<pubDate>Thu, 20 Nov 2008 09:58:31 GMT</pubDate>
			<description><![CDATA[Hi everyone.  Im trying to run a REST call using the, restDelete call but running into an issue. 

From the looks of it there is no way of passing in a query string when making the DELETE call.  The REST call im making requires a a few parameters to be passed along with the method but when i try:

1.  restDelete($method."?param1=hi&param2=2");  I get an error  "HTTP not a valid request.

2.  I tried using setRawData but that only works for POST data.  


Anyone know whats up, or any way i can go about doing this?  I also tried Zend_HTTP_Client directly just in case there was something going on in the REST library.  

Thank You.
Armando Padilla]]></description>
			<content:encoded><![CDATA[<div>Hi everyone.  Im trying to run a REST call using the, restDelete call but running into an issue. <br />
<br />
From the looks of it there is no way of passing in a query string when making the DELETE call.  The REST call im making requires a a few parameters to be passed along with the method but when i try:<br />
<br />
1.  restDelete($method.&quot;?param1=hi&amp;param2=2&quot;);  I get an error  &quot;HTTP not a valid request.<br />
<br />
2.  I tried using setRawData but that only works for POST data.  <br />
<br />
<br />
Anyone know whats up, or any way i can go about doing this?  I also tried Zend_HTTP_Client directly just in case there was something going on in the REST library.  <br />
<br />
Thank You.<br />
Armando Padilla</div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/web-web-services-22/"><![CDATA[Web & Web Services]]></category>
			<dc:creator>armandop</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/web-web-services-22/zend_rest-delete-1930.html</guid>
		</item>
		<item>
			<title>control highlight color?</title>
			<link>http://www.zfforums.com/zend-framework-components-13/mail-formats-search-14/control-highlight-color-1929.html</link>
			<pubDate>Thu, 20 Nov 2008 04:04:40 GMT</pubDate>
			<description><![CDATA[Hi there.  I was looking through the Zend Search code, and I found that they explicitly insert a <b> tag with styles to control the highlight color, which seems to come from an array of hard-coded colors that is a private array.

I am wondering what the best way to override this is?  It seems weird that the ZF programmers would decide to hard-code something like this that screws up someone's design.  I'd prefer to make it spit out <span class="something"> so that I could control the styling of the highlight in the CSS.  It seems that maybe the only way to accomplish this is to subclass the Query class and change the highlight function?

Anyone worked around this before?]]></description>
			<content:encoded><![CDATA[<div>Hi there.  I was looking through the Zend Search code, and I found that they explicitly insert a &lt;b&gt; tag with styles to control the highlight color, which seems to come from an array of hard-coded colors that is a private array.<br />
<br />
I am wondering what the best way to override this is?  It seems weird that the ZF programmers would decide to hard-code something like this that screws up someone's design.  I'd prefer to make it spit out &lt;span class=&quot;something&quot;&gt; so that I could control the styling of the highlight in the CSS.  It seems that maybe the only way to accomplish this is to subclass the Query class and change the highlight function?<br />
<br />
Anyone worked around this before?</div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/mail-formats-search-14/"><![CDATA[Mail, Formats & Search]]></category>
			<dc:creator>suzerain</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/mail-formats-search-14/control-highlight-color-1929.html</guid>
		</item>
		<item>
			<title>Zend_Db delayed insert</title>
			<link>http://www.zfforums.com/zend-framework-general-discussions-1/general-q-zend-framework-2/zend_db-delayed-insert-1928.html</link>
			<pubDate>Thu, 20 Nov 2008 00:04:22 GMT</pubDate>
			<description>Hello,

Is there are way using Zend Framework to add a parameter to have a delayed insert for classes inheriting Zend_Db_Table_Abstract ?</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
Is there are way using Zend Framework to add a parameter to have a delayed insert for classes inheriting Zend_Db_Table_Abstract ?</div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-general-discussions-1/general-q-zend-framework-2/"><![CDATA[General Q&A on Zend Framework]]></category>
			<dc:creator>lordspace</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-general-discussions-1/general-q-zend-framework-2/zend_db-delayed-insert-1928.html</guid>
		</item>
		<item>
			<title>CSS not loading - Zend_Layout</title>
			<link>http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/css-not-loading-zend_layout-1927.html</link>
			<pubDate>Wed, 19 Nov 2008 13:40:10 GMT</pubDate>
			<description><![CDATA[Hi,

I am using Zend_Layout and have the following line to load a global css file:
$this->headLink()->appendStylesheet('/css/global.css')

Also, I have a directory calles 'css' in my public folder  (where index.php is) and the css folder contain the file global.css

My .htaccess file have the following rewrite rule:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css|html)$ index.php

The site do not load the global.css file. 
What am I doing wrong? 

Thanks in advance
Pieter]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am using Zend_Layout and have the following line to load a global css file:<br />
$this-&gt;headLink()-&gt;appendStylesheet('/css/global.css')<br />
<br />
Also, I have a directory calles 'css' in my public folder  (where index.php is) and the css folder contain the file global.css<br />
<br />
My .htaccess file have the following rewrite rule:<br />
RewriteEngine on<br />
RewriteRule !\.(js|ico|gif|jpg|png|css|html)$ index.php<br />
<br />
The site do not load the global.css file. <br />
What am I doing wrong? <br />
<br />
Thanks in advance<br />
Pieter</div>

]]></content:encoded>
			<category domain="http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/">Model-View-Controller (MVC)</category>
			<dc:creator>pcl</dc:creator>
			<guid isPermaLink="true">http://www.zfforums.com/zend-framework-components-13/model-view-controller-mvc-21/css-not-loading-zend_layout-1927.html</guid>
		</item>
	</channel>
</rss>
