<?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: Part 5 &#8211; user registration and activation finished. User login and logout. Zend_Auth.</title>
	<atom:link href="http://zfsite.andreinikolov.com/2008/06/part-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://zfsite.andreinikolov.com/2008/06/part-5/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=part-5</link>
	<description>Series of articles describing step by step building of example php application (web site) based on Zend Framework.</description>
	<lastBuildDate>Sun, 22 Jan 2012 15:29:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Alexwebmaster</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-1708</link>
		<dc:creator>Alexwebmaster</dc:creator>
		<pubDate>Tue, 03 Mar 2009 12:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-1708</guid>
		<description>Hello webmaster 
I would like to share with you a link to your site 
write me here preonrelt@mail.ru</description>
		<content:encoded><![CDATA[<p>Hello webmaster<br />
I would like to share with you a link to your site<br />
write me here <a href="mailto:preonrelt@mail.ru">preonrelt@mail.ru</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodney Nguyen</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-1669</link>
		<dc:creator>Rodney Nguyen</dc:creator>
		<pubDate>Sun, 01 Mar 2009 05:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-1669</guid>
		<description>I wanted to thank you for your tutorial. It helped me put together my &lt;a&gt;sign up&lt;/a&gt; form with a little bit of improvisation with current zend dojo application. I was inspire by Padraic Brady blog tutorial as well as your adaptation of his work. Thanks again for your great service.</description>
		<content:encoded><![CDATA[<p>I wanted to thank you for your tutorial. It helped me put together my <a>sign up</a> form with a little bit of improvisation with current zend dojo application. I was inspire by Padraic Brady blog tutorial as well as your adaptation of his work. Thanks again for your great service.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casey</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-1152</link>
		<dc:creator>Casey</dc:creator>
		<pubDate>Fri, 06 Feb 2009 00:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-1152</guid>
		<description>Hi, 

I&#039;m experiencing the same problem as some of the other readers. I have my site sitting at http://www.example.com/zfsite. When I submit the register form, the /zfsite is dropped from the URL. Could you please try to explain to me what to change in the bootstrap to prevent this from happening? Thanks for the great series, it has been very enlightening.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I&#8217;m experiencing the same problem as some of the other readers. I have my site sitting at <a href="http://www.example.com/zfsite" rel="nofollow">http://www.example.com/zfsite</a>. When I submit the register form, the /zfsite is dropped from the URL. Could you please try to explain to me what to change in the bootstrap to prevent this from happening? Thanks for the great series, it has been very enlightening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: viperx</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-970</link>
		<dc:creator>viperx</dc:creator>
		<pubDate>Tue, 20 Jan 2009 14:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-970</guid>
		<description>@Florin :
it seems your include path is not corect set. 

In the original code I use:

// Add /library and /application directory to our include path 
$siteRootDir = dirname($_SERVER[&#039;DOCUMENT_ROOT&#039;]);

set_include_path(
    $siteRootDir . &#039;/library&#039; . PATH_SEPARATOR 
    . $siteRootDir . &#039;/application&#039; . PATH_SEPARATOR
    . $siteRootDir . &#039;/application/models&#039; . PATH_SEPARATOR 
    . get_include_path()
);

but you can change the first line to 
$siteRootDir = dirname($_SERVER[&#039;SCRIPT_FILENAME&#039;]) . &#039;/..&#039;;

or:

$siteRootDir = dirname(dirname($_SERVER[&#039;SCRIPT_FILENAME&#039;]));

this assumes you have the same relative directory structure as the suggested by me, but allows also running the example from subdirectory of virtual host.</description>
		<content:encoded><![CDATA[<p>@Florin :<br />
it seems your include path is not corect set. </p>
<p>In the original code I use:</p>
<p>// Add /library and /application directory to our include path<br />
$siteRootDir = dirname($_SERVER['DOCUMENT_ROOT']);</p>
<p>set_include_path(<br />
    $siteRootDir . &#8216;/library&#8217; . PATH_SEPARATOR<br />
    . $siteRootDir . &#8216;/application&#8217; . PATH_SEPARATOR<br />
    . $siteRootDir . &#8216;/application/models&#8217; . PATH_SEPARATOR<br />
    . get_include_path()<br />
);</p>
<p>but you can change the first line to<br />
$siteRootDir = dirname($_SERVER['SCRIPT_FILENAME']) . &#8216;/..&#8217;;</p>
<p>or:</p>
<p>$siteRootDir = dirname(dirname($_SERVER['SCRIPT_FILENAME']));</p>
<p>this assumes you have the same relative directory structure as the suggested by me, but allows also running the example from subdirectory of virtual host.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: viperx</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-969</link>
		<dc:creator>viperx</dc:creator>
		<pubDate>Tue, 20 Jan 2009 14:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-969</guid>
		<description>@boobalan : 
Hi, 

this example is written so it runs in its own virtual host. 

See examples here:
http://httpd.apache.org/docs/1.3/vhosts/examples.html

and pay attention to the “Port-based vhosts” section.


The code can be modified to run in subdirectory, but some changes are needed.. Because you are not the first one with this problem maybe I should write better explenation about this... 

In short, the changes needed are to set the include paths correct in bootstrap.php and to use only relative paths in links (&#039;user/register&#039; instead of &#039;/user/register&#039;) and to add &lt;base&gt; tag in your templage.&lt;/base&gt;</description>
		<content:encoded><![CDATA[<p>@boobalan :<br />
Hi, </p>
<p>this example is written so it runs in its own virtual host. </p>
<p>See examples here:<br />
<a href="http://httpd.apache.org/docs/1.3/vhosts/examples.html" rel="nofollow">http://httpd.apache.org/docs/1.3/vhosts/examples.html</a></p>
<p>and pay attention to the “Port-based vhosts” section.</p>
<p>The code can be modified to run in subdirectory, but some changes are needed.. Because you are not the first one with this problem maybe I should write better explenation about this&#8230; </p>
<p>In short, the changes needed are to set the include paths correct in bootstrap.php and to use only relative paths in links (&#8216;user/register&#8217; instead of &#8216;/user/register&#8217;) and to add <base> tag in your templage.</base></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florin</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-939</link>
		<dc:creator>Florin</dc:creator>
		<pubDate>Fri, 16 Jan 2009 20:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-939</guid>
		<description>$view = new Zend_View(array(&#039;encoding&#039;=&gt;&#039;UTF-8&#039;));
//$view-&gt;addHelperPath($siteRootDir . &#039;library/My/View/Helper&#039;, &#039;My_View_Helper&#039;);
$view-&gt;addHelperPath(&#039;My/View/Helper&#039;, &#039;My_View_Helper_&#039;);
$viewRendered = new Zend_Controller_Action_Helper_ViewRenderer($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRendered);
Zend_Controller_Action_HelperBroker::addPath(&#039;My/Controller/Action/Helper&#039;, &#039;My_Controller_Action_Helper&#039;);
//next is line 104 
$authUsersHelper = new My_Controller_Action_Helper_AuthUsers();   
Zend_Controller_Action_HelperBroker::addHelper($authUsersHelper);</description>
		<content:encoded><![CDATA[<p>$view = new Zend_View(array(&#8216;encoding&#8217;=&gt;&#8217;UTF-8&#8242;));<br />
//$view-&gt;addHelperPath($siteRootDir . &#8216;library/My/View/Helper&#8217;, &#8216;My_View_Helper&#8217;);<br />
$view-&gt;addHelperPath(&#8216;My/View/Helper&#8217;, &#8216;My_View_Helper_&#8217;);<br />
$viewRendered = new Zend_Controller_Action_Helper_ViewRenderer($view);<br />
Zend_Controller_Action_HelperBroker::addHelper($viewRendered);<br />
Zend_Controller_Action_HelperBroker::addPath(&#8216;My/Controller/Action/Helper&#8217;, &#8216;My_Controller_Action_Helper&#8217;);<br />
//next is line 104<br />
$authUsersHelper = new My_Controller_Action_Helper_AuthUsers();<br />
Zend_Controller_Action_HelperBroker::addHelper($authUsersHelper);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florin</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-937</link>
		<dc:creator>Florin</dc:creator>
		<pubDate>Fri, 16 Jan 2009 14:23:20 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-937</guid>
		<description>I don&#039;t understood what is wrong.
Sorry.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understood what is wrong.<br />
Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florin</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-936</link>
		<dc:creator>Florin</dc:creator>
		<pubDate>Fri, 16 Jan 2009 14:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-936</guid>
		<description>Warning: Zend_Loader::include_once(My\Controller\Action\Helper\AuthUsers.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\QuickStart\library\Zend\Loader.php on line 83
Hi, Andrei
I try to run the application.
I have the follow error.
I understood what is wrong.

Warning: Zend_Loader::include_once() [function.include]: Failed opening &#039;My\Controller\Action\Helper\AuthUsers.php&#039; for inclusion (include_path=&#039;../library;../application;../application/models;.;C:\xampp\php\pear\&#039;) in C:\xampp\htdocs\QuickStart\library\Zend\Loader.php on line 83

Fatal error: Class &#039;My_Controller_Action_Helper_AuthUsers&#039; not found in C:\xampp\htdocs\QuickStart\application\bootstrap.php on line 104</description>
		<content:encoded><![CDATA[<p>Warning: Zend_Loader::include_once(My\Controller\Action\Helper\AuthUsers.php) [function.Zend-Loader-include-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\QuickStart\library\Zend\Loader.php on line 83<br />
Hi, Andrei<br />
I try to run the application.<br />
I have the follow error.<br />
I understood what is wrong.</p>
<p>Warning: Zend_Loader::include_once() [function.include]: Failed opening &#8216;My\Controller\Action\Helper\AuthUsers.php&#8217; for inclusion (include_path=&#8217;../library;../application;../application/models;.;C:\xampp\php\pear\&#8217;) in C:\xampp\htdocs\QuickStart\library\Zend\Loader.php on line 83</p>
<p>Fatal error: Class &#8216;My_Controller_Action_Helper_AuthUsers&#8217; not found in C:\xampp\htdocs\QuickStart\application\bootstrap.php on line 104</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: boobalan</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-613</link>
		<dc:creator>boobalan</dc:creator>
		<pubDate>Sat, 27 Dec 2008 11:36:19 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-613</guid>
		<description>Hi ,
I followed the tutorial but could not get result it displays error like 

Not Found

The requested URL /user/register was not found on this server.

actual path before request is localhost/public 
after 
when i click register
it says the error somebody help me to fix it</description>
		<content:encoded><![CDATA[<p>Hi ,<br />
I followed the tutorial but could not get result it displays error like </p>
<p>Not Found</p>
<p>The requested URL /user/register was not found on this server.</p>
<p>actual path before request is localhost/public<br />
after<br />
when i click register<br />
it says the error somebody help me to fix it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: viperx</title>
		<link>http://zfsite.andreinikolov.com/2008/06/part-5/comment-page-1/#comment-188</link>
		<dc:creator>viperx</dc:creator>
		<pubDate>Fri, 17 Oct 2008 13:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://zfsite.andreinikolov.com/?p=10#comment-188</guid>
		<description>@Thomas:

Hi Thomas,
if you can paste some fragments of your code may be I will have idea what can be wrong, but only from your description I can&#039;t think of anything</description>
		<content:encoded><![CDATA[<p>@Thomas:</p>
<p>Hi Thomas,<br />
if you can paste some fragments of your code may be I will have idea what can be wrong, but only from your description I can&#8217;t think of anything</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.382 seconds -->

