Re: [PHPTAL] php if else syntax in phptal

2008-10-13 Thread Kornel Lesiński
On 12-10-2008 at 11:21:18 Iván -DrSlump- Montes <[EMAIL PROTECTED]> wrote: The problem is probably that PHPTAL parser doesn't know how to correctly process the PHP ternary operator. No, it does. In php: code / is a mathematical operator. You need to make it record.works_page (if re

Re: [PHPTAL] php if else syntax in phptal

2008-10-12 Thread Iván -DrSlump- Montes
Edu, The problem is probably that PHPTAL parser doesn't know how to correctly process the PHP ternary operator. I suggest you try using a function to accomplish the same: function ternary($condition, $true, $false) { return $condition ? $true : $false; } By the way, the Paamayim Nekudotayim

Re: [PHPTAL] php if else syntax in phptal

2008-10-12 Thread Eduard Gamonal
> I don't know what your Hebrew message says, http://en.wikipedia.org/wiki/Paamayim_Nekudotayim it's "double colon" in Hebrew. > but if I were you, I'd use > 'style1' instead of 'style1''. sorry, that was a typo. I changed the desired class names for dummy ones. Here's the line I'm using:

Re: [PHPTAL] php if else syntax in phptal

2008-10-11 Thread romtek
I don't know what your Hebrew message says, but if I were you, I'd use 'style1' instead of 'style1''. Roman On Sat, Oct 11, 2008 at 6:30 PM, Eduard Gamonal <[EMAIL PROTECTED]> wrote: > Hi, > I'm developing a website using ccHost, and got trapped in a line: > > > record/works_page contains a

[PHPTAL] php if else syntax in phptal

2008-10-11 Thread Eduard Gamonal
Hi, I'm developing a website using ccHost, and got trapped in a line: record/works_page contains a boolean value, and according to that, i may apply style1 or style2. I tried it changing the slashes into dots, but didn't work. I get the famous Hebrew error: Parse error: syntax error, unexpe