Hal Gatewood

Christian, Husband, Dad, Web Developer

Doctrine actAs is case sensitive

Posted: May 15th, 2010

After 3 hours of trying to find out why my autoloads were not working it came down to the fact that my Sluggable was sluggable. Ahhhhh.

Some lessons learned:

1. Dreamhost’s SSH is PHP4 which made my symfony CLI calls not work.
Fixed by using /usr/local/php5/bin/php symfony cc instead of php symfony cc

2. Installing PHP 5.3 on shared Dreamhost account not as easy as advertised. (was probably not needed afterall)

3.Case Sensitivity is driVING me craZy!

Soon, I’ll post a link to the new site that this was for…


Creating utf-8 tables in symfony 1.4/doctrine 1.2

Posted: May 2nd, 2010

Add this function to your ProjectConfiguration.class.php

public function configureDoctrine(Doctrine_Manager $manager)
{
  $manager->setCollate('utf8_unicode_ci');
  $manager->setCharset('utf8');
} 

via Creating utf-8 tables in symfony 1.4 /doctrine 1.2 | Connecting the dots….


The Symfony command I can never remember

Posted: August 19th, 2009
$ php symfony i18n:extract frontend fr --auto-save

The i18n:extract task finds all strings that need to be translated in fr in the frontend application and creates or updates the corresponding catalogue.

The –auto-save option saves the new strings in the catalogue. You can also use the –auto-delete option to automatically remove strings that do not exist anymore.


gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.