Re: Pear package: html_template_flexy: How set {tag} value without having to define same variable names in controll class
| From: | Riku Tuominen | Date: | Fri, 09 Feb 2007 12:09:55 +0000 |
| Subject: | Re: Pear package: html_template_flexy: How set {tag} value without having to define same variable names in controll class | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26530@lists.php.net to get a copy of this message | ||
I had to figure the solution my self.
The solution is to use setData() function which have 3 diferent ways to input data.
One of the method has a bug which I added bug fix succestion in its bug site.
Best Regards
Riku Tuominen
----- Original Message -----
From: Jandro brozaman
To: Riku Tuominen
Sent: Friday, February 09, 2007 1:29 PM
Subject: Re: [PEAR] Pear package: html_template_flexy: How set {tag} value without having to
define same variable names in controll class
Hi Riku,
I don't know if somebody has answer you. But maybe you could use a dynamic array and use it
in the template {x_array[0]} or something like that.
It's an idea and obviously it depens of what you have programmed until now.
Sorry for my English I'm spanish and i don't speak very well as you can see ;-)
----- Mensaje original ----
De: Riku Tuominen <riku.tuominen@benchmarking.fi>
Para: pear-general@lists.php.net
Enviado: martes, 30 de enero, 2007 20:03:59
Asunto: [PEAR] Pear package: html_template_flexy: How set {tag} value without having to define
same variable names in controll class
Pear package: html_template_flexy
Any one a have a idea how manually to set values to template variables?
I mean for example if we dont know at programming time what variables the
template is going to include. Then we cant created apropriate variable names
in our class.
I would need to do something similar to.
$myValue = $myData->productName;
$output->setTemplateVariableValue('{Title}', $myValue);
Best Regards
Riku Tuominen
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
------------------------------------------------------------------------------
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.32/677 - Release Date: 8.2.2007