<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>phly, boy, phly Comments</title>
    <link>http://weierophinney.net/matthew/</link>
    <description>Comments from Ramblings on PHP, Linux, and other Geeky Topics</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.0.4 - http://www.s9y.org/</generator>
    <pubDate>Wed, 17 Mar 2010 05:40:49 GMT</pubDate>

    <image>
        <url>http://weierophinney.net/matthew/templates/matthew/img/s9y_banner_small.png</url>
        <title>RSS: phly, boy, phly Comments - Comments from Ramblings on PHP, Linux, and other Geeky Topics</title>
        <link>http://weierophinney.net/matthew/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Thierry BENDA: Login and Authentication with Zend Framework</title>
    <link>http://weierophinney.net/matthew/archives/165-Login-and-Authentication-with-Zend-Framework.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/165-Login-and-Authentication-with-Zend-Framework.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=165</wfw:comment>

    

    <author>nospam@example.com (Thierry BENDA)</author>
    <content:encoded>
    Hi Matthew,

Good tutorial.
For those are seeking a authentication adapter they could go there if they use Doctrine ORM :
http://framework.zend.com/wiki/pages/viewpage.action?pageId=3866950

Usefull tip. Thanks.
Have a good day!

Thierry. 
    </content:encoded>

    <pubDate>Tue, 16 Mar 2010 03:30:36 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/165-guid.html#c24811</guid>
    
</item>
<item>
    <title>Greg: Module Bootstraps in Zend Framework: Do's and Don'ts</title>
    <link>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=234</wfw:comment>

    

    <author>nospam@example.com (Greg)</author>
    <content:encoded>
    A poor man&#039;s alternative might be to explore tweaking the dispatcher class to test for individual action controller classes/files coupled with the path delimiter for organized sub directories and files. Although it doesn&#039;t have the slightly more desirable module status it does alleviate having to additionally pre-configure each of these components primary resources and locations (view paths for example), as shared/accessible resources, since they&#039;re all within the same module. 
    </content:encoded>

    <pubDate>Mon, 15 Mar 2010 20:31:53 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/234-guid.html#c24810</guid>
    
</item>
<item>
    <title>Pierre &quot;Greywacke&quot; du Toit: PHP decoding of Javascript encodeURIComponent values</title>
    <link>http://weierophinney.net/matthew/archives/133-PHP-decoding-of-Javascript-encodeURIComponent-values.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/133-PHP-decoding-of-Javascript-encodeURIComponent-values.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=133</wfw:comment>

    

    <author>nospam@example.com (Pierre &quot;Greywacke&quot; du Toit)</author>
    <content:encoded>
    this function does not seem to make a difference, it is the same problem that i have, only different character sets. i assume this is the same proble that everyone else is having too. i get to php errors however, but it does not convert an encodeURIComponent tainted string to UTF-8 on my pc.
i tried passing the following string, &quot;Riëtte&quot; - and got &quot;RiÃ«tte&quot; inserted into the database.
thus, the encodeURIComponent tainting has not been reversed by this function. 
    </content:encoded>

    <pubDate>Mon, 15 Mar 2010 05:52:08 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/133-guid.html#c24808</guid>
    
