ajouter smarty

Répondre
Isaac
le 05/02/2005 à 11:45
Isaac
Hello !

Je viens à l'instant du manuel smarty. Apparemment, pour l'installer, il faut ajouter je ne sais pas quelles ligne dans le php.ini. Je cite :
Editez votre fichier php.ini file, ajoutez le chemin de la bibliothèque Smarty et redémarrez les serveur web.


Que faut-il rajouter pour que ça marche ?

++
http://www.zmws.com
LA GLOBULE
le 05/02/2005 à 11:59
LA GLOBULE
Ben recherche la ligne :
include_path =
dans ton php.ini, et ajoute le chemin de smarty.
Isaac
le 05/02/2005 à 12:30
Isaac
Non, pas thx ...

Ca marche pas plus !
Voilà ce que j'ai rajouté dans le php.ini :
include_path = ".;c:\chemin\vers\smarty\"

C'est pas bon ? (j'ai redémarré le serveur après avoir rajouté la ligne)

++
http://www.zmws.com
LA GLOBULE
le 05/02/2005 à 12:40
LA GLOBULE
INSTALLATION (quick):

* copy the files under the libs/ directory to a directory that is in your PHP
include_path, or set the SMARTY_DIR constant and put them in this directory.
(if you upgrade from versions before 2.5.0 be aware that up to Smarty 2.4.2
all necessary files where in the distribution's root directory, but are now
in libs/.)

* for each application using Smarty, create a "templates", "configs", and a
"templates_c" directory, be sure to set the appropriate directory settings in
Smarty for them. If they are located in the same directory as your
application, they shouldn't need to be modified. Be sure the "templates_c"
directory is writable by your web server user (usually nobody). chown
nobody:nobody templates_c; chmod 700 templates_c You can also chmod 777 this
directory, but be aware of security issues for multi-user systems. If you are
using Smarty's built-in caching, create a "cache" directory and also chown
nobody:nobody.

* setup your php and template files. A good working example is in the on-line
documentation.

* TECHNICAL NOTE: If you do not have access to the php.ini file, you can change
non-server settings (such as your include_path) with the ini_set() command.
example: ini_set("include_path",".:/usr/local/lib/php");


C'est pourtant écrit, ce qu'il faut faire.
Isaac
le 05/02/2005 à 12:50
Isaac
C'est bien gentil tout ça ...
Mais pour les personnes qui pigent pas l'Anglais, c'est plus aussi clair que ça ! Dsl mais j'ai pas eu le choix, à l'ecole. smiley smiley

Merci tout de même ... ++
http://www.zmws.com
Lefounard
le 05/02/2005 à 12:56
Lefounard
eh be , tu prends un traducteur !
Voila,
Ciao,
I am singing in the rain , I am happy again !!
Isaac
le 05/02/2005 à 13:45
Isaac
Ca va, j'ai trouvé un traducteur... Mais la traduction est assez difficile a piger...

++
http://www.zmws.com
Répondre

Ecrire un message

Votre message vient d'être créé avec succès.
LoadingChargement en cours