<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>Dave Dash</title>
 <link href="http://davedash.com/tag/plugins/atom.xml" rel="self"/>
 <link href="http://davedash.com/tag/plugins"/>
 <updated>2012-04-07T22:42:44-07:00</updated>
 <id>http://davedash.com/</id>
 <author>
   <name>Dave Dash</name>
   <email>dd+atom1@davedash.com</email>
 </author>

 
 <entry>
   <title>reusability</title>
   <link href="http://davedash.com/2008/01/30/reusability/"/>
   <updated>2008-01-30T00:00:00-08:00</updated>
   <id>http://davedash.com/2008/01/30/reusability</id>
   <content type="html">&lt;p&gt;[tags]django, plugins, apps, projects, symfony[/tags]&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;A project is a collection of settings for an instance of Django, including database configuration, Django-specific options, and application-specific settings.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.djangobook.com/en/1.0/chapter02/&quot;&gt;The Django Book, Chapter 2&lt;/a&gt;:&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;A few people have been asking for more comparisons between symfony and Django.  For me it's a great way of understanding Django and python as well as symfony and PHP.&lt;/p&gt;

&lt;p&gt;Reusability is at the core of Django, not an afterthought.  The only unique part of an app is the settings and the views.  Everything else is an application that can exist independently of your app.  It's nice and decoupled.&lt;/p&gt;

&lt;p&gt;This wouldn't be impossible to do in symfony.  Each module could be designed from the start as a plugin.  Complete with its own set of models and default templates.  The configuration of a project/app could then make the web app unique.&lt;/p&gt;

&lt;p&gt;Right now the bulk of my symfony models are tightly coupled to their apps.  It's a little confusing, but there isn't a direct correlation between Django projects, Django apps and symfony Projects, apps and modules.  Each kind of overlaps one another.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>sfBlueprintPlugin: Train of thought development</title>
   <link href="http://davedash.com/2007/08/30/sfblueprintplugin-train-of-thought-development/"/>
   <updated>2007-08-30T00:00:00-07:00</updated>
   <id>http://davedash.com/2007/08/30/sfblueprintplugin-train-of-thought-development</id>
   <content type="html">&lt;p&gt;I've been creating some dummy projects for my presentations at &lt;a href=&quot;http://symfonycamp.com/&quot;&gt;SymfonyCamp&lt;/a&gt; and decided now would be a good time to learn using the Blueprint CSS framework.  It's a bit different than YUI which I've been using heavily, but it has some potential.&lt;/p&gt;

&lt;p&gt;Of course, instead of just downloading the framework, I made &lt;a href=&quot;http://trac.symfony-project.com/trac/browser/plugins/sfBlueprintPlugin&quot;&gt;a plugin&lt;/a&gt; for symfony.  It's not much yet, but eventually I'll throw in some helpers.&lt;/p&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;

&lt;p&gt;[tags]css, symfony, blueprint, plugins, symfony camp, camp, yui[/tags]&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Facebook Markup Language: the Dashboard and Action links</title>
   <link href="http://davedash.com/2007/07/25/facebook-markup-language-the-dashboard-and-action-links/"/>
   <updated>2007-07-25T00:00:00-07:00</updated>
   <id>http://davedash.com/2007/07/25/facebook-markup-language-the-dashboard-and-action-links</id>
   <content type="html">&lt;p&gt;[tags]facebook, fbml, apps, reviewsby.us, symfony, sfFacebookPlatformPlugin, plugins[/tags]&lt;/p&gt;

&lt;p&gt;Facebook has the concept of the dashboard:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://developers.facebook.com/images/fbml_dashboard.gif&quot; alt=&quot;dashboard&quot; /&gt;&lt;/p&gt;

&lt;p&gt;In case the documentation isn't clear, these are where the top buttons for your app go.&lt;/p&gt;

&lt;p&gt;I created the FBMLHelper to help you write links from symfony to facebook.&lt;/p&gt;

