<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 21 May 2012 09:18:35 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[ServerGrove Blog: Error "Cannot find module 'less'" with Symfony2, Assetic and Twitter Bootstrap]]></title>
      <guid>http://www.phpdeveloper.org/news/17692</guid>
      <link>http://www.phpdeveloper.org/news/17692</link>
      <description><![CDATA[<p>
On the ServerGrove blog, there's <a href="http://blog.servergrove.com/2012/03/16/error-cannot-find-module-less-with-symfony2-assetic-and-twitter-bootstrap/">a quick post</a> with a handy tip for the Symfony2 + Assetic users out there - how to get it to recognize the "less" module.
</p>
<blockquote>
Unfortunately the <a href="http://symfony.com/doc/current/cookbook/assetic/asset_management.html">Symfony documentation</a> does not provide any details on how to configure Assetic to use LESS. There is <a href="http://www.dobervich.com/2011/05/10/less-css-assetic-configuration-in-a-symfony2-project/">a blog post by Dustin Dobervich</a> that gives some pointers, but after following the instructions, Assetic issued the following error: Cannot find module 'less'. We searched around without much success. After several tries, we nailed the configuration.
</blockquote>
<p>
It's an easy two-step process: first you be sure you have "npm" (the package manager) installed on your system, then you modify your Symfony app.yml file to point to the Node modules path.
</p>]]></description>
      <pubDate>Mon, 19 Mar 2012 12:36:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pascal Opitz's Blog: An example of how to use Pimple DI with ZF 1.x]]></title>
      <guid>http://www.phpdeveloper.org/news/17682</guid>
      <link>http://www.phpdeveloper.org/news/17682</link>
      <description><![CDATA[<p>
<i>Pascal Opitz</i> has a really quick post to his blog showing a snippet of code about <a href="http://blog.pascalopitz.com/post/An-example-of-how-to-use-Pimple-DI-with-ZF-1-x">using Pimple with the Zend Framework 1</a>.
</p>
<blockquote>
After having had a look at Silex, and struggling with the somewhat cumbersome ini configurations and YADIF, I wanted to try out whether I could use Pimple as DI container for ZF 1.x Turns out I can, as you can just select Pimple to be the bootstrap container.
</blockquote>
<p>
Hsi example (<a href="https://gist.github.com/2043711">gist of the code here</a>) also shows how to subclass the container and add in some default settings objects into the container. <a href="https://github.com/fabpot/Pimple">Pimple</a> is a small, lightweight dependency injection container from <i>Fabien Potencier</i> of the Symfony framework.
</p>]]></description>
      <pubDate>Fri, 16 Mar 2012 08:30:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Module specific bootstrapping in ZF2]]></title>
      <guid>http://www.phpdeveloper.org/news/17646</guid>
      <link>http://www.phpdeveloper.org/news/17646</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has a new post to his blog today looking at <a href="http://akrabat.com/zend-framework-2/module-specific-bootstrapping-in-zf2/">bootstrapping specific modules</a> in a Zend Framework 2-based application without having to do the entire set.
