<?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>Thu, 29 Jul 2010 17:50:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<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>
	<item>
		<title>By: Michele</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-28377</link>
		<dc:creator>Michele</dc:creator>
		<pubDate>Mon, 31 Aug 2009 13:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-28377</guid>
		<description>thank&#039;s a lot, i found this really useful!</description>
		<content:encoded><![CDATA[<p>thank's a lot, i found this really useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apprentice</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-27985</link>
		<dc:creator>apprentice</dc:creator>
		<pubDate>Tue, 21 Jul 2009 22:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-27985</guid>
		<description>guelmismr&gt;&gt;&gt;
http://akrabat.com/zend-framework-tutorial/
Try the new 1.8 version of Rob&#039;s Tutorial it looks fresh and easy, will begin to poke holes on my punch cards tomorrow before running the codes :-)

By the way guelmismr it has taken me around 360 days (~12 months) to configure LAMP/WAMP, Bootstrapper, .htaccess, index.php, reading the basic chapters of ZFiA etc. etc.

I still haven&#039;t been able to play with the HTML and CSS part yet, maybe tomorrow when my punch cards are hot and ready :-)</description>
		<content:encoded><![CDATA[<p>guelmismr&gt;&gt;&gt;<br />
<a href="http://akrabat.com/zend-framework-tutorial/" rel="nofollow">http://akrabat.com/zend-framework-tutorial/</a><br />
Try the new 1.8 version of Rob's Tutorial it looks fresh and easy, will begin to poke holes on my punch cards tomorrow before running the codes :-)</p>
<p>By the way guelmismr it has taken me around 360 days (~12 months) to configure LAMP/WAMP, Bootstrapper, .htaccess, index.php, reading the basic chapters of ZFiA etc. etc.</p>
<p>I still haven't been able to play with the HTML and CSS part yet, maybe tomorrow when my punch cards are hot and ready :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guelmismr</title>
		<link>http://akrabat.com/zend-framework/zend_loaders-autoloader_deprecated-in-zend-framework-18/#comment-27798</link>
		<dc:creator>guelmismr</dc:creator>
		<pubDate>Wed, 01 Jul 2009 03:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=578#comment-27798</guid>
		<description>Recently I started to get familiar with the MVC and I was recomended to work with Zend Framework, but it has taken me several days trying to configure the Boostrap.php, the .htacces and index.php on public folder, so far it works for the IndexController and  ErrorController, but when adding new controllers is not very clear how should I call them, because I can not even define who is the front controller, I need a basic setup to begin to develop an application, the base. Could someone help me?</description>
		<content:encoded><![CDATA[<p>Recently I started to get familiar with the MVC and I was recomended to work with Zend Framework, but it has taken me several days trying to configure the Boostrap.php, the .htacces and index.php on public folder, so far it works for the IndexController and  ErrorController, but when adding new controllers is not very clear how should I call them, because I can not even define who is the front controller, I need a basic setup to begin to develop an application, the base. Could someone help me?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
