Symfony-framework.com https://www.symfony-framework.com Symfony Framework answers, snippets and news Fri, 04 Jul 2008 05:50:31 +0000 http://wordpress.org/?v=2.3 en Will you use Symfony 1.1 or will you wait for Symfony 1.2? https://www.symfony-framework.com/2008/07/02/do-you-will-use-symfony-11-or-do-you-will-wait-for-symfony-12/ https://www.symfony-framework.com/2008/07/02/do-you-will-use-symfony-11-or-do-you-will-wait-for-symfony-12/#comments Wed, 02 Jul 2008 10:00:25 +0000 admin https://www.symfony-framework.com/2008/07/02/do-you-will-use-symfony-11-or-do-you-will-wait-for-symfony-12/ After more than a year in development, the longly awaited 1.1 version is finally out.

Many blogs wrote with positivity about this release, describing all its new features.

I’have been using Symfony 1.1 from RC1 and I noticed that all developers work is behind the scene, as Fabien say, Symfony 1.1 is a very special framework release.

Furthermore, Symfony 1.2 is on the road ( October 2008), yesterday Fabien started the 1.2 branch and showed in a blog all new symfony 1.2 planned features.

Among all new 1.2 features, the most important and the must-have is the new admin generator with new form framework support.

I will update projects to symfony 1.1 framework, using sfCompat10Plugin, but I will not use the new form subframework in my coming projects until symfony 1.2 will not be released.

Symfony 1.1 has been released, but documentation in insufficient and very poor about form subframework and new features.

I suggest developers that have to respect a project budget, to wait for a little more of documentation and to use symfony 1.1 features for investigations and studies.

This is my humble opinion.

What do you think about this?

Congratulations to the developers team.

Read more if you want to read about new symfony 1.1 features.

Best regards.
Mauro Casula.

(more…)

]]>
https://www.symfony-framework.com/2008/07/02/do-you-will-use-symfony-11-or-do-you-will-wait-for-symfony-12/feed/
sfSWFUpload Plugin for Symfony https://www.symfony-framework.com/2008/06/27/sfswfupload-plugin-for-symfony/ https://www.symfony-framework.com/2008/06/27/sfswfupload-plugin-for-symfony/#comments Fri, 27 Jun 2008 11:57:13 +0000 admin https://www.symfony-framework.com/2008/06/27/sfswfupload-plugin-for-symfony/ sfSWFUpload Plugin for Symfony

I published my first symfony plugin in symfony plugin trac.
This plugin offers helpers that permit simple use and configuration of SWFUpload.

SwfUpload is a combination of JavaScript and Flash that provides advanced browser upload control.

SWFUpload Features:
* Multiple File Selection
* File Upload Progress
* Custom Limits for File Size and Number of Uploads
* Filter by File Type ie. *.jpg
* File Queue
* Customize the Browse Control
* Degrades Gracefully

More info over SWFUpload:
http://swfupload.org/
http://code.google.com/p/swfupload/

You can use this plugin with included upload action: SWFUpload/upload (very simple example )
or you can develop your own upload action.

sfThumbnailPlugin is required from included sfSWFUpload/upload action.

Download and installation instructions are here: http://trac.symfony-project.com/wiki/sfSWFUploadPlugin

This plugin was tested against Symfony version 1.0.7 - 1.0.16

If you have any questions or feedback feel free to contact me at maurocasula at gmail.com.

Best Regards.
Mauro Casula.
www.symfony-framework.com

(more…)

]]>
https://www.symfony-framework.com/2008/06/27/sfswfupload-plugin-for-symfony/feed/
Speed symfony developing with eclipse snippets templates. https://www.symfony-framework.com/2008/06/03/speed-symfony-developing-with-eclipse-snippets-templates/ https://www.symfony-framework.com/2008/06/03/speed-symfony-developing-with-eclipse-snippets-templates/#comments Tue, 03 Jun 2008 10:22:48 +0000 admin https://www.symfony-framework.com/2008/06/03/speed-symfony-developing-with-eclipse-snippets-templates/ Eclipse Templates are a structured description of coding patterns that reoccur in source code.
Eclipse allows you to define templates for commonly used constructs, allowing you to insert them using the content assist tool (Ctrl+Space).

