コード例 #1
0
ファイル: i18nTest.php プロジェクト: ajith24/ajithworld
 public function getContext($forceReload = false)
 {
     parent::getContext($forceReload);
     sfPropel::initialize($this->context->getEventDispatcher());
     return $this->context;
 }
コード例 #2
0
<?php

/*
 * This file is part of the symfony package.
 * (c) 2004-2006 Fabien Potencier <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
/**
 * Autoloading and initialization for propel.
 *
 * @package    symfony
 * @subpackage propel
 * @author     Fabien Potencier <*****@*****.**>
 * @version    SVN: $Id: sfPropelAutoload.php 12170 2008-10-13 16:35:40Z Kris.Wallsmith $
 */
sfToolkit::addIncludePath(realpath(dirname(__FILE__) . '/../vendor'));
require_once 'propel/Propel.php';
sfPropel::initialize(sfProjectConfiguration::getActive()->getEventDispatcher());