</p>
<blockquote>
Following on from the <a href="http://akrabat.com/zend-framework-2/modules-in-zf2/">discussion on modules</a>, we can hook into the event system to do module specific bootstrapping. By this, I mean, if you have some code that you want to run only if the action to be called is within this module, you can hook into the Application's dispatch event to achieve this.
</blockquote>
<p>
He starts with an example of a basic module (Simple/Module.php) and shows how to define an "onBootstrap" method that calls the "onDispatch" method (when hooked to the event manager) to do some module-specific bootstrap operations. The RouteMatch feature is used to ensure that you're in the right controller/namespace combo to use the module.
</p>]]></description>
      <pubDate>Thu, 08 Mar 2012 10:04:20 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Bertrand Mansion's Blog: Twitter Bootstrap and the QuickForm2 Callback Renderer]]></title>
      <guid>http://www.phpdeveloper.org/news/16908</guid>
      <link>http://www.phpdeveloper.org/news/16908</link>
      <description><![CDATA[<p>
In a new post <i>Bertrand Mansion</i> shows <a href="http://mansion.im/2011/twitter-bootstrap-and-the-quickform2-callback-renderer/">how he combined</a> the versatility of the PEAR <a href="http://pear.php.net/package/HTML_QuickForm2">QuickForm2</a> package and the <a href="http://twitter.github.com/bootstrap/">Bootstrap project</a> from Twitter to quickly make a form using the project's styling (CSS).
</p>
<blockquote>
I don't know about you, but for me building HTML Forms and styling HTML Forms are maybe the most boring things in web development. It's repetitive and takes a lot of time to do things correctly. That's why tools like Twitter's Bootstrap and PEAR's HTML_QuickForm2 can help with this part of our job. Wouldn't it be nice to have QuickForm2 generate a markup compatible with Bootstrap CSS, so that you could get a nice looking form without to much efforts? Well, that's what I plan to do here.
</blockquote>
<p>
He starts by creating a simple QuickForm2 form with no renderers attached (no pre-defined styles) and a custom render callback that wraps the items in "div" tags with the correct styles. There's also a custom renderer included for grouping items with additional styling attached.
</p>]]></description>
      <pubDate>Mon, 26 Sep 2011 12:23:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Steve Francia's Blog: Getting Started with Symfony2]]></title>
      <guid>http://www.phpdeveloper.org/news/16033</guid>
      <link>http://www.phpdeveloper.org/news/16033</link>
      <description><![CDATA[<p>
<i>Steve Francia</i> has posted a follow-up to his "<a href="http://phpdeveloper.org/news/15852">On Symfony2</a>" post to his blog today with <a href="http://spf13.com/post/getting-started-with-symfony2">an introduction to the framework</a> that helps you get everything installed you'll need.
</p>
<blockquote>
In a follow up to my popular post <a href="http://spf13.com/post/symfony2">on Symfony2</a>, the open source PHP framework we use at <a href="http://shopopensky.com/">OpenSky</a>, I'm providing an easy guide to getting started using <a href="http://symfony.com/">Symfony2</a>. This isn't your basic "Hello World", but a practical guide to beginning a project with Symfony2.
</blockquote>
<p>
He walks you through bootstrapping a sample application, applying a fix those on OSX might need and creating the application using the symfony command line tool to build everything you'll need.
</p>]]></description>
      <pubDate>Fri, 11 Mar 2011 11:03:08 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: ZendCon Sessions Episode 38: Reusable Bootstrap Resources with Zend_Application]]></title>
      <guid>http://www.phpdeveloper.org/news/15933</guid>
      <link>http://www.phpdeveloper.org/news/15933</link>
      <description><![CDATA[<p>
New on the Zend Developer Zone today is the latest podcast in their "ZendCon Sessions" series (as recorded at the <a href="http://zendcon.com">Zend/PHP Conference 2010</a> in Santa Clara, CA). In <a href="http://devzone.zend.com/article/13061-ZendCon-Sessions-Episode-038-Reusable-Bootstrap-Resources-with-Zend_Application">this episode</a> <i>Hector Virgen</i> talks about creating reusable bootstrap resources with the Zend_Application component of the Zend Framework.
</p>
<p>
His talk introduces you to bootstrapping, shows how to get started with Zend_Tool and shares code and configuration details for using resources in your controllers.
</p>
<p>
You can listen to this latest episode either through the <a href="http://devzone.zend.com/article/13061-ZendCon-Sessions-Episode-038-Reusable-Bootstrap-Resources-with-Zend_Application">in-page player</a>, by <a href="http://devzone.zend.com/content/audio/zendcon_sessions/zendcon_sessions_podcast_038.mp3">downloading the mp3</a> or by subscribing to one of <a href="http://feeds.feedburner.com/zendcon_sessions?format=xml">their</a> <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=310085132">feeds</a>. The slides are <a href="http://www.slideshare.net/djvirgen/reusable-bootstrap-resources-zend-con-2010">also on Slideshare</a> if you'd like to follow along.
</p>]]></description>
      <pubDate>Mon, 21 Feb 2011 10:40:35 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Using your own View object with Zend_Application]]></title>
      <guid>http://www.phpdeveloper.org/news/15913</guid>
      <link>http://www.phpdeveloper.org/news/15913</link>
      <description><![CDATA[<p>
In the latest post to his blog <i>Rob Allen</i> shows you how to <a href="http://akrabat.com/zend-framework/using-your-own-view-object-with-zend_application/">create a custom View object</a> for your Zend Framework application with the help of the Zend_Application component. It uses one of two ways to set up this custom view object - either in the bootstrap or as a custom resource.
</p>
<blockquote>
Let's say that you want to use your own view object within your Zend Framework application. Creating the view object is easy enough in library/App/View.php along with adding the App_ namespace to the the autoloader in application.ini. All we need to now is get Zend_Application to bootstrap with our new view class. There are two ways of doing this: within Bootstrap.php or using a custom resource.
</blockquote>
<p>
He includes the code to make it happen both ways - by adding an _initView method in the application's Bootstrap.php file or by creating a new class called App_Resource_View that overrides the getView() method that grabs the custom object.
</p>]]></description>
      <pubDate>Wed, 16 Feb 2011 10:38:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Tom Van Herreweghe's Blog: Running Zend Framework modules from a Phar file]]></title>
      <guid>http://www.phpdeveloper.org/news/15878</guid>
      <link>http://www.phpdeveloper.org/news/15878</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Tom Van Herreweghe</i> shares his method for running <a href="http://blog.theanalogguy.be/2011/02/07/running-zend-framework-modules-from-a-phar-file/">Zend Framework modules from a phar file</a>, a simple archiving method native to PHP that makes it simpler to group and package related files.
