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
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
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
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
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
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
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,