Re: [PHPTAL] Conditional class-attribute

2008-09-08 Thread Ernesto Baschny [cron IT]
Kornel Lesiński wrote: on 08.09.2008 16:02: On 08-09-2008 at 14:53:10 Ernesto Baschny [cron IT] <[EMAIL PROTECTED]> wrote: I could try some nested "?" expressions, but this turns out to be quite ugly, e.g. if I would have more than 2 classes to set You can concatenate strings in php: express

Re: [PHPTAL] Conditional class-attribute

2008-09-08 Thread Kornel Lesiński
On 08-09-2008 at 14:53:10 Ernesto Baschny [cron IT] <[EMAIL PROTECTED]> wrote: I could try some nested "?" expressions, but this turns out to be quite ugly, e.g. if I would have more than 2 classes to set You can concatenate strings in php: expressions - just add spaces around ".", i.e.:

Re: [PHPTAL] Conditional class-attribute

2008-09-08 Thread Ernesto Baschny [cron IT]
Hi Kornel, Kornel Lesiński wrote: on 08.09.2008 15:29: On 08-09-2008 at 12:27:50 Ernesto Baschny [cron IT] <[EMAIL PROTECTED]> wrote: I could try some nested "?" expressions, but this turns out to be quite ugly, e.g. if I would have more than 2 classes to set You can concatenate strings in

Re: [PHPTAL] Conditional class-attribute

2008-09-08 Thread Kornel Lesiński
On 08-09-2008 at 12:27:50 Ernesto Baschny [cron IT] <[EMAIL PROTECTED]> wrote: I could try some nested "?" expressions, but this turns out to be quite ugly, e.g. if I would have more than 2 classes to set You can concatenate strings in php: expressions - just add spaces around ".", i.e.:

[PHPTAL] Conditional class-attribute

2008-09-08 Thread Ernesto Baschny [cron IT]
Hi, I am trying to switch from Smarty to phptal. I am enjoying it a lot in the current project and plan to use it on further developments. One task always hits me where I end up having to mix the "presentation" back to my PHP code. But maybe there is a phptal-based solution. In loops, I wan

Re: [PHPTAL] A question about translations.

2008-09-08 Thread Kornel Lesiński
On 01-09-2008 at 08:36:54 Tero Heikkinen <[EMAIL PROTECTED]> wrote: MidCOM 3 uses datamanager - called component to handle form data input. If some form field's validation fails, it re-displays form and puts error messages in place. Generally error messages are generated on the fly. What I

Re: [PHPTAL] Using tal:repeat as condition

2008-09-08 Thread Kornel Lesiński
On 04-09-2008 at 10:12:37 Christoph Frick <[EMAIL PROTECTED]> wrote: But it causes error "Unable to find path number in current scope". Is this possible to make such a condition? I know I could generate in PHP something like item/isThird but I wish to keep my PHP code clean from such hacks. y