Install PHPUnit on Leopard


sudo su

pear channel-discover pear.phpunit.de

pear install phpunit/PHPUnit

# you can find (/usr/lib/php/pear/PHPUnit)

cd /private/etc

cp php.ini.default php.ini

vim php.ini

find include_path, and change the value to “.:/usr/lib/php/pear”

Tags:

[Mac] Upgrade to Leopard


[Symfony] retrieve fromArray function in baisc model


Once time I wanted to use fromArray function which had created in a model by default, but I can’t find it anywhere. At last I know the reason.

In config/propel.ini, normally it will display :

propel.addGenericAccessors = true
propel.addGenericMutators = true

But if you delete these, fromArray function will not be added when we create a new model. And I find other functions like toArray will not be added either.

Tags:

Hello, Leopard!


After the last updating for my macbook, we can say hello to Leopard today.

Updating details as follows:

  • iDVD version 6.0.4
  • iLife version 8.1.1
Tags:

[Symfony] Propel Criteria Note


When we want to use a sql to get rows between two dates, we can use like this:
$crit1 = $c->getNewCriterion( AppEventPeer::CREATED_AT, $end, Criteria::LESS_THAN );
$crit2 = $c->getNewCriterion( AppEventPeer::CREATED_AT, $start, Criteria::GREATER_THAN );
$crit1->addAnd( $crit2 );
$c->add( $crit1 );

Tags:

Previous Articles

ERA


[TextMate] Move project drawer to right


[WordPress] upgrade to 2.3 Release Candidate 1


[Symfony]Does not work under ‘prod’ on Mac


RoR Install On Ubuntu


I'm Caibaohua

26 years old, living in Shanghai.My job is php developer and like most is to play TV games