<?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: Zend_Loader&#039;s autoloader deprecated in Zend Framework 1.8</title>
	<atom:link href="http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/</link>
	<description>Developing PHP software in the Real World, by Rob Allen</description>
	<lastBuildDate>Tue, 13 Mar 2012 12:47:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Frank</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-63723</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sat, 28 May 2011 21:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-63723</guid>
		<description>I created my project with ZF 1.11.5 (as in the zf-tutorial). My Bootstrap has the following lines of code:

	require_once &#039;Zend/Loader/Autoloader.php&#039;;
	$loader = Zend_Loader_Autoloader::getInstance();
	$loader-&gt;setFallbackAutoloader(true);
	$loader-&gt;suppressNotFoundWarnings(false);

Pointing my browser to &quot;places&quot; results in the following PHP error:

Fatal error: Call to a member function getDefaultModule() on a non-object in /Users/frank/Sites/places/library/Zend/Application/Bootstrap/Bootstrap.php on line 89

What&#039;s up with that? Aren&#039;t I already using the &quot;fallback&quot; namespace?

And can we PLEASE get updated code for ZF 1.11.5!</description>
		<content:encoded><![CDATA[<p>I created my project with ZF 1.11.5 (as in the zf-tutorial). My Bootstrap has the following lines of code:</p>
<p>	require_once 'Zend/Loader/Autoloader.php';<br />
	$loader = Zend_Loader_Autoloader::getInstance();<br />
	$loader-&gt;setFallbackAutoloader(true);<br />
	$loader-&gt;suppressNotFoundWarnings(false);</p>
<p>Pointing my browser to "places" results in the following PHP error:</p>
<p>Fatal error: Call to a member function getDefaultModule() on a non-object in /Users/frank/Sites/places/library/Zend/Application/Bootstrap/Bootstrap.php on line 89</p>
<p>What's up with that? Aren't I already using the "fallback" namespace?</p>
<p>And can we PLEASE get updated code for ZF 1.11.5!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-63722</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Sat, 28 May 2011 20:55:01 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-63722</guid>
		<description>This is driving me batty!

How should we modify the following line of code for the Places application?:

$loader-&gt;registerNamespace(&#039;App_&#039;);</description>
		<content:encoded><![CDATA[<p>This is driving me batty!</p>
<p>How should we modify the following line of code for the Places application?:</p>
<p>$loader-&gt;registerNamespace('App_');</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-49900</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Thu, 13 Jan 2011 13:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-49900</guid>
		<description>Hey Guys,

nice workshop. Do you have any information to change to .htaccess to find the ZF libraries?

Thanks</description>
		<content:encoded><![CDATA[<p>Hey Guys,</p>
<p>nice workshop. Do you have any information to change to .htaccess to find the ZF libraries?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-35418</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Mon, 14 Jun 2010 00:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-35418</guid>
		<description>Thanks, Rob. I&#039;ve worked through your excellent tutorial, but it&#039;s not apparent to me what changes are needed in chapters 2 through 4 of your book to make it compatible with ZF1.10.4.

I&#039;ve set up my virtual hosts to point to places:81, I know I&#039;ve got that part right.

Here&#039;s my public/index.php file:

// places/public/index.php

bootstrap()
            -&gt;run();

Here&#039;s my public/application/configs/appplication.ini file:

; ~/Sites/places/application/configs/application.ini

[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH &quot;/../library&quot;
includePaths.models = APPLICATION_PATH &quot;/../models&quot;
bootstrap.path = APPLICATION_PATH &quot;/Bootstrap.php&quot;
bootstrap.class = &quot;Bootstrap&quot;
appnamespace = &quot;Application&quot;

resources.frontController.controllerDirectory = APPLICATION_PATH &quot;/controllers&quot;
resources.frontController.params.displayExceptions = 0

db.adapter = PDO_MYSQL
db.params.host = localhost
db.params.username = nan
db.params.password = cooper
db.params.dbname = places
date_default_timezone = &quot;America/Los_Angeles&quot;
debug = 0

[staging : production]

[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
debug = 1

[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1

db.params.dbname = places_test

Here&#039;s my places/application/Bootstrap.php file:

// ~/Sites/places/application/Bootstrap.php

registerNamespace(&#039;Places_&#039;);
		//$loader-&gt;setFallbackAutoloader(true);
		//$loader-&gt;suppressNotFoundWarnings(false);

        // Load configuration
        Zend_Registry::set(&#039;configSection&#039;, $configSection);
        $config = new 
        	Zend_Config_Ini(ROOT_DIR.&#039;/application/configs/application.ini&#039;, 
        	$configSection);
        Zend_Registry::set(&#039;config&#039;, $config);
        
        date_default_timezone_set($config-&gt;date_default_timezone);
        
        // configure database and store to the registery
        $db = Zend_Db::factory($config-&gt;db);
        Zend_Db_Table_Abstract::setDefaultAdapter($db);
        Zend_Registry::set(&#039;db&#039;, $db);
    }
    
    public function configureFrontController()
    {
        $frontController = Zend_Controller_Front::getInstance();
        $frontController-&gt;setControllerDirectory(ROOT_DIR . 
        	&#039;/application/controllers&#039;);
    }

    public function runApp()
    {
        // setup front controller
        $this-&gt;configureFrontController();
        
        // run!
        $frontController = Zend_Controller_Front::getInstance();
        $frontController-&gt;dispatch();
    }
}

My places/application/controllers/IndexController.php file:

view-&gt;title = &#039;Welcome to Places to take the kids!&#039;;
        $placesFinder = new Places();
        $this-&gt;view-&gt;places = $placesFinder-&gt;fetchLatest();
    }
}

The places/tests/models/PlacesTest.php file:

// places/tests/models/PlacesTest.php

fetchAll(); 
        
        // Check that row count is correct
        $this-&gt;assertSame(3, $places-&gt;count());
    }
    
    public function testFetchLatestShouldFetchMostRecentEntriesInReverseOrder()
    {
        $placesFinder = new Places();
        $places = $placesFinder-&gt;fetchLatest(1);
        
        $this-&gt;assertSame(1, $places-&gt;count());
        
        $thisPlace = $places-&gt;current();
        $this-&gt;assertSame(2, (int)$thisPlace-&gt;id);
    }
}

And finally, places/tests/TestConfiguration.php:

// places/tests/TestConfiguration.php

date_default_timezone);
    
        // set up database
        $db = Zend_Db::factory($config-&gt;db);
        Zend_Db_Table::setDefaultAdapter($db);
        Zend_Registry::set(&#039;db&#039;, $db);
    
    }

    static function setupDatabase()
    {
        $db = Zend_Registry::get(&#039;db&#039;); /* @var $db Zend_Db_Adapter_Abstract */

        $db-&gt;query(&lt;&lt;query(&lt;&lt;query(&lt;&lt;query(&lt;&lt;query(&lt;&lt;query(&lt;&lt;&lt;EOT
INSERT INTO reviews  (places_id, body, rating, date_created, date_updated)
VALUES
(1, &#039;The facilities here are really good. All the family enjoyed it&#039;, 4, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)
,(1, &#039;Good day out, but not so many big animals now.&#039;, 2, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)
,(1, &#039;Excellent food in the cafeteria. Even my 2 year old ate her lunch!&#039;, 4, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)
,(2, &#039;Good for teenagers!&#039;, 2, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)
,(2, &#039;A great family day out, but lots of queues!&#039;, 2, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)
,(2, &#039;A fun day was had by our family!&#039;, 2, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)
,(3, &#039;Our children enjoyed learning some of the history!&#039;, 3, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)
;
EOT
        );
    }
}

For the life of me, I can&#039;t figure out why running phpunit models_PlacesTest results in the following output:

fd:tests frank$ phpunit models_PlacesTest
PHP Warning:  include_once(/Users/frank/Sites/places/tests): failed to open stream: No such file or directory in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110

Warning: include_once(/Users/frank/Sites/places/tests): failed to open stream: No such file or directory in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110
PHP Warning:  include_once(): Failed opening &#039;/Users/frank/Sites/places/tests&#039; for inclusion (include_path=&#039;.:/usr/local/PEAR:/ZF/library:/opt/local/lib/php/library/Zend/Test&#039;) in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110

Warning: include_once(): Failed opening &#039;/Users/frank/Sites/places/tests&#039; for inclusion (include_path=&#039;.:/usr/local/PEAR:/ZF/library:/opt/local/lib/php/library/Zend/Test&#039;) in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110
PHP Notice:  Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /Users/frank/Sites/places/library/Zend/Loader.php on line 266

Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /Users/frank/Sites/places/library/Zend/Loader.php on line 266
PHP Warning:  include_once(/Users/frank/Sites/places/application/models): failed to open stream: No such file or directory in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110

Warning: include_once(/Users/frank/Sites/places/application/models): failed to open stream: No such file or directory in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110
PHP Warning:  include_once(): Failed opening &#039;/Users/frank/Sites/places/application/models&#039; for inclusion (include_path=&#039;/Users/frank/Sites/places/application/models/:/Users/frank/Sites/places/library/:/Users/frank/Sites/places/library:.:/usr/local/PEAR:/ZF/library:/opt/local/lib/php/library/Zend/Test&#039;) in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110

Warning: include_once(): Failed opening &#039;/Users/frank/Sites/places/application/models&#039; for inclusion (include_path=&#039;/Users/frank/Sites/places/application/models/:/Users/frank/Sites/places/library/:/Users/frank/Sites/places/library:.:/usr/local/PEAR:/ZF/library:/opt/local/lib/php/library/Zend/Test&#039;) in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110
PHPUnit 3.4.13 by Sebastian Bergmann.

..

Time: 0 seconds, Memory: 10.00Mb

OK (2 tests, 3 assertions)

include_once hasn&#039;t been used in any of the above files. And, all of the files and directories mentioned in /usr/local/PEAR/PHPUnit are present.

Is there any chance you can update the code to work with ZF1.10?

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks, Rob. I've worked through your excellent tutorial, but it's not apparent to me what changes are needed in chapters 2 through 4 of your book to make it compatible with ZF1.10.4.</p>
<p>I've set up my virtual hosts to point to places:81, I know I've got that part right.</p>
<p>Here's my public/index.php file:</p>
<p>// places/public/index.php</p>
<p>bootstrap()<br />
            -&gt;run();</p>
<p>Here's my public/application/configs/appplication.ini file:</p>
<p>; ~/Sites/places/application/configs/application.ini</p>
<p>[production]<br />
phpSettings.display_startup_errors = 0<br />
phpSettings.display_errors = 0<br />
includePaths.library = APPLICATION_PATH "/../library"<br />
includePaths.models = APPLICATION_PATH "/../models"<br />
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"<br />
bootstrap.class = "Bootstrap"<br />
appnamespace = "Application"</p>
<p>resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"<br />
resources.frontController.params.displayExceptions = 0</p>
<p>db.adapter = PDO_MYSQL<br />
db.params.host = localhost<br />
db.params.username = nan<br />
db.params.password = cooper<br />
db.params.dbname = places<br />
date_default_timezone = "America/Los_Angeles"<br />
debug = 0</p>
<p>[staging : production]</p>
<p>[testing : production]<br />
phpSettings.display_startup_errors = 1<br />
phpSettings.display_errors = 1<br />
debug = 1</p>
<p>[development : production]<br />
phpSettings.display_startup_errors = 1<br />
phpSettings.display_errors = 1<br />
resources.frontController.params.displayExceptions = 1</p>
<p>db.params.dbname = places_test</p>
<p>Here's my places/application/Bootstrap.php file:</p>
<p>// ~/Sites/places/application/Bootstrap.php</p>
<p>registerNamespace('Places_');<br />
		//$loader-&gt;setFallbackAutoloader(true);<br />
		//$loader-&gt;suppressNotFoundWarnings(false);</p>
<p>        // Load configuration<br />
        Zend_Registry::set('configSection', $configSection);<br />
        $config = new<br />
        	Zend_Config_Ini(ROOT_DIR.'/application/configs/application.ini',<br />
        	$configSection);<br />
        Zend_Registry::set('config', $config);</p>
<p>        date_default_timezone_set($config-&gt;date_default_timezone);</p>
<p>        // configure database and store to the registery<br />
        $db = Zend_Db::factory($config-&gt;db);<br />
        Zend_Db_Table_Abstract::setDefaultAdapter($db);<br />
        Zend_Registry::set('db', $db);<br />
    }</p>
<p>    public function configureFrontController()<br />
    {<br />
        $frontController = Zend_Controller_Front::getInstance();<br />
        $frontController-&gt;setControllerDirectory(ROOT_DIR .<br />
        	'/application/controllers');<br />
    }</p>
<p>    public function runApp()<br />
    {<br />
        // setup front controller<br />
        $this-&gt;configureFrontController();</p>
<p>        // run!<br />
        $frontController = Zend_Controller_Front::getInstance();<br />
        $frontController-&gt;dispatch();<br />
    }<br />
}</p>
<p>My places/application/controllers/IndexController.php file:</p>
<p>view-&gt;title = 'Welcome to Places to take the kids!';<br />
        $placesFinder = new Places();<br />
        $this-&gt;view-&gt;places = $placesFinder-&gt;fetchLatest();<br />
    }<br />
}</p>
<p>The places/tests/models/PlacesTest.php file:</p>
<p>// places/tests/models/PlacesTest.php</p>
<p>fetchAll(); </p>
<p>        // Check that row count is correct<br />
        $this-&gt;assertSame(3, $places-&gt;count());<br />
    }</p>
<p>    public function testFetchLatestShouldFetchMostRecentEntriesInReverseOrder()<br />
    {<br />
        $placesFinder = new Places();<br />
        $places = $placesFinder-&gt;fetchLatest(1);</p>
<p>        $this-&gt;assertSame(1, $places-&gt;count());</p>
<p>        $thisPlace = $places-&gt;current();<br />
        $this-&gt;assertSame(2, (int)$thisPlace-&gt;id);<br />
    }<br />
}</p>
<p>And finally, places/tests/TestConfiguration.php:</p>
<p>// places/tests/TestConfiguration.php</p>
<p>date_default_timezone);</p>
<p>        // set up database<br />
        $db = Zend_Db::factory($config-&gt;db);<br />
        Zend_Db_Table::setDefaultAdapter($db);<br />
        Zend_Registry::set('db', $db);</p>
<p>    }</p>
<p>    static function setupDatabase()<br />
    {<br />
        $db = Zend_Registry::get('db'); /* @var $db Zend_Db_Adapter_Abstract */</p>
<p>        $db-&gt;query(&lt;&lt;query(&lt;&lt;query(&lt;&lt;query(&lt;&lt;query(&lt;&lt;query(&lt;&lt;&lt;EOT<br />
INSERT INTO reviews  (places_id, body, rating, date_created, date_updated)<br />
VALUES<br />
(1, &#039;The facilities here are really good. All the family enjoyed it&#039;, 4, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)<br />
,(1, &#039;Good day out, but not so many big animals now.&#039;, 2, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)<br />
,(1, &#039;Excellent food in the cafeteria. Even my 2 year old ate her lunch!&#039;, 4, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)<br />
,(2, &#039;Good for teenagers!&#039;, 2, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)<br />
,(2, &#039;A great family day out, but lots of queues!&#039;, 2, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)<br />
,(2, &#039;A fun day was had by our family!&#039;, 2, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)<br />
,(3, &#039;Our children enjoyed learning some of the history!&#039;, 3, &#039;2007-02-14 00:00:00&#039;, &#039;2007-02-14 00:00:00&#039;)<br />
;<br />
EOT<br />
        );<br />
    }<br />
}</p>
<p>For the life of me, I can&#039;t figure out why running phpunit models_PlacesTest results in the following output:</p>
<p>fd:tests frank$ phpunit models_PlacesTest<br />
PHP Warning:  include_once(/Users/frank/Sites/places/tests): failed to open stream: No such file or directory in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110</p>
<p>Warning: include_once(/Users/frank/Sites/places/tests): failed to open stream: No such file or directory in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110<br />
PHP Warning:  include_once(): Failed opening &#039;/Users/frank/Sites/places/tests&#039; for inclusion (include_path=&#039;.:/usr/local/PEAR:/ZF/library:/opt/local/lib/php/library/Zend/Test&#039;) in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110</p>
<p>Warning: include_once(): Failed opening &#039;/Users/frank/Sites/places/tests&#039; for inclusion (include_path=&#039;.:/usr/local/PEAR:/ZF/library:/opt/local/lib/php/library/Zend/Test&#039;) in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110<br />
PHP Notice:  Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /Users/frank/Sites/places/library/Zend/Loader.php on line 266</p>
<p>Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /Users/frank/Sites/places/library/Zend/Loader.php on line 266<br />
PHP Warning:  include_once(/Users/frank/Sites/places/application/models): failed to open stream: No such file or directory in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110</p>
<p>Warning: include_once(/Users/frank/Sites/places/application/models): failed to open stream: No such file or directory in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110<br />
PHP Warning:  include_once(): Failed opening &#039;/Users/frank/Sites/places/application/models&#039; for inclusion (include_path=&#039;/Users/frank/Sites/places/application/models/:/Users/frank/Sites/places/library/:/Users/frank/Sites/places/library:.:/usr/local/PEAR:/ZF/library:/opt/local/lib/php/library/Zend/Test&#039;) in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110</p>
<p>Warning: include_once(): Failed opening &#039;/Users/frank/Sites/places/application/models&#039; for inclusion (include_path=&#039;/Users/frank/Sites/places/application/models/:/Users/frank/Sites/places/library/:/Users/frank/Sites/places/library:.:/usr/local/PEAR:/ZF/library:/opt/local/lib/php/library/Zend/Test&#039;) in /usr/local/PEAR/PHPUnit/Util/Fileloader.php on line 110<br />
PHPUnit 3.4.13 by Sebastian Bergmann.</p>
<p>..</p>
<p>Time: 0 seconds, Memory: 10.00Mb</p>
<p>OK (2 tests, 3 assertions)</p>
<p>include_once hasn&#039;t been used in any of the above files. And, all of the files and directories mentioned in /usr/local/PEAR/PHPUnit are present.</p>
<p>Is there any chance you can update the code to work with ZF1.10?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-32700</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Tue, 06 Apr 2010 07:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-32700</guid>
		<description>Thanks for letting me know. I&#039;ve updated the links.</description>
		<content:encoded><![CDATA[<p>Thanks for letting me know. I've updated the links.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-32650</link>
		<dc:creator>Gregory</dc:creator>
		<pubDate>Sun, 04 Apr 2010 21:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-32650</guid>
		<description>Site error: the file /affiliate/idevaffiliate.php requires the ionCube PHP Loader ioncube_loader_fre_4.3.so to be installed by the site administrator.

When trying to see either book from http://www.zendframeworkinaction.com/.

Thanks for the mvc tutorial.  Will there be an up-to-date edition of the book (or an electronic version that is always up to date) soon?</description>
		<content:encoded><![CDATA[<p>Site error: the file /affiliate/idevaffiliate.php requires the ionCube PHP Loader ioncube_loader_fre_4.3.so to be installed by the site administrator.</p>
<p>When trying to see either book from <a href="http://www.zendframeworkinaction.com/" rel="nofollow">http://www.zendframeworkinaction.com/</a>.</p>
<p>Thanks for the mvc tutorial.  Will there be an up-to-date edition of the book (or an electronic version that is always up to date) soon?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-30959</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Thu, 18 Feb 2010 07:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-30959</guid>
		<description>Frank,

Yes the book is still useful for ZF development. However, the MVC chapters, (2, 3 &amp; 4) are less useful nowadays. Essentially, you need to go through my &lt;a href=&quot;/zend-framework-tutorial&quot; rel=&quot;nofollow&quot;&gt;tutorial&lt;/a&gt; and then look at how 2,3,4 differ.

Regards,

Rob...</description>
		<content:encoded><![CDATA[<p>Frank,</p>
<p>Yes the book is still useful for ZF development. However, the MVC chapters, (2, 3 &#038; 4) are less useful nowadays. Essentially, you need to go through my <a href="/zend-framework-tutorial" rel="nofollow">tutorial</a> and then look at how 2,3,4 differ.</p>
<p>Regards,</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-30956</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 18 Feb 2010 01:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-30956</guid>
		<description>Using ZF 1.10.1 and Zend_Tool.

Listing 2.1 differs greatly from the index.php file that Zend_Tool places in the public folder.

Have things changed that much since ZF 1.5? Can I still use this book?</description>
		<content:encoded><![CDATA[<p>Using ZF 1.10.1 and Zend_Tool.</p>
<p>Listing 2.1 differs greatly from the index.php file that Zend_Tool places in the public folder.</p>
<p>Have things changed that much since ZF 1.5? Can I still use this book?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-30854</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 12 Feb 2010 20:37:12 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-30854</guid>
		<description>An adjustment to my comment. You can&#039;t just strip out index.php. You need to set the baseUrl.</description>
		<content:encoded><![CDATA[<p>An adjustment to my comment. You can't just strip out index.php. You need to set the baseUrl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Russell</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-30849</link>
		<dc:creator>Dave Russell</dc:creator>
		<pubDate>Fri, 12 Feb 2010 17:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-30849</guid>
		<description>I am currently redoing my website using zend framework and chose your book. The zf version is 1.9.7 . Page 71...The baseUrl View Helper. The getBaseUrl() now includes index.php in 1.9.7...so you need to strip it out in the view helper:
i.e.
class Places_View_Helper_BaseUrl
{
    function baseUrl()
    {
        $fc = Zend_Controller_Front::getInstance();
	$baseUrlWithIndex = $fc-&gt;getBaseUrl();
        
	 $base_url = substr($_SERVER[&#039;PHP_SELF&#039;], 0, -9);
	 return $this-&gt;_baseUrl = $base_url;
    }
}</description>
		<content:encoded><![CDATA[<p>I am currently redoing my website using zend framework and chose your book. The zf version is 1.9.7 . Page 71...The baseUrl View Helper. The getBaseUrl() now includes index.php in 1.9.7...so you need to strip it out in the view helper:<br />
i.e.<br />
class Places_View_Helper_BaseUrl<br />
{<br />
    function baseUrl()<br />
    {<br />
        $fc = Zend_Controller_Front::getInstance();<br />
	$baseUrlWithIndex = $fc-&gt;getBaseUrl();</p>
<p>	 $base_url = substr($_SERVER['PHP_SELF'], 0, -9);<br />
	 return $this-&gt;_baseUrl = $base_url;<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

