The blog of COil : PHP, symfony & Web 2.0

Strangebuzz...?

Réduire au titre / collapse all

16/01/2007

» Symfony beta4 is out !

[En] The beta4 version of Symfony has been announced and released today. It should be the last beta version until the first "RC" (release candidate). The final 1.0.0 is very near now...

[Fr] Oyé, Oyé, la version beta4 de Symfony est sortie aujourd'hui même. A priori ça devrait être la dernière beta avant la 1ère version "RC" (release candidate). L'arrivée de la version 1.0.0 finale est donc proche...

Fabien Potencier wrote :

We just released symfony 1.0.0 beta4. I hope this is the last beta
release before RC1.

This new version includes the following internal changes:

     * Better date/time handling in admin generator
     * SSL and HTTP authentification support for sfBrowser
     * Rich text editors and sfLogger refactoring
     * Updated phpdoc for most core classes

Please install this version and report any bug remaining in the trac.
The upgrade task is not necessary if you already upgraded your projects
to the 1.0 beta 2. As always, don't forget to execute symfony cc to
clear your project cache after upgrading.

If everything works fine, we will release 1.0.0-RC1 at the end of this week.
 
Fabien

15/01/2007

» Coloration Synthaxique avec Geshi

[En] About the synthax coloration, it's achieved with the help of the Geshi class, a new Symfony plugin has been done to be able to easly integrate and use it in Symfony. Hartym made it, all details here, Geshi allows to "colorize" mutiple synthaxes php, java... a little example : (1)

[Fr] A propos de la coloration synthaxique, elle est effectuée grâce à la classe Geshi, un plugin pour Symfony est sorti afin de l'utiliser simplement. C'est Hartym qui a créé ce plugin, ca se passe here, Geshi permet de "coloriser" de multiples synthaxes, php, java... un petit exemple :

(1)

<?php
$highlighter = new sfGeshi("<?php\necho 'Hello World';\n?>","php");
echo $highlighter->parse_code();
?> 

14/01/2007

» Multi-sort dans l'admin generator de Symfony

[En] Here is snippet that i had put on Sf website some time ago, it allows to add a "multi sort" fonctionnality in the admin generator. Indeed, by default, one can sort on only one table column, witch can be quiet annoying with complex datas.

[Fr] Voici un snippet pour Symony que j'avais déposé dans leur application "Snippets", il permet d'ajouter la fonctionnalité "multi-sort" dans l'admin generator. En effet, par défaut on ne peut trier que sur une seule colonne ce qui dans certains cas peut être limitant avec des données complexes.

<?php
    /**
     * Add a sort criteria
     */
    protected function processSort ()
    {
        $sort = $this->getRequestParameter('sort');
        $type = $this->getRequestParameter('type');            
 
        // Register sort                 
        if ($sort) {
            $this->getUser()->setAttribute($sort, $type, 'sf_admin/produits/sort');
        }
    }
?>


La suite du snippet | Full snippet here

» Autres billets / Other post