[PHPTAL] Using PHPTAL with index.php?page=... thing

2008-01-21 Thread Anton Andrievskij
Hi, PHPTAL users. (Sorry for my bad English as I'm from Ukraine) I write this letter to ask about what the best idea about how to use the PHPTAL engine with the standard PHP site engine technology like this: www.mysite.com/index.php?page=login www.mysite.com/index.php?page=faq

Fwd: [PHPTAL] Using PHPTAL with index.php?page=... thing

2008-01-21 Thread Levi Stanley
Sorry, forgot to change the email, I was sending this from. Read below: -- Forwarded message -- Date: Jan 21, 2008 5:08 AM Subject: Re: [PHPTAL] Using PHPTAL with index.php?page=... thing To: Template Attribute Language for PHP phptal@lists.motion-twin.com Hmm, kind of sounds

[PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Anton Andrievskij
Hi. I have to fill JavaScript array using PHPTAL attributes. Whether I can use some span ...tal-attributes here../span inside script/script construction? Example: script language=JavaScript items = array( span ..PHPTAL loop here... span tal:replace ...writing item values

Re: [PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Levi Stanley
You can do something like this: script language=javascript tal:content=structure your-javascript-here-or-the-variable /script Best regards, Levi On Jan 21, 2008 5:43 AM, Anton Andrievskij [EMAIL PROTECTED] wrote: Hi. I have to fill JavaScript array using PHPTAL attributes. Whether I can

Re: [PHPTAL] Using PHPTAL with index.php?page=... thing

2008-01-21 Thread Levi Stanley
Actually, phptal should only be used for the presentation of the data. your controller and models, should do most of the work you want. Here is a snippet of my index.php aka navigation controller: *... *if (isset($__xml_attributes['redirect'])){ print

Re: [PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Christoph Frick
On Mon, Jan 21, 2008 at 12:43:21PM +0200, Anton Andrievskij wrote: I have to fill JavaScript array using PHPTAL attributes. Whether I can use some span ...tal-attributes here../span inside script/script construction? Example: script language=JavaScript items = array( span

Re: [PHPTAL] JavaScript arrays using PHPTAL

2008-01-21 Thread Anton Andrievskij
Ok, so the idea is to build data in the PHP, then simply past it to the script using tal:content. Thanks. On Jan 21, 2008 1:08 PM, Christoph Frick [EMAIL PROTECTED] wrote: On Mon, Jan 21, 2008 at 12:43:21PM +0200, Anton Andrievskij wrote: I have to fill JavaScript array using PHPTAL

Re: [PHPTAL] Using PHPTAL with index.php?page=... thing

2008-01-21 Thread Anton Andrievskij
Thanks, I'll read. Anton On Jan 21, 2008 1:39 PM, Levi Stanley [EMAIL PROTECTED] wrote: I ithink you might be looking for something like this: http://www.phpmvc.net/docs/guides/guidesIdx.php?doc=adv-pg-layout-tal On Jan 21, 2008 6:32 AM, Anton Andrievskij [EMAIL PROTECTED] wrote: Ok,

Re: [PHPTAL] Using PHPTAL with index.php?page=... thing

2008-01-21 Thread Anton Andrievskij
Thanks your for this help. Anton On Jan 21, 2008 2:39 PM, Christoph Frick [EMAIL PROTECTED] wrote: On Mon, Jan 21, 2008 at 02:16:13PM +0200, Anton Andrievskij wrote: Buy the way, how can I output text with quotes using tal:content? If always replaces quotes by htmlentities, but sometimes