Précédent   Forum des professionnels en informatique > PHP > Bibliothèques et frameworks > Templates > Smarty
Smarty Forum d'entraide sur le moteur de templates Smarty. Avant de poster -> FAQ Smarty et Cours Smarty
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 18/04/2007, 15h59   #1
Candidat au titre de Membre du Club
 
Inscription : février 2007
Messages : 25
Détails du profil
Informations forums :
Inscription : février 2007
Messages : 25
Points : 11
Points : 11
Par défaut Combiné à Action Display : problème d'affichage

salut pour tous
j'utilise actuellement HTML_QuickForm +Smarty pour une application web
j'au un probleme d'affichage lorsque j'ai essyé de personaliser mes formulaire .
voila :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class ActionDisplay extends HTML_QuickForm_Action_Display
{
    function _renderForm(&$page)
    {
 
    global $smarty;
                global $renderer;
                $this->page =& $page;
 
        $smarty = & new Smarty;
        $smarty->template_dir = './';
    $smarty->compile_dir  = '/tmp';
 
        $renderer =& new HTML_QuickForm_Renderer_ArraySmarty($smarty);
        $this->page->accept($renderer);
 
 
        $smarty->assign('formdata', $renderer->toArray());
        echo "<pre>";
var_dump($renderer->toArray());
echo "</pre>"; 
        $smarty->display('QfSmarty.tpl');
    }
 
}
le var_dump s'affiche correctement
c un probleeeeeeeeeeeeeeeeeemeee!!!
merci
mnr_nfo est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/04/2007, 16h19   #2
Membre Expert
 
Avatar de eric.pommereau
 
Homme ERIC POMMEREAU
Ingénieur intégration
Inscription : décembre 2004
Messages : 683
Détails du profil
Informations personnelles :
Nom : Homme ERIC POMMEREAU
Âge : 38
Localisation : France

Informations professionnelles :
Activité : Ingénieur intégration
Secteur : Administration - Collectivité locale

Informations forums :
Inscription : décembre 2004
Messages : 683
Points : 1 294
Points : 1 294
Bonjour,

Essaie un {debug ouput="html"} dans ton fichier de templates et dis moi ce que tu as ...

@+
eric.pommereau est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 06h30.


 
 
 
 
Partenaires

Hébergement Web