Even if Symfony successfully apply the Don’t Repeat Yourself (DRY) principle, many times, during developing, you have to write many times the same code snippet.

For example, select all record in a propel object:

$c = new Criteria();
$objects = PropelObjectPeer::doSelect($c);

In this article I would like to show you how to create Symfony code templates with Eclipse PDT.

Mauro Casula
Symfony-Framework.com

(more…)

]]>
https://www.symfony-framework.com/2008/06/03/speed-symfony-developing-with-eclipse-snippets-templates/feed/
Criteria snippets, tools, links and suggestions https://www.symfony-framework.com/2008/06/01/criteria-snippets-tools-links-and-suggestions/ https://www.symfony-framework.com/2008/06/01/criteria-snippets-tools-links-and-suggestions/#comments Sun, 01 Jun 2008 11:34:21 +0000 admin https://www.symfony-framework.com/2008/06/01/criteria-snippets-tools-links-and-suggestions/ As many of you know, if you want to get something from database via Symfony you should build a query with help of Criteria() object.

Criteria class is a magic part of Propel and it works pretty well with easy queries.

But with custom joins, select distinct, complex criterion, subqueries, “custom group by” queries, it’s not so simple.

In this article, I will show you a collection of snippets, tools, links and suggestions about Criteria building.

As always, I wish you “a good read” and I ask you to send me bits of code and suggestions.. ;)

I will add them in this article.

Best Regards.
Mauro Casula
Symfony-Framework.com

(more…)

]]>
https://www.symfony-framework.com/2008/06/01/criteria-snippets-tools-links-and-suggestions/feed/
Themes management system with symfony - step by step tutorial https://www.symfony-framework.com/2008/05/22/themes-management-system-with-symfony-step-by-step-tutorial/ https://www.symfony-framework.com/2008/05/22/themes-management-system-with-symfony-step-by-step-tutorial/#comments Thu, 22 May 2008 14:24:50 +0000 admin https://www.symfony-framework.com/2008/05/22/themes-management-system-with-symfony-step-by-step-tutorial/ After many many busy days, I finally have the time to write something usefull for all the symfony comunity and for all the programmers trying to learn this fantastic php5 framework.

This tutorial explains how to develop a themes management system in wordpress style with symfony.

My purpose is to give you a base and some ideas; so I haven’t written an heavy and very difficult to read tutorial but a very simple, step by step tutorial, from which you can learn and get ideas.

You can also download this modified sf sandbox themes administration management in which is included:

- adminThemes ( a basic themes administration system that uses sfSetting plugin )
- the tutorial example
- 3 themes ( the tutorial theme + 2 Studio7designs templates themes )
- sfSettings plugin (last version)

In the sf_sandbox_theme_management, I included a rudimentary themes administration system that uses sfSettings and permit to choose a theme and watch a preview of your site in a prototype window.

For installation info read at the bottom of this tutorial.

Good read.

I hope many of you will send me critics, suggestions or ideas.

Mauro Casula
SymfonyFramework.com

(more…)

]]>
https://www.symfony-framework.com/2008/05/22/themes-management-system-with-symfony-step-by-step-tutorial/feed/
Sweetie icons for Symfony Administration https://www.symfony-framework.com/2007/12/28/sweetie-icons-for-symfony-administration/ https://www.symfony-framework.com/2007/12/28/sweetie-icons-for-symfony-administration/#comments Fri, 28 Dec 2007 17:18:21 +0000 admin https://www.symfony-framework.com/2007/12/28/sweetie-icons-for-symfony-administration/ From sweetie.sublink.ca I have prepared for you a little collection of icons for your auto generated administration.

The package is ready to use. You only have to extract the zip archive Sweetie Icons over your:

/web/sf/sf_admin/images and enjoy with a new set of icons.

Very soon I will post an article with differents Style Sheets for the Propel administration.

