Symfony blogger feed

There used to be a feed (RSS) maintained by Sensio that aggregated all the feeds of publicized “Symfony Bloggers”. People would go post their blog’s feed here: http://trac.symfony-project.org/wiki/SymfonyBloggers and then their feeds would be auto-magically merged into the “Symfony Blog Quotes” feed. This tool was of great use to me. I read most of the posts (when in a language I could speak!) and learned a lot.

Sadly this went down a few months ago. I took the whole list of feeds on that page. Checked all of them and eliminated the ones that didn’t return a valid feed or didn’t exist anymore. I kept all the others even if not updated recently.

All of them are now part of a public feed at http://feeds.feedburner.com/sfbloggers . I’m only concerned that Google Reader (which is used in the back to publish this feed) seems to sort last posts in the order it fetched them rather than publish date which means that the posts prior to today are not shown in the right order. So this post serves two purposes: testing that it updates correctly. And publicizing it.

If your blog’s feed is not in the final feed and you would like to add it, send me a message by email, github (@khepin), twitter (@khepin), in the comments here, or wherever you want! You can also fork this github repository add your feed to the feed_list file and send me a pull request.

Hope that this will help spread the discussion on Symfony especially as I think a lot is needed as many of us are still getting our hands at Symfony2!

Basic usage of the symfony2 CollectionType form field

UPDATE: This article was written while trying the form system and represents my thoughts at a certain stage, in order to discuss and get feedback. Not all info here is valuable and some is actually mis-leading. If you read this, make sure you read the comments as well, or wait for a coming article with more correct foundations.

Reading these articles in a series (starting with this one) will get you through most of the thought process, and help understand the reasons behind the good practices. Be sure to also read the comments discussion.

In my previous post, it seemed to me and to a few commenters that I needed to make use of the CollectionType inside my Symfony2 form. However the documentation on that specific field is non-existent to the day. This post will show how I used it, which might not be the perfect way, I am not sure. If some people “in the know” read this and think it’s correct, I’d happily write a bit of documentation for everyone to see.

Continue reading

Form composition in symfony2

UPDATE: This article was written while trying the form system and represents my thoughts at a certain stage, in order to discuss and get feedback. Not all info here is valuable and some is actually mis-leading. If you read this, make sure you read the comments as well, or wait for a coming article with more correct foundations.

Reading these articles in a series (followed by this one) will get you through most of the thought process, and help understand the reasons behind the good practices. Be sure to also read the comments discussion.

As I’m currently trying to get some time to learn symfony2, I went through some basic things in the form framework and found some things I’m not sure how to do. The form framework now seems incredibly powerful though, so I probably missed some things on “how to do” the things I’m trying to do.

Continue reading

A First Silex Project

Although Symfony2 is not there yet, there is already a framework based on some of the Symfony core components, it’s the Silex microframework. It’s created by Fabien Potencier, the original developer of the Symfony framework and Igor Wiedler.

Silex is really easy for setting up a small new project and you can download the whole of it in one single file. It’s PHP 5.3 only as it makes use of namespaces and closures quite a lot. I wanted to give it a try and create a small project with it. It uses dependency injection in a very simple way which is also something I wanted to know better. Here I’ll guide you through the small project I created with Silex with as many explanations as I see fit for you to get up and running with using Silex.

This article is a quite complete project tutorial that you can follow and do yourself with Silex if you want to get up to the task with it. Silex is small, modular and really easy and fun to program with.

Continue reading

On Symfony, PHP, Python, OpenOffice, Excel, Business Intelligence And Simple Reporting Tools! (With A Bit Of PDF Too)

Wow! That is one long title! But this is actually all the things that I’m gonna try to put together in this article. On a technical point of view, it is a follow up to my previous article on simple excel exports from within Symfony.

The other part is about simple reporting system to be used in PHP and how to do it. The article is quite long, if you don’t give a $#@&%! about my opinions on Business Intelligence and reporting tools, you can skip to the technical part which is all about creating exports in many different formats (as listed in the title) from a Symfony project.

Continue reading

Configurable required fields for symfony forms

Shame shame shame on me… still writing about symfony not 2 when all the momentum has gone to a version th

at brings things to the next level. However I’ll talk about things related to the form framework here and from what I hear, a lot of this has been kept in symfony2. Whether true or not, many out there will keep working on symfony 1.x for a while because well the project already exists / has to be maintained  or keep going and new symfony version doesn’t mean that every website using it will change and update tomorrow! So this should still be good info!

Continue reading

Easily generate excel files from a symfony action

[update]: I published a new article with other (and in my opinion way better) methods on how to do those things.

In the application we are creating we need to output some of out content as excel documents. Most of the times the actions that are going to be used are the same as when we output html content.

You have a list of contacts for a given company, but the user wants to get it as an excel file so he can manipulate it a bit, same goes for the contracts list, the products list etc etc etc…

There are a few solution that exists if you want to create Excel files from php and html code. I will describe some of them and why I didn’t use those methods, and explain the method I used, why it suits me, and where I am still looking for possible improvement.

Continue reading

Splitting the routing file

We just had this problem where our routing file for our application was getting bigger and bigger and huger and huger.

The same thing of course is happening to the file in which we define our schema. However it is already planned that you can split your schema file. Any file named *.schema.yml located at the same place as the initial one would be used as a schema.

However right now my issue was more with the routes. Even creating a Yaml category does not work, the file will not be parsed correctly.

Continue reading

Easy ajax forms with sfDoctrineDynamicFormRelationsPlugin

Here’s the case: you want (badly!) to add a form to an existing one through ajax. You know, like it wasn’t there the minute before but was only one click away! You want to make that click and have all the new form fields appear right here right now for your own pleasure! This new form of course is one of a related object. We’ll say for example that you have a table of customers and one to store addresses. Of course it happens that sometimes a customer might need to fill more than one address. Your form will ship with one, two or zero address forms, but a small link will say ‘add an address’ and the correct fields will appear. Then this link will stay and you’ll be able to add many more addresses!

Continue reading