</p>
<blockquote>
Using <a href="http://blog.theanalogguy.be/framework.zend.com">Zend Framework</a> as an MVC application is probably the most common usage examples for Zend Framework. When you create such an MVC application, you will probably have heard about modules: reusable components of your application. [...]  In my case, I usually just copy and paste the module from one base project into a new project. That's easy. But it would be cooler to package your module as a <a href="http://php.net/manual/en/book.phar.php">Phar file</a>, and run that file instead.
</blockquote>
<p>
He includes the code that can be dropped into your Zend Framework installation - MyLib_Application_Resource_Modules - that handles the bootstrapping of the phar files and executes the Boostrap.php file that it finds inside. He also points to <a href="http://blog.calevans.com/2009/07/26/packaging-zend-framework-as-a-phar-revisited/">this other article</a> from <i>Cal Evans</i> about working with phar files in the Zend Framework.
</p>]]></description>
      <pubDate>Wed, 09 Feb 2011 10:42:18 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: Loading custom module plugins]]></title>
      <guid>http://www.phpdeveloper.org/news/14822</guid>
      <link>http://www.phpdeveloper.org/news/14822</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has a <a href="http://robertbasic.com/blog/loading-custom-module-plugins/">quick new post</a> to his blog today showing how to load custom module plugins in your Zend Framework application.
</p>
<blockquote>
I was trying to load a Front Controller plugin which resides in app/modules/my_module/controllers/plugins/  and not in the 'usual' lib/My_App/Plugin/. I want this plugin to be called in every request and I want the plugin file to be under it's 'parent' module.
</blockquote>
<p>
To solve the problem he added a path to the Zend_Application_Module_Autoloader as a resource and registered it in the front controller. He includes some code to show how it works - a simple bootstrap with two _init functions, one for the news autoloading and another for plugins.
</p>]]></description>
      <pubDate>Tue, 20 Jul 2010 14:04:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Module Bootstraps in Zend Framework: Do's and Don'ts]]></title>
      <guid>http://www.phpdeveloper.org/news/14178</guid>
      <link>http://www.phpdeveloper.org/news/14178</link>
      <description><![CDATA[<p>
<i>Matthew Weier O'Phinney</i> as a new post to his blog today looking at <a href="http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html">a few "do's" and "dont's"</a> when it comes to working with module boostraps in your Zend Framework applications - an apparently somewhat confusing topic for several developers out there.
</p>
<blockquote>
In Zend Framework 1.8.0, we added Zend_Application, which is intended to (a) formalize the bootstrapping process, and (b) make it re-usable. One aspect of it was to allow bootstrapping of individual application modules -- which are discrete collections of controllers, views, and models. 
</blockquote>
<p>
He talks briefly about why module boostraps are run on every request (getting into some detail on Zend_Application), how you can properly set up your boostrapping process and how you can use plugins to initialize only the things you might need and, as he openly admits, that there's just not a really good way to handle this sort of module funcionality.
</p>]]></description>
      <pubDate>Fri, 12 Mar 2010 14:48:22 -0600</pubDate>
    </item>
  </channel>
</rss>

