<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Tutorial: Getting Started with Zend Framework 1.10</title>
	<atom:link href="http://akrabat.com/zend-framework-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com</link>
	<description>Developing PHP software in the Real World, by Rob Allen</description>
	<lastBuildDate>Thu, 11 Mar 2010 20:06:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marijn As</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31847</link>
		<dc:creator>Marijn As</dc:creator>
		<pubDate>Thu, 11 Mar 2010 20:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31847</guid>
		<description>Great! Does anyone know how to extend this tutorial with active record validation?

I am trying to inplemend Zend_Validate_Db_NoRecordExists so that it won&#039;t be possible to insert a new record while a record with an identical name field already exists. This works fine in case of inserts, but When the form is used to edit a record it will find itself and fail validation. 

I know I need to set an exception for th active record. The problem is that I simply don&#039;t know how to pass a variable (id) from the controller into the form.

It should be pretty basic OOP I guess but I tried everything I could think off for more than a few nights now. I just don&#039;t see it. The manual describes this validator but somehow I can&#039;t manage to set it up. All I want is to pass a id from the controller to the form and use it.

My form currently uses the init() method. I also tried overriding the constructor __construct($id) as well but that&#039;s no good practice as far as I am aware and it did broke the &#039;save&#039; method. The init() function is for convenience according to the documentation. But I have no idea what they mean. Then there&#039;s is this configuration object which can be passed to the constructor. And there is a setAttrib method. I am completely lost.

