<?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>Sat, 18 May 2013 21:16:47 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Gonzalo Ayuso: Handling several PDO Database connections in Symfony2 through the DIC in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/19007</guid>
      <link>http://www.phpdeveloper.org/news/19007</link>
      <description><![CDATA[<p>
<i>Gonzalo Ayuso</i> has <a href="http://gonzalo123.com/2013/01/07/handling-several-pdo-database-connections-in-symfony2-through-the-dependency-injection-container-with-php/">written up a new post</a> about a handling method he's worked up for working with multiple PDO instances (database connections) through the Symfony2 dependency injection container using custom YML definitions and a simple "Db" class.
</p>
<blockquote>
I'm not a big fan of ORMs, especially in PHP world when all dies at the end of each request. Plain SQL is easy to understand and very powerful. Anyway in PHP we have Doctrine. Doctrine is a amazing project, probably (with permission of Symfony2) the most advanced PHP project, but I normally prefer to work with SQL instead of Doctrine. [...] Due to my daily work I need to connect to different databases (not only one) in my applications.
</blockquote>
<p>
He shows the normal setup using the "parameters.yml" file to define the multiple database connections but notes that this isn't the most ideal solution. Instead, he walks you through the steps to create the "databases.yml" configuration file and a simple "Db" class that acts as an interface to pull the PDO objects from the container. You can then just call the "get" method on the container to extract the fully configured PDO object, ready for use.
</p>]]></description>
      <pubDate>Tue, 08 Jan 2013 11:52:40 -0600</pubDate>
    </item>
    <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[Henrik Bj&oslash;rnskov's Blog: Travis & Composer sitting in a tree K-I-S-S-I-N-G]]></title>
      <guid>http://www.phpdeveloper.org/news/17148</guid>
      <link>http://www.phpdeveloper.org/news/17148</link>
      <description><![CDATA[<p>
<i>Henrik Bj&oslash;rnskov</i> has a quick new post today showing how to combine two powerful technologies into a simple, configurable autoload system in a Symfony <a href="http://travis-ci.org/">Travis-CI</a> build with <a href="https://github.com/composer/composer">Composer</a>.
</p>
<blockquote>
To integrate your project with travis the only thing necesarry is to have a .travis.yml file and a working PHPUnit test setup like http://github.com/simplethings/SimpleThingsFormExtraBundle. Where the Tests/vendors.php script is executed before the tests are perfomed. But it would be way cooler to just have Composer handle the autoloading and dependencies. 
</blockquote>
<p>
A sample .travis.yml file is included in the post (<a href="https://gist.github.com/1366962">also here</a>) as well as instructions for grabbing dependencies and including the autoload process in your application's bootstrap.
</p>]]></description>
      <pubDate>Fri, 18 Nov 2011 11:03:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony Blog: Unit Testing your Models]]></title>
      <guid>http://www.phpdeveloper.org/news/11177</guid>
      <link>http://www.phpdeveloper.org/news/11177</link>
      <description><![CDATA[<p>
Symfony developers out there will be happy to know that, since the release of <a href="http://www.symfony-project.org/">symfony 1.1</a>, writing unit tests for your models has been made even easier.
</p>
<blockquote>
Writing unit tests for your Propel or Doctrine model is much more easier as of symfony 1.1. In this tutorial, you will learn some great tips and best practices to write better tests for your models.
</blockquote>
<p>
<a href="http://www.symfony-project.org/blog/2008/10/08/unit-testing-your-models">The tutorial</a> walks you through the creating of a simple test - evaluating a few criteria for the database contents. The entire thing is contained inside of YML files and is easily run via the sfConfig and integrated Propel functionality.
</p>]]></description>
      <pubDate>Thu, 09 Oct 2008 10:20:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Dave Dash's Blog: Dynamically adjusting your page title in symfony]]></title>
      <guid>http://www.phpdeveloper.org/news/8297</guid>
      <link>http://www.phpdeveloper.org/news/8297</link>
      <description><![CDATA[<p>
<i>Dave Dash</i> has posted a <a href="http://spindrop.us/2007/07/18/dynamically-adjusting-your-page-title-in-symfony/">quick hit</a> for symfony framework users - how to dynamically adjust your page title at your whim.
</p>
<blockquote>
A lot of the content on <a href="http://reviewsby.us/">reviewsBy.us</a> and other sites we make using <a href="http://symfony-project.com/">symfony</a> have dynamic content. We try to have our page titles reflect the content by prepending the name of the specific restaurant, document or menu item before the site name.
</blockquote>
<p>
Their path to the prize is a method, prependTitle that's included in a class (myActions.class.php) and used via it's reference in the application's app.yml file.
</p>]]></description>
      <pubDate>Fri, 20 Jul 2007 12:03:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-Coding-Practices.com: How Table Migrations In CakePHP 1.2 Can Save Your Life]]></title>
      <guid>http://www.phpdeveloper.org/news/8174</guid>
      <link>http://www.phpdeveloper.org/news/8174</link>
      <description><![CDATA[<p>
On PHP-Coding-Practices.com, <i>Tim Koschuetzki</i> has <a href="http://php-coding-practices.com/cakephp-specific/how-table-migrations-in-cakephp-12-can-save-your-life/">posted a new tutorial</a> that just might save your life - well, at least the life of your CakePHP application - using table migrations.
</p>
<blockquote>
Migrations are a wonderful technique to keep your database in sync with your code. When working on a project as a team, migrations can save your life. Please join me and get a quick introduction to migrations in CakePHP and become a happier coder.
</blockquote>
<p>
He <a href="http://php-coding-practices.com/cakephp-specific/how-table-migrations-in-cakephp-12-can-save-your-life/">starts by explaining</a> what migrations are (yml files that contain database construction/destruction information), how to execute them in your application, and how to construct your own.
</p>]]></description>
      <pubDate>Tue, 03 Jul 2007 14:36:07 -0500</pubDate>
    </item>
  </channel>
</rss>
