The blog of COil : PHP, symfony & Web 2.0

Strangebuzz...?

Réduire au titre / collapse all

18/06/2008

» Allomatch V3 powered by symfony !

Well the V2 was also powered by symfony (V1.0) and the V1 was powered by Joomla. ;) What is Allomatch ? It's a website where you can see the pubs where you can see sports events on television, like actually with the Eurocup 2008. You've got a match, then you have the google map of France, you just have to click on the region or to enter your address to see what is the closest pub were you will be sure to be able to see the match. This V3 mainly adds some "community features", for example you can tell to others members where you will see the match, give you thought on the "match wall", if you like a bar... and so on.

It was a pleasure to work with you, thanks to Fabrice and Benoit and i wish you the best for the future. :)

PS: The Hall's beer tavern the pub of the Paris "sfPot" is one of the Allomatch pubs ! ;)
PS2: Try and test the "Pouet" feature (the counters), one of the most addictive of the site ! ;)

allomatch

03/04/2008

» symfony tutorial : Extending the admin generator

[En] Tutorial content:

  • Creating a plugin with a custom admin generator theme
  • Extending the sfActions class
  • Extending the sfPropelAdminGenerator class


Here is little contribution for the symfony code sprint, a symfony tutorial about the admin generator. :) Do you know about it ? I think it's one of my favourite symfony tool, i have developed several applications with symfony and for 75% of them i have made a custom admin generator theme. And as said in the symfony documentation, the admin generator is very very very powerful. ;)
In this tutorial we will see a concrete example on how to extend it to provide a useful new feature. Witch feature ? Well it was one of the things a customer asked me, "I want to be able to delete several rows at a time with check boxes" ... Ahhhhh indeed, it's not a native feature of the admin generator. So.... let's do it... :)

::: Pre-requisite :::


Well i will not explain here how to install symfony as there are lots of tutorials about this on the symfony website and in the wiki. So i will assume you have a clean symfony installation so you can type the symfony command in cli. I used the 1.0.13 version for this tutorial.

::: Creating and setting a new project :::


:: Creating the new project ::


First we will create the new project that we will call tutorial, create a new folder tutorial and launch the init-project task into it.

symfony init-project tutorial

Now let's create the backend application:

symfony init-app backend

As it is always better to have a submain for our application add the following in you apache httpd.conf file and change it with your own path

## COil symfony tutorial n°1 : Extending the admin generator ##

<VirtualHost *:80>
  ServerName dev.tutorial.com
  DocumentRoot "C:\wamp\www\tutorial\web"
  DirectoryIndex index.php
  Alias /sf "c:\wamp\bin\php\php5.2.5\PEAR\data\symfony\web\sf"
  
  <Directory "C:\wamp\www\tutorial\web">
    AllowOverride All
  </Directory>
</VirtualHost>

Add the sub-domain in you hosts file:

127.0.0.1 dev.tutorial.com

Ok, at this point we should have our "Project created!" page. So Let's try to browse http://dev.tutorial.com/backend_dev.php

tuto1-1


:: The database ::


Create a local database, let's call it tutorial again. (same as the project name)
Modify the database settings in the config/database.yml and config/propel.ini file, your database.yml file should look like this:

all:
  propel:
    class:          sfPropelDatabase
    param:
      dsn:          mysql://root@localhost/tutorial


Now we need a schema, let's take the one of Askeet


Ok now let's try to build the database:

symfony.bat propel-build-all-load backend

Oops, it seems there are some errors. :) As we are quite lazy just delete the password columns and the QuestionTag section of the /datas/fixtures/test_data.yml file.
Let's try again to run the last command. If your are successful you should now have some tables and data in your tutorial database. If not, you probably missed something. ;) At this point we have a valid application with a database, some tables and fixtures. Settings are ok, so can go to the next step.

...

Lire la suite / read all

25/03/2008

» symfony : traduction FR de la cheatsheet Ajax

[FR] J'avais traduis il y a quelque temps la cheatsheet sur les helpers ajax realisée par Andréia Bohner. En fait il ne m'avait pas répondu très vite donc elle était un peu tombée aux oubliettes. J'avais fais cette traduction un peu vite fait et mot à mot donc le résultat n'est pas tip-top. :/ Donc si vous avez des propositions de modifications à n'hésitez pas, je peux les regrouper et envoyer la mise à jour à Andréia. Sinon ça pourra toujours servir à quelqu'un ne parlant pas un mot d'anglais ni de portugais. ;)

Traduction française de la cheatsheet ajax symfony



02/03/2008

» sfLightboxPlugin 1.0.6

[En] New version with the last version of lightbox (2.03.3) + new helpers. You can check the demo here on my blog.

  • Updated lightbox library to v2.03.3
  • 3 new helpers (light_image_text, light_slide_image, light_slide_text)
  • New parameter for images slideshows to allow to display images as a html list (li..)
  • Slideshow navigation with the keyboard (left, right, ESC)


Thanks for your feedback ! Enjoy. :)



[Fr] Nouvelle version incluant la dernière version de lightbox (2.03.3) et quelques nouveaux helpers. Vous pouvez visualiser la demo ici sur mon blog.

  • Mise à jour de la librairie lightbox pour la version v2.03.3
  • 3 nouveaux helpers (light_image_text, light_slide_image, light_slide_text)
  • Nouveau paramètre pour les slideshows pour afficher les images comme une liste html (li..)
  • Navigation dans le slideshow à l'aide du clavier (gauche, droite, ESC)


Merci pour votre feedback ! Enjoy. :)

sfLightboxPlugin 1.0.6

04/09/2007

» PSymfony3

