sfZendPlugin

by Dave Dash 10Apr07

[tags]Zend, Zend Search Lucene, Search, Lucene, php, symfony, zsl, plugins[/tags]

I originally intended to rewrite my Zend Search Lucene tutorial, but Peter Van Garderen covered the bulk of what's changed and I was too busy developing search functionality for lyro.com (not to mention finding inconsistencies with the Zend Search Lucene port and Lucene) to finish the tutorial. So I broke it up into smaller pieces.

I packaged Zend Framework into a symfony plugin. symfony is easily extended using plugins.

You can obtain this from subversion with the following command (from your /plugins directory):

svn export http://svn.symfony-project.com/plugins/sfZendPlugin

symfony has a Zend Framework Bridge which let's us autoload the framework by adding the following to settings.yml:

.settings:
  zend_lib_dir:   %SF_ROOT_DIR%/plugins/sfZendPlugin/lib
  autoloading_functions:
    - [sfZendFrameworkBridge, autoload]

First we define sf_zend_lib_dir to be in our plugin's lib directory. Then we autoload the bridge framework.

After setting this up, all the Zend classes will be available and auto-loaded from elsewhere in your code.


Where am I?

This is a single entry in the weblog.

"sfZendPlugin" is filed under programming and symfony. It was published in April 2007.

April 2007
M T W T F S S
« Mar   May »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

need more help

If you found our tutorials and articles to be useful, but are still looking for more hands on help, consider hiring us. Find out more about how Spindrop can help you.

 

11 Responses to “sfZendPlugin”


  1. 1 Marc Köhlbrugge Posted April 10th, 2007 - 8:43 pm

    I wasn’t sure what the sfZendPlugin did, but now I understand. It’s the Zend library itself. Perhaps you could add some explanation to the wiki ( http://trac.symfony-project.com/trac/wiki/SymfonyPlugins ).

  2. 2 Dave Dash Posted April 10th, 2007 - 8:48 pm

    You bet!

  3. 3 Marc Köhlbrugge Posted April 10th, 2007 - 8:51 pm

    That was fast :)

  4. 4 Dave Dash Posted April 10th, 2007 - 8:53 pm

    If I didn’t do it now, it’d never get done ;)

  5. 5 Dystopia Posted June 8th, 2007 - 9:55 am

    What are the performance overheads of merging the zend framework into symfony? Am I understanding this correctly, you are in effect merging the two frameworks into one? or rather just making the classes available on demand?

  6. 6 Dave Dash Posted June 8th, 2007 - 10:12 am

    Dystopia,

    This just makese the classes available on demand. It’s really just providing the library, and documentation on how to use the bridge that’s part of symfony.

    I think the intent of both frameworks is too different to be merged, but Zend lends itself to being easily compartmentalized. For example it’s very simple to integrate the Zend Search Lucene into a symfony app.

  7. 7 Jesse Posted July 20th, 2007 - 12:11 pm

    FYI: if you’re using symfony 1.0.5 you will need to read this ticket on the symfony site and apply the fix: http://trac.symfony-project.com/trac/ticket/1941

    Jesse.

Who's linking?

  1. 1 sfZendPlugin « Le blog de Skateek Pingback on Apr 11th, 2007
    "[...] hésitais entre Symfony et Zend ? Je te présente le plugin Zend pour Symfony : sfZendPlugin (lien du plugin ... "
  2. 2 developercast.com » Spindrop.us: sfZendPlugin (a Zend Framework plugin for Symfony) Pingback on Apr 12th, 2007
    "[...] a new post to the SpinDrop blog, Dave Dash talks about his integration of the Zend Framework into a ... "
  3. 3 sfZendPlugin? at Dev Imperium Pingback on Apr 13th, 2007
    "[...] and I definitely want to make use of them where applicable.  But embedding the Zend Framework as a plugin ... "
  4. 4 The Lucene Search Index and symfony at Spindrop Pingback on Apr 23rd, 2007
    "[...] article is meant to followup sfZendPlugin where we learn a newer way of obtaining the Zend [...] "

Further Help

If you require more hands on assistance, we do offer affordable hands on support.

Leave a Reply


Comment guidelines: No spamming, no profanity, and no flaming. Inappropriate comments will be deleted outright.