symfony-devs  

[symfony-devs] Re: Sf 1.1: sfZendFrameworkBridge stop to work

Dustin Whittle
Tue, 25 Mar 2008 12:41:23 -0700

Paulo,

The zend framework bridge is not needed for 1.1.. In symfony 1.1, to add
support for zend, ez, or swift, you simply need to chain the autoloaders.
This is easily done by adding an initialize method to your
project/apps/yourapp/config/yourappConfiguration.class.php, like the
following:


  /**
   * Initializes the current configuration.
   */
  public function initialize()
  {
    parent::initialize();

    /**
     * Zend Framework Autoloading
     */
    if(sfConfig::get('sf_zend_autoload', true) && ($sf_zend_lib_dir =
sfConfig::get('sf_zend_lib_dir')))
    {
      set_include_path($sf_zend_lib_dir.PATH_SEPARATOR.get_include_path());
      
require_once($sf_zend_lib_dir.DIRECTORY_SEPARATOR.'Zend'.DIRECTORY_SEPARATOR
.'Loader.php');
      spl_autoload_register(array('Zend_Loader', 'loadClass'));
    }
  }


Cheers,

Dustin


On 3/25/08 12:11 PM, "paulo_graca" <[EMAIL PROTECTED]> wrote:

> 
> Hi,
> 
> I'm trying to get sfZendFrameworkBridge to work in symfony 1.1 but i'm
> getting some erros related with the load of files.
> Witch are the steps to get zend framework integrated with symfony 1.1.
> 
> Best regards!
> > 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---