If you want the original PSD, you can visit the athor site: http://sweetie.sublink.ca/ and download the Sweetie-BasePack-v3.

That collection is licenced under a Creative Commons licence, therefore commercial use is allowed.

Mauro Casula
symfony-framework.com

]]>
https://www.symfony-framework.com/2007/12/28/sweetie-icons-for-symfony-administration/feed/
Symfony 1.1: Form helpers are deprecated https://www.symfony-framework.com/2007/12/21/symfony-11-form-helpers-are-deprecated/ https://www.symfony-framework.com/2007/12/21/symfony-11-form-helpers-are-deprecated/#comments Fri, 21 Dec 2007 20:12:33 +0000 admin https://www.symfony-framework.com/2007/12/21/symfony-11-form-helpers-are-deprecated/ Symfony 1.1 release is very near.

Fabien created a new branch in svn repository called branches/1.1.

He explain that if you are planning to develop a new application compatible with symfony 1.1, you must swich from trunk/ to /banches/1.1.

The trunk will host the future 1.2 release and will be instable in the next weeks.

Meanwhile I have found in the wiki an interesting article over the future of the Helpers in the new Symony release.

As I anticipated in a previous article, template Helpers will be available in Symfony 1.1 by setting compat_10 = true. Template helpers will be included in sfCompat10Plugin.

In the wiki there are also others news:

- Form helpers are deprecated and replaced by the new form/validation/widget framework.

- Javascript helper is completely deprecated and won’t have equivalent in Symfony 1.1.

Symfony developers want to give us the possibility to use our preferred JavaScript Library, so Prototype/script.aculo.us won’t be included in Symfony 1.2.

- Object Helpers will disappear. Using Propel Forms we’ll have the same functionalities.

- Text Helpers are deprecated and will not be included in the core framework.

I’m uncertain about to rewrite parts of my projects using the new Symfony 1.1 functionalities and cleaning the templeates from the deprecated helpers or to use the compat_10 = true parameter and avoid me all that work.

I think that for relatively small projects, with few growth possibilities, I will simply use the parameter compat_10 = true.

For new projects and for existent and expanding web applications, I will study the best and more convenient way to upgrade.

In the wiki there is a very usefull document about upgrade: Click here.

 

I wish you all a marry Christmas.

A special hug to Riki and Augustone.

Mauro Casula.

symfony-framework.com

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

]]>
https://www.symfony-framework.com/2007/12/21/symfony-11-form-helpers-are-deprecated/feed/
Best Symfony IDE: Eclipse PDT + Symfoclipse + Clay https://www.symfony-framework.com/2007/12/10/best-symfony-ide-eclipse-pdt-symfoclipse-clay/ https://www.symfony-framework.com/2007/12/10/best-symfony-ide-eclipse-pdt-symfoclipse-clay/#comments Mon, 10 Dec 2007 17:27:35 +0000 admin https://www.symfony-framework.com/2007/12/10/best-symfony-ide-eclipse-pdt-symfoclipse-clay/ The Symfony project is growing every day, both in dimension and number of developers.

I think that Symfony is the best PHP 5 Framework, but the elements that converts a framework to THE FRAMEWORK are not only a lot of features seamlessly integrated together, but also the IDE tools that helps the programmer and the analist to develop with more simplicity.

My favourite IDE is Eclipse PDT.

It is open-source, it offers typical IDE features, it integrates the WTP platform for web applications and it can take advantage of the thousands of available Eclipse plugins.

 

Furthermore, an additional reason to choose Eclipse PDT is for Symfoclipse, the eclipse plugin that simplifies the development of web application. This goal has been reached thanks also to Symfony Framework.

It includes:

  • Command line actions from within Eclipse. ( pake tasks )
  • A YAML editor and validator for the YAML format.

 

In this article i will explain how to install a symfony project in Eclipse PDT, how to use Symfoclipse to develop with more efficiency and simplicity and, moreover, I will present you another useful plugin: Clay.

