Ajaxify Symfony Admin Generator

This article has moved to this location.


Symfony admin generator is a great tool to simplify writing web interfaces. By simply typing php symfony propel:generate-admin backend Product you have an administration interface which a lot of features. You can filter, sort, paginate, create and edit an object without writing a single lines of code. All the features above can be customized through generator.yml. There are a variety of customizations available and you can read about those here.

In this article, i would like to show how to ajaxify symfony admin generator using jQuery.
Read More

Advertisements

sfPropelCustomSelectPlugin sample usage

This article has moved to this location.


A few days ago, i’ve made sfPropelCustomSelectPlugin, a plugin that allow to select arbitrary columns without loosing the power of Propel ORM. In this article, i would like to show you how to use the plugin in your application. This plugin was designed to work well with doSelect, doSelectJoinXXX functions and sfPropelPager class. If you are using propel 1.5 you can using ModelCriteria::select() and ModelCriteria::withColumn() together to achieve the same result (http://www.propelorm.org/ticket/1172).
I assume that you have already installed the plugin correctly.
Read More

Selecting arbitrary┬ácolumns using propel

Generally we cannot use hydrate() with a query where we specify our own select columns. Propel always assumes that statements passed to hydrate() contain the full properties for the object. But of course we can still get the object(s) by populating the statements manually.

while ($row = $stmt->fetch (PDO::FETCH_NUM))
{
   $myClass = new myClass();
   $myClass->setId($row[0]);
   ....
   $myClasses[] = $myClass;
}
return $myClasses;

But the problem will arise when we are working with sfPropelPager, because sfPropelPager only works with Object.
So, how to return the propel object(s) when we want to select only a few columns?. In this article, i would like to share my idea how to solve the problem stated above.
Read More

Creating simple excel explorer

This article has moved to this location.


In this article, i would like to show you how to create a simple excel explorer. This explorer is very simple, because an user application only able to browse or download documents (in the PDF format) that has been uploaded previously.

Read More

Creating simple image gallery using sfAssetsLibraryPlugin and sfJQueryLightboxPlugin

This article has moved to this location.


In this article, i would like to share how to create a simple image gallery in symfony using exsisting plugins. What plugins do we need? Below are list of plugins that will be used in this article :

  1. sfAssetsLibraryPlugin
  2. sfThumbnailPlugin (required by sfAssetsLibraryPlugin)
  3. sfJQueryLightboxPlugin
  4. sfJqueryReloadedPlugin (required by sfJQueryLightboxPlugin)

Read More