[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/addon/bridge/ -> sfZendFrameworkBridge.class.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of the symfony package.
   5   * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
   6   *
   7   * For the full copyright and license information, please view the LICENSE
   8   * file that was distributed with this source code.
   9   */
  10  
  11  if (sfConfig::get('sf_zend_lib_dir'))
  12  {
  13    set_include_path(sfConfig::get('sf_zend_lib_dir').PATH_SEPARATOR.get_include_path());
  14    require_once(sfConfig::get('sf_zend_lib_dir').'/Zend.php');
  15  }
  16  else
  17  {
  18    require_once('Zend.php');
  19  }
  20  
  21  /**
  22   * This class makes easy to use Zend Framework classes within symfony
  23   *
  24   * @package    symfony
  25   * @subpackage addon
  26   * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
  27   * @version    SVN: $Id: sfZendFrameworkBridge.class.php 1415 2006-06-11 08:33:51Z fabien $
  28   */
  29  class sfZendFrameworkBridge
  30  {
  31    public static function autoload($class)
  32    {
  33      try
  34      {
  35        Zend::loadClass($class);
  36      }
  37      catch (Zend_Exception $e)
  38      {
  39        return false;
  40      }
  41  
  42      return true;
  43    }
  44  }


Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7