In the php.ini file In your php.ini file search for memory_limit property and modify it like bellow: memory_limit = 128M In the .htaccess file In your .htaccess file add the instructions bellow, changing the value for the memory (expressed in …
Function: Check if string is numeric in Oracle
How to: Disable output escaping in action or template
Disabling escaping for action output can be done by setting the configuration value for output escaping to false as described bellow: // actions.class.php class escapedActions extends sfActions { { public function executeMyAction() { sfConfig::set(‘sf_escaping_strategy’, false); } } In the template …
How to: Manually add symfony plugin to your project
Download plugin package Unzip package to /plugins directory Enable the plugin by hand in ProjectConfiguration.class.php as described bellow // config/ProjectConfiguration.class.php class ProjectConfiguration extends sfProjectConfiguration { public function setup() { $this->enablePlugins(‘YourPluginName’); } }
How to: Propel select with 2 joins on the same table
$c = new Criteria(); $c->addAlias(‘alias1′, Table1Peer::TABLE_NAME); $c->addAlias(‘alias2′, Table1Peer::TABLE_NAME); $c->addJoin(Table1Peer::alias(‘alias1′, Table1Peer::FK1), Table2Peer::ID, Criteria::LEFT_JOIN); $c->addJoin(Table1Peer::alias(‘alias2′, Table1Peer::FK2), Table2Peer::ID, Criteria::LEFT_JOIN); $results = Table1Peer::doSelect($c);
Recent Comments