Any suggestions on using a constructor in stead of init() functions as in this tutorial? Could I use setAttrib for this purpose? Or implementing getter setter methods? Any help would be greatly appreciated!</description>
		<content:encoded><![CDATA[<p>Great! Does anyone know how to extend this tutorial with active record validation?</p>
<p>I am trying to inplemend Zend_Validate_Db_NoRecordExists so that it won't be possible to insert a new record while a record with an identical name field already exists. This works fine in case of inserts, but When the form is used to edit a record it will find itself and fail validation. </p>
<p>I know I need to set an exception for th active record. The problem is that I simply don't know how to pass a variable (id) from the controller into the form.</p>
<p>It should be pretty basic OOP I guess but I tried everything I could think off for more than a few nights now. I just don't see it. The manual describes this validator but somehow I can't manage to set it up. All I want is to pass a id from the controller to the form and use it.</p>
<p>My form currently uses the init() method. I also tried overriding the constructor __construct($id) as well but that's no good practice as far as I am aware and it did broke the 'save' method. The init() function is for convenience according to the documentation. But I have no idea what they mean. Then there's is this configuration object which can be passed to the constructor. And there is a setAttrib method. I am completely lost.</p>
<p>Any suggestions on using a constructor in stead of init() functions as in this tutorial? Could I use setAttrib for this purpose? Or implementing getter setter methods? Any help would be greatly appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31732</link>
		<dc:creator>Luca</dc:creator>
		<pubDate>Tue, 09 Mar 2010 08:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31732</guid>
		<description>Hi,
beautiful guide, but I&#039;ve this error:
Fatal error: Class &#039;Application_Model_DbTable_Albums&#039; not found. But the class name is correct (Application_Model_DbTable_Albums). What&#039;s the problem? I&#039;ve used the downloadable example..

I&#039;ve a lot of problem with a modules.. with a framework 1.10 the project&#039;s structure is significantly changed..

Thank you!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
beautiful guide, but I've this error:<br />
Fatal error: Class 'Application_Model_DbTable_Albums' not found. But the class name is correct (Application_Model_DbTable_Albums). What's the problem? I've used the downloadable example..</p>
<p>I've a lot of problem with a modules.. with a framework 1.10 the project's structure is significantly changed..</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crispijn</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31709</link>
		<dc:creator>Crispijn</dc:creator>
		<pubDate>Mon, 08 Mar 2010 20:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31709</guid>
		<description>Hi Rob,

I ran into trouble when I added custom controllers to my application. When I had the virtual host up and running these problems were solved... Don&#039;t know why, I&#039;m not a ZF guru, but it was.

Could you tell me why I ran into trouble? The troubles where that all the request I&#039;ve made at http://localhost/~myname/controllername/actionname I got a 404 error but your tutorial app was up and running so I guess that the overwrite setting was just as you suggested.

Regards,

Crispijn</description>
		<content:encoded><![CDATA[<p>Hi Rob,</p>
<p>I ran into trouble when I added custom controllers to my application. When I had the virtual host up and running these problems were solved... Don't know why, I'm not a ZF guru, but it was.</p>
<p>Could you tell me why I ran into trouble? The troubles where that all the request I've made at <a href="http://localhost/~myname/controllername/actionname" rel="nofollow">http://localhost/~myname/controllername/actionname</a> I got a 404 error but your tutorial app was up and running so I guess that the overwrite setting was just as you suggested.</p>
<p>Regards,</p>
<p>Crispijn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31698</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Mon, 08 Mar 2010 14:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31698</guid>
		<description>Crispijn,

Why? A virtual host is not required for ZF. I know this as I don&#039;t use them for local development :)

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Crispijn,</p>
<p>Why? A virtual host is not required for ZF. I know this as I don't use them for local development :)</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Crispijn</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31664</link>
		<dc:creator>Crispijn</dc:creator>
		<pubDate>Sun, 07 Mar 2010 10:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31664</guid>
		<description>HiRob,

I&#039;d reccomend you to tell something about setting up a virtual host in this tutorial. I&#039;ve got the example application up and running quite easy but when I&#039;d like to add more controllers and functionallity I ran into a lot of troubles and it was a heavy search to get things solved. After I&#039;ve found the information about setting up a virtual host thing got easy.

But thanks, your tutorial was very helpfull to me!

Cheers!</description>
		<content:encoded><![CDATA[<p>HiRob,</p>
<p>I'd reccomend you to tell something about setting up a virtual host in this tutorial. I've got the example application up and running quite easy but when I'd like to add more controllers and functionallity I ran into a lot of troubles and it was a heavy search to get things solved. After I've found the information about setting up a virtual host thing got easy.</p>
<p>But thanks, your tutorial was very helpfull to me!</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31570</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Thu, 04 Mar 2010 12:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31570</guid>
		<description>Can somebody please tell me how to implement modules in Zend 1.10 ?

I need a detailed tutorial because I have tried many on the web buty seem to be outdated.</description>
		<content:encoded><![CDATA[<p>Can somebody please tell me how to implement modules in Zend 1.10 ?</p>
<p>I need a detailed tutorial because I have tried many on the web buty seem to be outdated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skoua</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31527</link>
		<dc:creator>Skoua</dc:creator>
		<pubDate>Tue, 02 Mar 2010 19:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31527</guid>
		<description>Thanks for this great tutorial, it was really usefull, I can now create a basic app with Zend Framework.

Is there some slightly more advanced tutorial that you could advise me?</description>
		<content:encoded><![CDATA[<p>Thanks for this great tutorial, it was really usefull, I can now create a basic app with Zend Framework.</p>
<p>Is there some slightly more advanced tutorial that you could advise me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31351</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Thu, 25 Feb 2010 10:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31351</guid>
		<description>Fatal error: Class &#039;Application_Model_DbTable_Albums&#039; not found in C:\Program Files\Zend\Apache2\htdocs\my\application\controllers\IndexController.php on line 16

This is the error, though i have the &#039;Application_Model_DbTable_Albums&#039; class written in application\models\DbTable\Albums.php and using same in IndexController.php</description>
		<content:encoded><![CDATA[<p>Fatal error: Class 'Application_Model_DbTable_Albums' not found in C:\Program Files\Zend\Apache2\htdocs\my\application\controllers\IndexController.php on line 16</p>
<p>This is the error, though i have the 'Application_Model_DbTable_Albums' class written in application\models\DbTable\Albums.php and using same in IndexController.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31184</link>
		<dc:creator>J</dc:creator>
		<pubDate>Wed, 24 Feb 2010 21:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31184</guid>
		<description>Good tutorial. Better than the guide on the Zend site. Only noticed one minor error on page 8. &quot;Count not find row $id&quot; should probably be &quot;Could not find row $id&quot;.</description>
		<content:encoded><![CDATA[<p>Good tutorial. Better than the guide on the Zend site. Only noticed one minor error on page 8. "Count not find row $id" should probably be "Could not find row $id".</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://akrabat.com/zend-framework-tutorial/#comment-31119</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 23 Feb 2010 11:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?page_id=918#comment-31119</guid>
		<description>After 2 weeks with Zend, I found the learning curve pretty steep, especially because the supposedely simplest things won&#039;t ever work the first time. 

After a bit of a struggle my zend back-end works fine locally. Then I want to upload it to the REAL web server because the client asks for it this week. 
So I do it and bam! New errors, open_dir restriction. I replaced the following line in index.php:

set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . &#039;/../library&#039;),
    get_include_path(),
)));

with simply:

set_include_path(realpath(APPLICATION_PATH . &#039;/../library&#039;));

it works!

At least I got rid of the open_dir restriction warnings. 

But now when I try to use my back end, the first call to an action in any controller brings me a 404 file not found page!! 

Why is that?? 

Every forum I find seems to speak of local configurations, where we should edit httpd conf to allow override all etc.. 
But is there any real case of people using Zend for a public website? 

Any help would be greatly appreciated!

Thanks again

David</description>
		<content:encoded><![CDATA[<p>After 2 weeks with Zend, I found the learning curve pretty steep, especially because the supposedely simplest things won't ever work the first time. </p>
<p>After a bit of a struggle my zend back-end works fine locally. Then I want to upload it to the REAL web server because the client asks for it this week.<br />
So I do it and bam! New errors, open_dir restriction. I replaced the following line in index.php:</p>
<p>set_include_path(implode(PATH_SEPARATOR, array(<br />
    realpath(APPLICATION_PATH . '/../library'),<br />
    get_include_path(),<br />
)));</p>
<p>with simply:</p>
<p>set_include_path(realpath(APPLICATION_PATH . '/../library'));</p>
<p>it works!</p>
<p>At least I got rid of the open_dir restriction warnings. </p>
<p>But now when I try to use my back end, the first call to an action in any controller brings me a 404 file not found page!! </p>
<p>Why is that?? </p>
<p>Every forum I find seems to speak of local configurations, where we should edit httpd conf to allow override all etc..<br />
But is there any real case of people using Zend for a public website? </p>
<p>Any help would be greatly appreciated!</p>
<p>Thanks again</p>
<p>David</p>
]]></content:encoded>
	</item>
</channel>
</rss>