&lt;p&gt;The dashboard itself is easy to create:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;fb:dashboard&amp;gt;
&amp;lt;/fb:dashboard&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The links are fairly simple, but if you use &lt;a href=&quot;http://symfony-project.com/&quot;&gt;symfony&lt;/a&gt;...  we like helpers...&lt;/p&gt;

&lt;p&gt;So the &lt;code&gt;FBMLHelper&lt;/code&gt; has an &lt;code&gt;fb_action&lt;/code&gt; method which is similar to &lt;code&gt;link_to&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;?php echo fb_action('My Dining', '@homepage') ?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Will actually render as:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;a href=&quot;http://apps.facebook.com/reviewsbyus/&quot;&amp;gt;My Dining&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Provided the &lt;code&gt;app_facebook_canvas_url&lt;/code&gt; is set to your canvas url (for example, our's is http://apps.facebook.com/reviewsbyus/).&lt;/p&gt;

&lt;p&gt;This helper takes care of routing and rewriting the URL to something that will work within Facebook's canvas.&lt;/p&gt;

&lt;p&gt;... so start writing some apps.  This plugin will be developed further and I'll try to publish tutorials whenever possible.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>sfZendPlugin</title>
   <link href="http://davedash.com/2007/04/10/sfzendplugin/"/>
   <updated>2007-04-10T00:00:00-07:00</updated>
   <id>http://davedash.com/2007/04/10/sfzendplugin</id>
   <content type="html">&lt;p&gt;[tags]Zend, Zend Search Lucene, Search, Lucene, php, symfony, zsl, plugins[/tags]&lt;/p&gt;

&lt;p&gt;I originally intended to rewrite &lt;a href=&quot;http://spindrop.us/2006/08/25/using-zend-search-lucene-in-a-symfony-app/&quot;&gt;my Zend Search Lucene tutorial&lt;/a&gt;, but &lt;a href=&quot;http://archivemati.ca/2007/03/08/zend-search-lucene-symfony-and-the-ica-atom-application/&quot;&gt;Peter Van Garderen&lt;/a&gt; covered the bulk of what's changed and I was too busy developing search functionality for &lt;a href=&quot;http://lyro.com/&quot;&gt;lyro.com&lt;/a&gt; (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.&lt;/p&gt;

&lt;p&gt;I packaged &lt;a href=&quot;http://framework.zend.com/&quot;&gt;Zend Framework&lt;/a&gt; into a &lt;a href=&quot;http://www.symfony-project.com/trac/browser/plugins/sfZendPlugin&quot;&gt;symfony plugin&lt;/a&gt;.  &lt;a href=&quot;http://symfony-project.com/&quot;&gt;symfony&lt;/a&gt; is easily extended using plugins.&lt;/p&gt;

&lt;p&gt;You can obtain this from subversion with the following command (from your &lt;code&gt;/plugins&lt;/code&gt; directory):&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;svn export http://svn.symfony-project.com/plugins/sfZendPlugin
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href=&quot;http://symfony-project.com/&quot;&gt;symfony&lt;/a&gt; has a &lt;a href=&quot;http://www.symfony-project.com/book/trunk/17-Extending-Symfony#Bridges%20to%20Other%20Framework%20Components&quot;&gt;Zend Framework Bridge&lt;/a&gt; which let's us autoload the framework by adding the following to &lt;code&gt;settings.yml&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;.settings:
  zend_lib_dir:   %SF_ROOT_DIR%/plugins/sfZendPlugin/lib
  autoloading_functions:
    - [sfZendFrameworkBridge, autoload]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;First we define &lt;code&gt;sf_zend_lib_dir&lt;/code&gt; to be in our plugin's &lt;code&gt;lib&lt;/code&gt; directory.  Then we autoload the bridge framework.&lt;/p&gt;

&lt;p&gt;After setting this up, all the Zend classes will be available and auto-loaded from elsewhere in your code.&lt;/p&gt;
</content>
 </entry>
 

</feed>

