Author |
Message |
Topic: file_exists... or does it? |
Davod
Replies: 2
Views: 4645
|
Forum: General Posted: Tue May 04, 2010 5:33 pm Subject: file_exists... or does it? |
I recommend to declare the variables in the Script and NO in Template.
And, you forgot to add a dot '.' between Variables and Strings:
$image = $directory . $file // With two variables
or
$ima ... |
Topic: section multilevel array |
Davod
Replies: 4
Views: 7013
|
Forum: General Posted: Sun May 02, 2010 10:03 pm Subject: section multilevel array |
You can use nested {section} for multidimensional arrays as well.
See the Manual for more information:
http://www.smarty.net/manual/en/language.function.section.php |
Topic: Smarty help |
Davod
Replies: 2
Views: 4540
|
Forum: General Posted: Fri Apr 30, 2010 6:01 pm Subject: Smarty help |
Try using {section} in Manual. If your Array is multidimensional, you can anidate {sections}:
http://www.smarty.net/manual/es/language.function.section.php |
Topic: Variables problem |
Davod
Replies: 2
Views: 4521
|
Forum: General Posted: Fri Apr 30, 2010 6:00 pm Subject: Variables problem |
If you want to Iterate an Array, see {section} in Manual:
http://www.smarty.net/manual/es/language.function.section.php |
Topic: access php arrays in smarty |
Davod
Replies: 1
Views: 5517
|
Forum: General Posted: Fri Apr 30, 2010 5:44 pm Subject: access php arrays in smarty |
A frequent question... Please READ the Manual's {section} section:
http://www.smarty.net/manual/en/language.function.section.php |
Topic: smary assign question |
Davod
Replies: 4
Views: 6143
|
Forum: General Posted: Fri Apr 30, 2010 5:42 pm Subject: smary assign question |
Do you read the {section} in Manual?
http://www.smarty.net/manual/en/language.function.section.php
First, obtain the results of a Query and assign a Smarty variable of these Array.
Second, use {s ... |
Topic: smarty problem. |
Davod
Replies: 1
Views: 3559
|
Forum: General Posted: Fri Apr 30, 2010 5:37 pm Subject: smarty problem. |
Do you declare the Variable before placing in template?
Try to use $debugging to view if value is declared. |
Topic: Can't cache parts of page |
Davod
Replies: 1
Views: 3935
|
Forum: General Posted: Fri Apr 30, 2010 5:36 pm Subject: Can't cache parts of page |
Please read carefully the Manual, especially Caching section and Controlling Cacheability of Plugins' Output:
http://www.smarty.net/manual/en/caching.cacheable.php
Remember to Enable $caching befo ... |
Topic: clear_cache() and Cache Groups does not clean O_o |
Davod
Replies: 4
Views: 8250
|
Forum: General Posted: Fri Apr 30, 2010 5:30 pm Subject: clear_cache() and Cache Groups does not clean O_o |
Well, I' resolved them.
I added a first group to the Group templates, as the following:
$smarty->display("gallery_gallery.tpl","gallery_gallery,$gallery|$page");
And, w ... |
Topic: clear_cache() and Cache Groups does not clean O_o |
Davod
Replies: 4
Views: 8250
|
Forum: General Posted: Thu Apr 29, 2010 4:46 pm Subject: clear_cache() and Cache Groups does not clean O_o |
To clear cache groups, leave the template name null (as in the examples):
$smarty->clear_cache(null,'a|b');I forgot them!!! Thanks very much. I will try them.
I can't see where in gallery.php ... |
Topic: clear_cache() and Cache Groups does not clean O_o |
Davod
Replies: 4
Views: 8250
|
Forum: General Posted: Tue Apr 27, 2010 10:42 pm Subject: clear_cache() and Cache Groups does not clean O_o |
Hello people.
I'm working in a CMS that use Smarty.
All OK, but I have a little problem with Caching, specifically clear the Cache for Groups.
One script is gallery.php, that deploy Images. T ... |
Topic: How to avoid cache on part of a template? |
Davod
Replies: 3
Views: 6074
|
Forum: General Posted: Tue Apr 27, 2010 10:01 pm Subject: How to avoid cache on part of a template? |
This answer is in the Manual. Please read them. |
Topic: Caracteres raros en include |
Davod
Replies: 2
Views: 23809
|
Forum: Language: Spanish Posted: Tue Apr 27, 2010 5:46 pm Subject: Caracteres raros en include |
A simple vista parace un porblema de Smarty, pero mirándolo bien, es un problema de Charset en la página de salida. Probablemente la página esté escrita en "ISO-8859-1" mientras que el Carse ... |
Topic: validar fechas en español con SmartyValidate |
Davod
Replies: 1
Views: 12532
|
Forum: Language: Spanish Posted: Thu Oct 01, 2009 12:05 am Subject: validar fechas en español con SmartyValidate |
Puedes crear tu propia Función y Registrarla, a partir de la Función que citas. Ve $smarty->register_function. |
Topic: Usar JavaScript en una Plantilla Smarty |
Davod
Replies: 6
Views: 30533
|
Forum: Language: Spanish Posted: Thu Oct 01, 2009 12:00 am Subject: Usar JavaScript en una Plantilla Smarty |
Solución sencillísima: Usar Paréntesis de llave doble )o Double-braces) '{{}}' en lugar de uno simple como Delimiter '{}'
// A continuación de la Configuracion de Smarty:
$smarty->left_delimite ... |
|