A Symfoclipse license for commercial use costs 20 Euro and can be purchased by paypal transfer to anoy[at]arti-shock[dot]com mentioning your name and email address. The license is for version 1.0.0 - 1.xx.xx.

 

 

Mauro Casula
symfony-framework.com

 

(more…)

]]>
https://www.symfony-framework.com/2007/12/10/best-symfony-ide-eclipse-pdt-symfoclipse-clay/feed/
Easily translate the Generated Administration https://www.symfony-framework.com/2007/12/05/easy-translate-the-generated-administration/ https://www.symfony-framework.com/2007/12/05/easy-translate-the-generated-administration/#comments Wed, 05 Dec 2007 11:53:51 +0000 admin https://www.symfony-framework.com/2007/12/05/easy-translate-the-generated-administration/ In this article, I will explain how to easily translate an auto generated administration and i will ask all you to send me your tranlations.

I have attached here the spanish and italian translation files with sfGuard translation included, but if you want to tranlate all the administration in dutch for example, you only have to edit one of these files and replace the translated item with your tranlation.

messages.es.xml

messages.it.xml


Your Contributions:

French:  messages.fr.xml ( thanks to Sylvain - www.com-ocean.com )

German: messages.de.xml ( thanks to Ingo - www.software-wahnsinn.de )

Russian: messages.ru.xml ( thanks to b166er )

Indonesian: messages.id.xml ( thanks to Haidarah Husain )

I would like to complete this list with many other languages: Portuguese, Polish, Russian, Dutch, German…
If you know one or more of this languages and you want to help.. please send me your traduction at:

maurocasula (at) yahoo .it

I will put all in a dedicated section in this blog and in the symfony project section.

Read more if you want to know how to install the translation files in your backend.

Mauro Casula
symfony-framework.com

(more…)

]]>
https://www.symfony-framework.com/2007/12/05/easy-translate-the-generated-administration/feed/
Symfony 1.0.9 released https://www.symfony-framework.com/2007/11/30/symfony-109-released/ https://www.symfony-framework.com/2007/11/30/symfony-109-released/#comments Fri, 30 Nov 2007 17:27:30 +0000 admin https://www.symfony-framework.com/2007/11/30/symfony-109-released/ All 1.0.x versions are only bug fix versions.

6 weeks after the last version, Symfony 1.0.9 has been released.

It fix 18 known bugs and doesn’t add new functionalities.

These are the fixed bugs:

* r6203: fixed typo in the submit_tag() of the UrlHelper?.php (#2493)

* r6129: sfBrowser : ->click() also search for HTML button elements (#2342)

* r6125: sfRouting : allow numeric parameters (#2317)

* r6019: fixed sfPropelData::dumpData()

* r6014: fixed radio button ids

* r6013: fixed templates of login & secure actions of default module are exchanged

* r6003,r6004,r6007,r6010: merged bug fixes from creole 1.1 + propel 1.2.1 + fixed date

* r5997: fixed admin generator filters HTML defect (#1891)

* r5856: fixed through_class in admin_*_list tags (#1612)

* r5851: fixed sfZendFrameworkBridge autoload (#2314)

* r5847: fixed typo in JavascriptHelper?.php (#2464)

* r5845: fixed incomplete error message in sfRouting.class.php (#2465)

* r5776: fixed typo (#2480)

* r5772: backported i18n fixes from Prado + improved DateTimeFormatInfo

* r5771: fixed typo in sfMessageSource_MySQL.class.php (#2477)

* r5749: reverted YAML schema confusion

* r5704: only logged in users are now timed out due to sf_timeout

* r5701: fixed propel-build-all-load task execution

Fabien suggest you to update your applications with this new release if you plan to use symfony with PHP 5.2.5.

  • If you have a PEAR installation you have to update executing the command:

pear upgrade symfony/symfony

  • If you use Subversions, use the command:

svn checkout

After the update, clear the cache and enjoy: your application will run without problems.

Mauro Casula
symfony-framework.com

]]>
https://www.symfony-framework.com/2007/11/30/symfony-109-released/feed/