Our Blog

News, thoughts & useful links

Contact: Skype , email or call
+44 (0) 131 556 6818

Posts Tagged ‘symfony’

Resolve a path error in Symfony2 when using MAMP under OSX Lion

Symfony2, MySQL and MAMPYou have installed and configured your Symfony2 project, added the Entity classes, prepared everything for persisting them into a database and, bam, you end up with the following error message after executing “php app/console doctrine:database:create” the command prompt:

Read more about Resolve a path error in Symfony2 when using MAMP under OSX Lion »

Class ‘Array’ not found error, sfCombineFilterPlugin in Symfony 1.0.x

If you are getting a “Class ‘Array’ not found” error when using sfCombineFilterPlugin then a quick fix would be to make the “filters.yml” file look like the following:

Read more about Class ‘Array’ not found error, sfCombineFilterPlugin in Symfony 1.0.x »

Setting up Symfony to use Exim instead of Sendmail

By default Symfony uses Sendmail mail transfer agent to prepare emails to be sent out by the system. If you want to use Exim instead, you need to:

Read more about Setting up Symfony to use Exim instead of Sendmail »

Symfony Notice: “Undefined offset: 0 in /symfony/util/Spyc.class.php”

If you are getting this notice “Undefined offset: 0 in /symfony/util/Spyc.class.php” in Symfony (especially after you clear your cache) check your yml files. You are most likely missing a colon somewhere or have some other error.

Read more about Symfony Notice: “Undefined offset: 0 in /symfony/util/Spyc.class.php” »

Basic guide to using Null and Not Null in Propel queries

Here is a quick hint on how to use Propel and its Criteria class to generate queries that need to have Null or Not Null in WHERE clauses:

Read more about Basic guide to using Null and Not Null in Propel queries »

Symfony: Ajax.Autocompleter is not a constructor

If you use Symfony and its Autocomletion feature, you may get the following error: "Ajax.Autocompleter is not a constructor"

Read more about Symfony: Ajax.Autocompleter is not a constructor »

Convert Propel object to Array

To convert a Propel object (a database row representation) to a normal array use the following:

Read more about Convert Propel object to Array »