[Fr] Fabien Piuzzi de la société Splitgames (pour laquelle je travaille actuellement) vient de nous sortir un tutorial complet pour pouvoir développer avec Symfony (et sur une platforme LAMP en général) sur PS3, et oui c'est possible avec Reefab. ;) Je vous laisse découvrir le tutoriel, étant trés complet et détaillé vous ne devriez pas rencontrer de problème majeur. Sinon n'hésitez pas à le contacter sur son blog.



Fabien, tu risques d'être hais très prochainement harcelé par des gosses qui auront reçu comme cadeau de noel, une ps3, un cd d'image d'Ubuntu et le definitive guide to Symfony, lol. ;) Attends toi à te faire spammer très prochainement. :p

Décidemment Splitgames est toujours à la pointe en ce qui concerne Symfony, une surprise étant d'ailleurs en préparation mais je ne peux en dire plus cela fera l'objet d'un post plus conséquent dans le futur. ;)

D'autre part, si vous êtes fan de PHP, MySQL, Symfony, HTML/CSS, SVN de jeux videos, que vous êtes situés sur Paris, que vous avez une grosse poitrine (Joke !!! ;) ), Splitgames est toujours à la recherche de bons développeurs pour poursuivre sa progression. Vous pouvez envoyer un email à cette adresse jobs [at] splitgames [dot] com, à bon entendeur. :)

12/06/2007

» Plugins, plugins and (sf) plugins

[EN] Translation coming soon (edit 19/07: too lazy to do the translation)

[FR] Pas mal de mouvements ces derniers temps dans la section, on compte pas moins de 80 plugins désormais et on se rapproche de la barre fatidique des 100, c'est vraiment excellent pour le framework et lui donne une richesse certaine. On y trouve vraiment de tout, de la série de plugin sur propel qui permettent d'ajouter à cet ORM des fonctionnalités comme l'audit d'objet, la gestion d'arbre... aux plugins plus farfelus qui permettent de gérer des smileys ou qui permettent l'intégration de librairies javascript externes, ou encore qui permettent de s'interfacer avec d'autres applications PHP (sfGallery2Plugin...) Le mieux étant encore d'aller sur le wiki pour dénicher ceux qui pourront vous être utiles... Quant à mes plugins, ils se portent plutôt bien !

  • sfLightboxPlugin en est à la version 1.0.5, la prochaine publication 1.1.0 sera faite par Demental et incluera donc comme le numéro de version le laisse entendre, de nouvelles fonctionnalités. Stay tuned ! ;)
  • sfTCPDFPlugin à été mis à jour par fred, qui a corrigé les bugs, rendu le plugin customisable, corrigé et mis à jour l'exemple complet de la librairie TCPDF. C'est vraiment cool de voir son travail repris, amélioré et publié par quelqu'un d'autre. Mais c'est le principe même de l'open source n'est-ce pas ? :)
  • sfJoomlaPlugin lui au contraire est en train de tomber aux oubliettes... Quelques personnes s'y étaient interessé mais depuis plus grand chose, il est vrai que d'interfacer un framework et un CMS aussi "fouilli" ( ;) ) que Joomla reste une idée assez marginale... Enfin il a le mérite d'exister, si ça peut/a pu servir à quelqu'un... :)

11/06/2007

» Antiséche, antiséche, est-ce que j'ai une geule d'antiséche ?

[FR] Désolé pour la débilité du titre mais c'est la 1ere chose qui me soit venue à l'esprit en essayant de chercher un titre à ce post... bref ! J'ai traduit (il y a quelques temps déjà !) en français la cheatsheet d'Andreia sur les commandes en ligne de symfony et l'architecture de base d'un projet. Vous pouvez donc la trouver sur son blog, ainsi que les autres traductions en anglais, espagnol et portugais. Par contre je trouve qu'une telle antiséche sur propel manque cruellement, sur toutes les fonctions peer, les constantes et l'usage des criterias et criterions... Quelqu'un se lance ? ;)

En attendant, Andreia remet le couvert et nous propose une autre excellente antiséche sur l'intégration d'ajax dans symfony. A imprimer de toute urgence. :)


[EN] Some times ago i translated a symfony cheatsheet in french witch can be found on the blog of Andreia, who has recently published another excellent cheatsheet about the integration of ajax in the symfony framework.

Commandes console de symfony

19/04/2007

» [Symfony] sfLightboxPlugin v1.0.3 is out

[En] Yet another new version released by Demental
[Fr] Encore une nouvelle version publiée par Demental

Added the ability to call initmodalbox several times. Corrected wrong paths in config.php

27/03/2007

» [Symfony] sfLightboxPlugin v1.0.2

[En] This version was released by Demental, it includes some improvments and bug corrections. As usual you can find all instructions on the Symfony wiki.


[Fr] Cette version a été publié par Demental, elle inclue quelques améliorations et corrections de bugs. Comme d'habitude vous pouvez trouver toutes les instructions sur le wiki Symfony.

18/03/2007

» New Symfony plugin : sfTCPDFPlugin

[En] I have released my third plugin, it's a small one that just provides an easy access to the TCPDF library. TCPDF is an extension of FPDF witch allows to create PDF documents. It mainly differs from its father by supporting UTF8 encoding, witch of course is very interesting for Symfony. As usual you can find all installation instructions on the Sf wiki and a demo on this blog.


[Fr] Je viens de publier mon 3eme plugin Symfony, il est trés simple et fournit un accés facilité à la librairie TCPDF. TCPDF est une extension de FPDF qui permet de créer des documents PDF. Elle différe principalement de son père en supportant l'encodage UTF8, ce qui, bien sûr est trés intérressant pour Symfony. Comme d'habitude vous pouvez trouver toutes les instructions d'installation sur le wiki Sf et une demo sur ce blog.

» Autres billets / Other post

1 2 >