</item>
<item>
    <title>Matthew Weier O'Phinney: Module Bootstraps in Zend Framework: Do's and Don'ts</title>
    <link>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=234</wfw:comment>

    

    <author>nospam@example.com (Matthew Weier O'Phinney)</author>
    <content:encoded>
    I made a change to the ControllerTestCase late in the 1.9 series that should help this -- if a Zend_Application instance is used as the bootstrap, dispatch() will now call $application-&gt;run(). This should ensure that everything works correctly.

If you&#039;re up-to-date with your ZF installation and still have issues with this, please open an issue in the ZF issue tracker, with a reproduce case. 
    </content:encoded>

    <pubDate>Sun, 14 Mar 2010 18:17:55 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/234-guid.html#c24807</guid>
    
</item>
<item>
    <title>Dmitry: Module Bootstraps in Zend Framework: Do's and Don'ts</title>
    <link>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=234</wfw:comment>

    

    <author>nospam@example.com (Dmitry)</author>
    <content:encoded>
    Hi, Matthew.

First of all thanks for your insightful posts - I&#039;ve been following your writings for more than a year now and it is indeed a great help in learning framework&#039;s best practices.

One thing i want to notice regarding the approach of using plugins extending Zend_Controller_Plugin_Abstract - i&#039;ve been doing so since your post on frontcontroller pugins at zend&#039;s devzone some time ago. But unfortunately i found it really hard to write tests if application/module initialization is handled in frontcontroller plugin. It seems the plugins don&#039;t get run in testing environment since we don&#039;t do application-&gt;run() and only application-&gt;bootstrap(). 

I&#039;ve asked on nabble a few times but still no response left me in confusion on how i can do testing of controllers that depend on frontcontroller plugin. So my controllers still remain untested. Maybe you can suggest something?

Dmitry. 
    </content:encoded>

    <pubDate>Sun, 14 Mar 2010 07:55:27 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/234-guid.html#c24806</guid>
    
</item>
<item>
    <title>Leonard Dronkers: Module Bootstraps in Zend Framework: Do's and Don'ts</title>
    <link>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=234</wfw:comment>

    

    <author>nospam@example.com (Leonard Dronkers)</author>
    <content:encoded>
    Hi Matthew,

Thanks for this post, it&#039;s always nice to get the info right from the source!

I have been using the standard module bootstrap class functionality to set module configuration, either through the usage of set-, and getOptions or through the usage of resource plugins (module bootstrap resource container/registry) With this I have been able to easily configure modules but I have yet to see an easy (read easier) way to access those configurations other than through:

$front = Zend_Controller_Front::getInstance();
$bootstrap = $front-&gt;getParam(&#039;bootstrap&#039;);
$this-&gt;_bootstrap = $bootstrap-&gt;getResource(&#039;modules&#039;)-&gt;offsetGet(&#039;#MODULENAME#&#039;);

$options = $this-&gt;_bootstrap-&gt;getOptions()
//...
etc.

This above is all needed to access the module bootstrap class and it&#039;s registered options and/or resources!

To me going about module configuration this way feels very intuitive plus there are no dependencies from the main application a module resides in. I Just need a better handle on it, and I am perfectly happy.

Any ideas?

Here you can see what I mean have been working on:
http://www.sreknord.net/blog/zend-framework/zend-framework-module-config-the-easy-way 
    </content:encoded>

    <pubDate>Sun, 14 Mar 2010 05:43:52 -0400</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/234-guid.html#c24805</guid>
    
</item>
<item>
    <title>Dennis Winter: Module Bootstraps in Zend Framework: Do's and Don'ts</title>
    <link>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=234</wfw:comment>

    

    <author>nospam@example.com (Dennis Winter)</author>
    <content:encoded>
    Excellent post Matthew! This article brings some light into the dark abysses of module bootstrapping!
Thanks. 
    </content:encoded>

    <pubDate>Sat, 13 Mar 2010 05:39:23 -0500</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/234-guid.html#c24804</guid>
    
</item>
<item>
    <title>Nicolas BUI: Module Bootstraps in Zend Framework: Do's and Don'ts</title>
    <link>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=234</wfw:comment>

    

    <author>nospam@example.com (Nicolas BUI)</author>
    <content:encoded>
    &quot;Why are all module bootstraps run on every request, and not just the one for the requested module?&quot;

How comes there are so many people forgetting that PHP is a script language... 
    </content:encoded>

    <pubDate>Fri, 12 Mar 2010 20:04:53 -0500</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/234-guid.html#c24803</guid>
    
</item>
<item>
    <title>Rob Bolton: Applying ACLs to Models</title>
    <link>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=201</wfw:comment>

    

    <author>nospam@example.com (Rob Bolton)</author>
    <content:encoded>
    You can use assets for this scenario (http://framework.zend.com/manual/en/zend.acl.advanced.html). For example, in the assert you can query the model to see which user originally created the document, and only allow that user to delete it. Make sure you use an updated ZF, as earlier versions did not pass in the actual model/resource into the assert (http://zendframework.com/issues/browse/ZF-1721). 
    </content:encoded>

    <pubDate>Fri, 12 Mar 2010 12:02:02 -0500</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/201-guid.html#c24802</guid>
    
</item>
<item>
    <title>Sergei Morozov: Applying ACLs to Models</title>
    <link>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=201</wfw:comment>

    

    <author>nospam@example.com (Sergei Morozov)</author>
    <content:encoded>
    Ive read a lot about Zend_Acl for last couple days, but I still cant figure out is there a way to manage access based not on role/resource names (classes) but on their instances? In other words, different instances of the same class (User) can have different relations to different instances of resource (Document). There can be merely &quot;guest&quot;, &quot;member&quot; or &quot;admin&quot; with appropriate permissions to all documents, but also a certain user is the &quot;owner&quot; of the document and has to have a separate set of relatively to it.

Ive seen a proposal for it at http://blog.felho.hu/extending-zend_acl-to-support-custom-roles-and-resources.html, but the proposed solutions store iss access rules separatelly from the model data. As a proposal, in order to cover the described case, I think, Zend_Acl_Role_Interface#getRoleId() has to accept an optional Zend_Acl_Resource_Interface argument in relation to which the role (ex. just &quot;member&quot; or &quot;owner&quot;) is determined.

Does this make sense or it can be achieved in some more simple way? 
    </content:encoded>

    <pubDate>Fri, 12 Mar 2010 10:27:49 -0500</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/201-guid.html#c24801</guid>
    
</item>
<item>
    <title>Jeffery Shipman: Login and Authentication with Zend Framework</title>
    <link>http://weierophinney.net/matthew/archives/165-Login-and-Authentication-with-Zend-Framework.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/165-Login-and-Authentication-with-Zend-Framework.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=165</wfw:comment>

    

    <author>nospam@example.com (Jeffery Shipman)</author>
    <content:encoded>
    Thanks for the tutorial.  I found that the view portion will work better if you replace &lt;?php  $this-&gt;form ?&gt; with &lt;?php echo $this-&gt;form ?&gt; 
    </content:encoded>

    <pubDate>Fri, 12 Mar 2010 10:17:49 -0500</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/165-guid.html#c24800</guid>
    
</item>
<item>
    <title>Matthew Weier O'Phinney: Applying ACLs to Models</title>
    <link>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=201</wfw:comment>

    

    <author>nospam@example.com (Matthew Weier O'Phinney)</author>
    <content:encoded>
    I&#039;m speaking in May at TekX in Chicago, and in June at the Dutch PHP Conference in Amsterdam. 
    </content:encoded>

    <pubDate>Fri, 12 Mar 2010 09:38:57 -0500</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/201-guid.html#c24799</guid>
    
</item>
<item>
    <title>Chris Vermegen: Applying ACLs to Models</title>
    <link>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=201</wfw:comment>

    

    <author>nospam@example.com (Chris Vermegen)</author>
    <content:encoded>
    Thanks!!!

btw. When/where will your next presentation be? Anywhere in Europe by any chance? 
    </content:encoded>

    <pubDate>Fri, 12 Mar 2010 09:29:47 -0500</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/201-guid.html#c24798</guid>
    
</item>
<item>
    <title>Matthew Weier O'Phinney: Applying ACLs to Models</title>
    <link>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=201</wfw:comment>

    

    <author>nospam@example.com (Matthew Weier O'Phinney)</author>
    <content:encoded>
    Yes, exactly -- $this-&gt;view-&gt;modelName = $model;

As for service layers, they&#039;re part of your domain model. I&#039;ve presented on the topic a few times; you can find my presentations at http://slideshare.net/weierophinney -- look for the slides about &quot;architecting models&quot; and &quot;play-doh&quot;. 
    </content:encoded>

    <pubDate>Fri, 12 Mar 2010 09:26:14 -0500</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/201-guid.html#c24797</guid>
    
</item>
<item>
    <title>Chris Vermegen: Applying ACLs to Models</title>
    <link>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html</link>
            <category></category>
    
    <comments>http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html#comments</comments>
    <wfw:comment>http://weierophinney.net/matthew/wfwcomment.php?cid=201</wfw:comment>

    

    <author>nospam@example.com (Chris Vermegen)</author>
    <content:encoded>
    By &#039;pass your model to the view&#039; you mean set the model to a view variable? If that is the case, I think that option would fit best in my architecture. 

I do this however from my controller since I don&#039;t really have a service layer. Any good articles (from you perhaps) where I can read about a service layer implemented in ZF? 

(Im always a bit confused on the distinction between a controller and a service layer).

Thanks for the quick reply, means a lot! 
    </content:encoded>

    <pubDate>Fri, 12 Mar 2010 09:09:24 -0500</pubDate>
    <guid isPermaLink="false">http://weierophinney.net/matthew/archives/201-guid.html#c24796</guid>
    
</item>

</channel>
</rss>