Salve!
Ho iniziato a smanettare con smarty.. niente male, davvero figo!
Volevo chiedere una cosa.. io ho bisogno di gestire piu` templates contemporaneamente, tipo se devo dare all'utente la possibilita` di cambiare template.. o se comunque sul server ho uplodato svariati templates e a seconda del periodo devo switchare template..
codice:
www-data@nofx:~/baricity.it$ ls -lash
total 44K
4.0K drwxr-xr-x 7 www-data www-data 4.0K Oct 19 14:19 .
4.0K drwxr-xr-x 4 root root 4.0K Oct 19 13:33 ..
12K -rw-r--r-- 1 www-data www-data 12K Oct 19 13:57 .test.php.swp
4.0K drwxr-xr-x 6 www-data www-data 4.0K Oct 19 14:09 Smarty
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 19 13:58 cache
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 19 13:58 configs
4.0K -rw-r--r-- 1 www-data www-data 330 Oct 19 14:10 index.php
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 19 13:59 templates
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 19 14:15 templates_c
www-data@nofx:~/baricity.it$
codice:
www-data@nofx:~/baricity.it$ ls -lash templates
total 24K
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 19 13:59 .
4.0K drwxr-xr-x 7 www-data www-data 4.0K Oct 19 14:19 ..
12K -rw------- 1 www-data www-data 12K Oct 19 13:59 .index.tpl.swp
4.0K -rw-r--r-- 1 www-data www-data 30 Oct 19 13:59 index.tpl
come devo strutturare le 4 directory che servono a smarty? in ognuna delle 4 dir devo creare delle sotto directory nelle quali ci metto un templates per ognuna?