<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 03:47:10 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Federico Cargnelutti's Blog: An Alternative to Zend_Controller: The Model]]></title>
      <guid>http://www.phpdeveloper.org/news/12334</guid>
      <link>http://www.phpdeveloper.org/news/12334</link>
      <description><![CDATA[<p>
<i>Federico Cargnelutti</i> has <a href="http://blog.fedecarg.com/2009/04/13/an-alternative-to-zend_controller-the-model/">posted the third part</a> of his series looking at his alternative to the normal Zend_Controller in Zend Framework applications - Zf_Controller. This article focuses on its interface with the model.
</p>
<blockquote>
The domain layer is separated from the other layers and has no dependencies on Zf_Controller. Adding the domain directory to your include path allows you to load and access Model classes from anywhere within your project.
</blockquote>
<p>
His code examples show an IndexController extending the Zf_Controller and how a Model can be called from inside it through a getInstance (as long as the model directory is in your path). You can take a look at <a href="http://blog.fedecarg.com/2009/04/07/an-alternative-to-zend_controller-introduction/">part one</a> and <a href="http://blog.fedecarg.com/2009/04/08/an-alternative-to-zend_controller-the-router/">part two</a> for more information on this alternative component.
</p>]]></description>
      <pubDate>Tue, 14 Apr 2009 08:48:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jacob Santos' Blog: Zend Framework: Hackish Include Path Solution]]></title>
      <guid>http://www.phpdeveloper.org/news/6403</guid>
      <link>http://www.phpdeveloper.org/news/6403</link>
      <description><![CDATA[<p>
<i>Jacob Santos</i> was having a problem with the Zend Framework. It couldn't find its own files. So, he's <a href="http://www.santosj.name/php/zend-framework-hackish-include-path-solution/">come up with a hack</a> that helps mod_php users to avoid the problem.
</p>
<blockquote>
<p>
I've had problem with Zend Framework not being able to find its files, which is usually not good. The "workaround" of adding the realpath works, but would be overwritten when updating. Besides, going through the files just to add realpath locations is a hassle.
</p>
<p>
The php_value only works with mod_php, so good luck if you are running PHP using CGI/FastCGI. Actually, you'll have no luck, because it won't work using CGI.
</p>
</blockquote>
<p>
Essentially, it uses the <a href="http://www.php.net/ini_set">ihi_set function</a> to define the correct include path. Check out <a href="http://www.santosj.name/php/zend-framework-hackish-include-path-solution/#comments">the comments</a> of the post for some other suggestions.
</p>]]></description>
      <pubDate>Mon, 02 Oct 2006 13:18:50 -0500</pubDate>
    </item>
  </channel>
</rss>
