All pastes #260466 Raw Edit

Anonymous

public text v1 · immutable
#260466 ·published 2006-11-28 11:59 UTC
rendered paste body
<?php
class myUtf8ConnectionFilter extends sfFilter
{
  public function execute($filterChain)
  {
    if($this->isFirstCall()) {
        $con = Propel::getConnection();
        if ($con){
           $con->executeQuery("set names utf8");
        } else {
          throw new Exception();
        }
    }
    
    $filterChain->execute();
  }
}