<?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 Framework directory structure</title>
	<atom:link href="http://dev.juokaz.com/php/zend-framework-directory-structure/feed" rel="self" type="application/rss+xml" />
	<link>http://dev.juokaz.com/php/zend-framework-directory-structure</link>
	<description>Random ideas, scripts and facts</description>
	<lastBuildDate>Mon, 29 Mar 2010 18:47:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Aryashree Pritikrishna</title>
		<link>http://dev.juokaz.com/php/zend-framework-directory-structure/comment-page-1#comment-8480</link>
		<dc:creator>Aryashree Pritikrishna</dc:creator>
		<pubDate>Fri, 29 Jan 2010 10:43:24 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=238#comment-8480</guid>
		<description>Hi...

Nice article one, about creating admin modules.

Thanks,
Arya</description>
		<content:encoded><![CDATA[<p>Hi&#8230;</p>
<p>Nice article one, about creating admin modules.</p>
<p>Thanks,<br />
Arya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aruss</title>
		<link>http://dev.juokaz.com/php/zend-framework-directory-structure/comment-page-1#comment-6411</link>
		<dc:creator>aruss</dc:creator>
		<pubDate>Sat, 14 Nov 2009 14:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=238#comment-6411</guid>
		<description>Hi, did your solution work? how do you implemented it? would you share some parts of your code?

I try a solution with two applications like descibed in symphony docu http://www.symfony-project.org/book/1_2/02-Exploring-Symfony-s-Code#chapter_02_code_organization

I think it is cleaner solution, at the end you have three diretories frontend backend modules and model directory for the library 

greets
aruss</description>
		<content:encoded><![CDATA[<p>Hi, did your solution work? how do you implemented it? would you share some parts of your code?</p>
<p>I try a solution with two applications like descibed in symphony docu <a href="http://www.symfony-project.org/book/1_2/02-Exploring-Symfony-s-Code#chapter_02_code_organization" rel="nofollow">http://www.symfony-project.org/book/1_2/02-Exploring-Symfony-s-Code#chapter_02_code_organization</a></p>
<p>I think it is cleaner solution, at the end you have three diretories frontend backend modules and model directory for the library </p>
<p>greets<br />
aruss</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yann</title>
		<link>http://dev.juokaz.com/php/zend-framework-directory-structure/comment-page-1#comment-4827</link>
		<dc:creator>yann</dc:creator>
		<pubDate>Fri, 14 Aug 2009 21:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=238#comment-4827</guid>
		<description>With ZF 1.7 I use same as your 2nd structure ! 

Combined with apache ENV var and different subdomain for each module, it was great.

I try to adapt it with ZF 1.9 but it&#039;s a big mess.

Did you run this structure ?</description>
		<content:encoded><![CDATA[<p>With ZF 1.7 I use same as your 2nd structure ! </p>
<p>Combined with apache ENV var and different subdomain for each module, it was great.</p>
<p>I try to adapt it with ZF 1.9 but it&#8217;s a big mess.</p>
<p>Did you run this structure ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slack5</title>
		<link>http://dev.juokaz.com/php/zend-framework-directory-structure/comment-page-1#comment-584</link>
		<dc:creator>Slack5</dc:creator>
		<pubDate>Mon, 30 Mar 2009 05:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=238#comment-584</guid>
		<description>admin/
admin_application/
  module/
    controllers/
    views/
application/
  module/
    controllers/
    views/
  doctrine/
  models/
library/
public/</description>
		<content:encoded><![CDATA[<p>admin/<br />
admin_application/<br />
  module/<br />
    controllers/<br />
    views/<br />
application/<br />
  module/<br />
    controllers/<br />
    views/<br />
  doctrine/<br />
  models/<br />
library/<br />
public/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: netors</title>
		<link>http://dev.juokaz.com/php/zend-framework-directory-structure/comment-page-1#comment-192</link>
		<dc:creator>netors</dc:creator>
		<pubDate>Wed, 04 Mar 2009 20:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=238#comment-192</guid>
		<description>Juozas,

I use the last structure,
You just have to add this to your bootstrap.php

&lt;pre lang=&quot;php&quot;&gt;
	$frontController = Zend_Controller_Front::getInstance(); 
	$frontController-&gt;throwExceptions(false); 
	$frontController-&gt;setControllerDirectory(array(&#039;default&#039;=&gt;APP_DIR.&#039;public&#039;.DIRECTORY_SEPARATOR.&#039;controllers&#039;,&#039;admin&#039;=&gt;APP_DIR.&#039;admin&#039;.DIRECTORY_SEPARATOR.&#039;controllers&#039;));
&lt;/pre&gt;

Also, If you would like to add new modules, change the array passed to the setControllerDirectory (get creative, use a db or ini file etc.., make the admin module do that magic)

I Hope it helps.</description>
		<content:encoded><![CDATA[<p>Juozas,</p>
<p>I use the last structure,<br />
You just have to add this to your bootstrap.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000088;">$frontController</span> <span style="color: #339933;">=</span> Zend_Controller_Front<span style="color: #339933;">::</span><span style="color: #004000;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #000088;">$frontController</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>throwExceptions<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #000088;">$frontController</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>setControllerDirectory<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'default'</span><span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span>APP_DIR<span style="color: #339933;">.</span><span style="color: #0000ff;">'public'</span><span style="color: #339933;">.</span><span style="color: #009900; font-weight: bold;">DIRECTORY_SEPARATOR</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'controllers'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'admin'</span><span style="color: #339933;">=&amp;</span>gt<span style="color: #339933;">;</span>APP_DIR<span style="color: #339933;">.</span><span style="color: #0000ff;">'admin'</span><span style="color: #339933;">.</span><span style="color: #009900; font-weight: bold;">DIRECTORY_SEPARATOR</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'controllers'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Also, If you would like to add new modules, change the array passed to the setControllerDirectory (get creative, use a db or ini file etc.., make the admin module do that magic)</p>
<p>I Hope it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio Sironi</title>
		<link>http://dev.juokaz.com/php/zend-framework-directory-structure/comment-page-1#comment-189</link>
		<dc:creator>Giorgio Sironi</dc:creator>
		<pubDate>Wed, 04 Mar 2009 19:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=238#comment-189</guid>
		<description>I do not agree on the admin/public distinction.
I develop a CMS based on Zend Framework and Doctrine, and I use the modular structure from the manual. My solution define a Zend_Acl in a config/acl.ini file that allow an user with a certain role to execute some actions. Currently there are three levels: guest, user and admin, and they cannot be mapped on a admin/public structure. Access control, when done right, it is more than that.</description>
		<content:encoded><![CDATA[<p>I do not agree on the admin/public distinction.<br />
I develop a CMS based on Zend Framework and Doctrine, and I use the modular structure from the manual. My solution define a Zend_Acl in a config/acl.ini file that allow an user with a certain role to execute some actions. Currently there are three levels: guest, user and admin, and they cannot be mapped on a admin/public structure. Access control, when done right, it is more than that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juozas</title>
		<link>http://dev.juokaz.com/php/zend-framework-directory-structure/comment-page-1#comment-123</link>
		<dc:creator>Juozas</dc:creator>
		<pubDate>Wed, 25 Feb 2009 15:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=238#comment-123</guid>
		<description>Hi, Fozzy,

yes, module is part of application, eg. works only within it, not alone. But my idea is to develop application, which can accept new modules without changing other code - config files, language files, etc.

I&#039;ve seen proposed structure, but I din&#039;t understood how they are going to deal with admin/public parts. Sure, you can add AdminController.php or have AdminIndex_Action() in controllers, but is this really a good way? 

My biggest headache is admin/public distinction. How you do it?</description>
		<content:encoded><![CDATA[<p>Hi, Fozzy,</p>
<p>yes, module is part of application, eg. works only within it, not alone. But my idea is to develop application, which can accept new modules without changing other code &#8211; config files, language files, etc.</p>
<p>I&#8217;ve seen proposed structure, but I din&#8217;t understood how they are going to deal with admin/public parts. Sure, you can add AdminController.php or have AdminIndex_Action() in controllers, but is this really a good way? </p>
<p>My biggest headache is admin/public distinction. How you do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fozzy</title>
		<link>http://dev.juokaz.com/php/zend-framework-directory-structure/comment-page-1#comment-122</link>
		<dc:creator>Fozzy</dc:creator>
		<pubDate>Wed, 25 Feb 2009 15:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=238#comment-122</guid>
		<description>Hi,

I&#039;m racking my brain on this right now, too and I&#039;m looking at it with regards to the new proposed project structure:

&lt;a href=&quot;http://framework.zend.com/wiki/display/ZFPROP/Zend+Framework+Default+Project+Structure+-+Wil+Sinclair&quot; rel=&quot;nofollow&quot;&gt;Zend Framework Project Structure&lt;/a&gt;

What I think I might have is:

application/
   models/
   modules/
      
         controller/
         models/
         view/
      [...]

As I see it, the &quot;public&quot; and &quot;admin&quot; section will be sharing the same models, such as a &quot;user&quot; or &quot;account&quot; model.  There should be a application level &quot;models&quot; folder for shared resources across modules.

Also, recall that a module *must* be within a context of an application.  Sure, it can be a sort of stand-a-lone application, but it&#039;s still part or &quot;plugged-in&quot; to the main application, meaning it should and can be safe to assume certain application level modules will be present to be allowed to be shared.

That&#039;s what I&#039;m thinking at least.  That might give you some ideas.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m racking my brain on this right now, too and I&#8217;m looking at it with regards to the new proposed project structure:</p>
<p><a href="http://framework.zend.com/wiki/display/ZFPROP/Zend+Framework+Default+Project+Structure+-+Wil+Sinclair" rel="nofollow">Zend Framework Project Structure</a></p>
<p>What I think I might have is:</p>
<p>application/<br />
   models/<br />
   modules/</p>
<p>         controller/<br />
         models/<br />
         view/<br />
      [...]</p>
<p>As I see it, the &#8220;public&#8221; and &#8220;admin&#8221; section will be sharing the same models, such as a &#8220;user&#8221; or &#8220;account&#8221; model.  There should be a application level &#8220;models&#8221; folder for shared resources across modules.</p>
<p>Also, recall that a module *must* be within a context of an application.  Sure, it can be a sort of stand-a-lone application, but it&#8217;s still part or &#8220;plugged-in&#8221; to the main application, meaning it should and can be safe to assume certain application level modules will be present to be allowed to be shared.</p>
<p>That&#8217;s what I&#8217;m thinking at least.  That might give you some ideas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CoolKourt</title>
		<link>http://dev.juokaz.com/php/zend-framework-directory-structure/comment-page-1#comment-97</link>
		<dc:creator>CoolKourt</dc:creator>
		<pubDate>Mon, 23 Feb 2009 02:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://dev.juokaz.com/?p=238#comment-97</guid>
		<description>Hello, I like the last structure. It seems like even though there would be extra files and folders, maybe it would be easier for someone wanting/willing to learn such and advanced level of programming and start really building sites for clients tailored to their needs.

Every quickstart I got for Zend didnt work.

If you have any good links or resources to any Zend related projects I would love to see them.

coolcourt@gmail.com</description>
		<content:encoded><![CDATA[<p>Hello, I like the last structure. It seems like even though there would be extra files and folders, maybe it would be easier for someone wanting/willing to learn such and advanced level of programming and start really building sites for clients tailored to their needs.</p>
<p>Every quickstart I got for Zend didnt work.</p>
<p>If you have any good links or resources to any Zend related projects I would love to see them.</p>
<p><a href="mailto:coolcourt@gmail.com">coolcourt@gmail.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
