Serverside

Setting up a Symfony project - the official way, and then some

Posted in Serverside on October 7th, 2009 by Erland – Be the first to comment

After having tried several different ways of installing/setting up Symfony projects, I have settled for what is more or less the official “best practice”, as suggested by the makers of Symfony. For the purpose of clarity, I will use the example c:\demosite in the following explanation. The example is based on an installation on Windows XP, but can be adapted to suit OSX.

  1. Create the project folder c:\demosite
  2. Create the subfolder(s) c:\demosite\lib\vendor
  3. In the vendor folder, do a SVN checkout http://svn.symfony-project.com/branches/1.2/ => c:\demosite\lib\vendor\symfony. You should now have a single symfony folder in your vendor folder
  4. From the project root c:\demosite, run the following command: lib\vendor\symfony\data\bin\symfony generate:project demosite. You may or may not have to prefix this command with php, depending on your setup.
  5. From now on, you can use the command short cut symfony from the project’s root folder.

TIP#1:

Copy the file c:\demosite\lib\vendor\symfony\data\bin\symfony.bat to the project’s root folder, and rename it sf.bat. You now have an even shorter command sf at your disposal. Test it by typing sf -V.

TIP#2:

Change the following in the project’s configuration class:

//c:\demosite\config\ProjectConfiguration.class.php
require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';

TIP#3

If you use SVN to maintain your project, you can use svn:externals to embed the Symfony library in your lib\vendor folder, thus benefiting from the updates to this particular branch.

For more information, visit the official Symfony site

SWFUpload - a nice widget for multiple file uploads

Posted in Serverside, XHTML / JavaScript / CSS on October 2nd, 2009 by Erland – Be the first to comment

Get your fix here

Sexy single file upload widget gizmo thing-a-ma-jig

Posted in Serverside, XHTML / JavaScript / CSS on July 2nd, 2009 by Erland – Be the first to comment

A very nice upload widget. Check it out.

New release of sfAmfPlugin

Posted in Serverside on May 7th, 2009 by Erland – Be the first to comment

Plugin to handle AMF requests from Flex frontends. The plugin is currently based on the SabreAMF library. It makes the development and integration of Services easy.

Check it out

Latest version: 1.4.2 (2009-08-05)

Google Analytics API in public beta

Posted in Serverside, XHTML / JavaScript / CSS on April 22nd, 2009 by Erland – Be the first to comment

Google has just released the public beta of their API. Javascript and Java libraries are already available, and support for other languages are in development. This certainly opens up for tailor made statistics solutions for clients, project managers and consultants.

More information @ TechCrunch

Wordpress plugins for multilingual content

Posted in Serverside on April 15th, 2009 by Erland – Be the first to comment

Two plugins seem to stand out from the crowd:

qTranslate and xLanguage.

Have a look-see, and decide for yourself.

Silverlight development with PHP

Posted in Miscellaneous, Serverside on March 26th, 2009 by Anders – Be the first to comment

Thinkvitamin has a nice article outlining how to develop a backend for  Silverlight with PHP.

read more »