Re: [PHPTAL] Multiple conditions

2008-05-30 Thread Anton Andrievskij
our business model rather that > wirte it in a view model > > > regards > > On Sat, May 31, 2008 at 10:17 AM, Anton Andrievskij <[EMAIL PROTECTED]> > wrote: > > The aim is to avoid setting always products. > > > > On Sat, May 31, 2008 at 12:03 AM, Chris

Re: [PHPTAL] Multiple conditions

2008-05-30 Thread Anton Andrievskij
The aim is to avoid setting always products. On Sat, May 31, 2008 at 12:03 AM, Christoph Frick <[EMAIL PROTECTED]> wrote: > On Fri, May 30, 2008 at 07:04:47PM +0300, Anton Andrievskij wrote: > > > How can I specify multiple conditions using AND logical operator and php: > &

Re: [PHPTAL] Re: PHPTAL Digest, Vol 39, Issue 13

2008-05-30 Thread Anton Andrievskij
I think it is better to get new developers with new programming logic to use PHPTAL. Then you will have more strong and professional community. Smarty must go to the syncope together with its old-type programmers. As for me - I never used Smarty because I found it ugly and stupid the first time I

Re: [PHPTAL] Multiple conditions

2008-05-30 Thread Anton Andrievskij
>>> PHPTAL rewrites code in php: expressions to use TAL variables, so it will work fine. Please can you explain a bit more about this? How it works? On Fri, May 30, 2008 at 7:47 PM, Kornel Lesinski <[EMAIL PROTECTED]> wrote: > On Fri, 30 May 2008 17:36:34 +0100, Anton A

Re: [PHPTAL] Re: developer of PHPTAL or not

2008-05-30 Thread Anton Andrievskij
I agree about 'marketing friendly' too. PHPTAL guys, lets improve on this part. I'll help doing my best for this task. Anton On Fri, May 30, 2008 at 7:28 PM, Iván -DrSlump- Montes < [EMAIL PROTECTED]> wrote: > I've been trying to push for PHPTAL use in several projects in the > last years but I

Re: [PHPTAL] Multiple conditions

2008-05-30 Thread Anton Andrievskij
TED]> wrote: > On Fri, 30 May 2008 17:04:47 +0100, Anton Andrievskij <[EMAIL PROTECTED]> > wrote: > > How can I specify multiple conditions using AND logical operator and php: >> for one of the parts? >> >> I'm trying this but does not works: >

[PHPTAL] Multiple conditions

2008-05-30 Thread Anton Andrievskij
Hi, guys. How can I specify multiple conditions using AND logical operator and php: for one of the parts? I'm trying this but does not works: tal:condition="exists: products AND php:count(products) == 0" Thanks, Anton ___ PHPTAL mailing list PHPTAL@li

Re: [PHPTAL] Re: PHPTAL Digest, Vol 39, Issue 13

2008-05-30 Thread Anton Andrievskij
Patrick, are you developer of PHPTAL or not? Anton On Fri, May 30, 2008 at 5:29 PM, Patrick Burke <[EMAIL PROTECTED]> wrote: > I love PHPTAL, and the self documentation thread going on is a very > interesting idea. The requirement that brought up self-documentation > seems like a development en

Re: [PHPTAL] automated documentation for templates?

2008-05-30 Thread Anton Andrievskij
ch parses the > template looking for comments and stores them wherever you wish. > > Iván > > On Fri, May 30, 2008 at 11:16 AM, Anton Andrievskij <[EMAIL PROTECTED]> > wrote: > > No I think the right idea is to have this documentation in XML format > >

Re: [PHPTAL] automated documentation for templates?

2008-05-30 Thread Anton Andrievskij
No I think the right idea is to have this documentation in XML format directly inside template and to have PHP tal to output this documentation. So why not to allow PHPTAL to output this documentation just like it outputs other contents? Then developers may have access to the documentation to alway

Re: [PHPTAL] automated documentation for templates?

2008-05-29 Thread Anton Andrievskij
Hi, Jason. I think your idea is useful and we it need be realized. What other people think? Anton On Thu, May 29, 2008 at 10:25 PM, Jason - USL <[EMAIL PROTECTED]> wrote: > Hi, everybody. > > I'm wondering if anybody's created or thought about a system for > documenting the PHPTAL templates th

Re: [PHPTAL] Idea for PHPTAL

2008-05-25 Thread Anton Andrievskij
5s04.html > > On Sun, May 25, 2008 at 6:28 PM, Anton Andrievskij <[EMAIL PROTECTED]> > wrote: > > Hi, PHPTAL developers. What about an extension to allow > > lang:key="welcome_string" attribute for document root or even just any > tag? > > And then so

[PHPTAL] Idea for PHPTAL

2008-05-25 Thread Anton Andrievskij
Hi, PHPTAL developers. What about an extension to allow lang:key="welcome_string" attribute for document root or even just any tag? And then some built-in engine to allow to edit string values for different keys for each language? So we can allow to design templates where each substitution can be m

Re: [PHPTAL] Error with LINK tag

2008-05-22 Thread Anton Andrievskij
Thanks for this help. I'm realising both RSS and ATOM, sure. Anton On Thu, May 22, 2008 at 12:44 PM, Kornel Lesinski < [EMAIL PROTECTED]> wrote: > On 22 May 2008, at 07:34, Anton Andrievskij wrote: > > I'm trying to build RSS using PHPTAL. I just noticed abou

[PHPTAL] Error with LINK tag

2008-05-21 Thread Anton Andrievskij
Hi. I'm trying to build RSS using PHPTAL. I just noticed about very strange problem... http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp produces This does not work exactly with LINK tag. If I cahgne ___ PHPTAL mailing list PHPTAL@lists.motion

Re: [PHPTAL] Imploding tal:attributesfrom source array

2008-01-29 Thread Anton Andrievskij
the intended way, eh? The only alternative seems to > be to write a very long tal:attributes definition that would cater for > any possible attribute, but I;m sure there must be a better approach...? > > Kind Regards, > Werner > > Anton Andrievskij wrote: > > In your PHP:

Re: [PHPTAL] Imploding tal:attributesfrom source array

2008-01-28 Thread Anton Andrievskij
In your PHP: *$imgAttr = ''; foreach($attributes as $attrname => $attrvalue) $imgAttr .= "$attrname $attrvalue;"; $templateObject->imgAttr = $imgAttr;* In your template: ** Hope this may help. Anton Andryevskyy On Jan 29, 2008 12:30 AM, Werner <[EMAIL PROTECTED]> wrote: > Hi! > > Has anyone

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

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

2008-01-21 Thread Anton Andrievskij
Buy the way, how can I output text with quotes using tal:content? If always replaces quotes by htmlentities, but sometimes I do not want quotes to be replaced. Thanks, Anton Andriyevskyy On Jan 21, 2008 1:41 PM, Anton Andrievskij <[EMAIL PROTECTED]> wrote: > Thanks, I'll r

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 Andrievs

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

2008-01-21 Thread Anton Andrievskij
OFFTOP: Buy the way, can anybody reccomend me somebody very close and professional to security things? I'm going to open big site and I want high-security in both my site and my server. Any links may help. Thanks. Anton On Jan 21, 2008 1:32 PM, Anton Andrievskij <[EMAIL PROTECTED]> w

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

2008-01-21 Thread Anton Andrievskij
Ok, you told the same thing but in shortest and more simple words. Thanks you. >>PHPTAL works best if you design your application using MVC pattern Where can I read professional comments and how it works? Thanks, Anton On Jan 21, 2008 1:30 PM, Anton Andrievskij <[EMAIL PROTECTED]>

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

2008-01-21 Thread Anton Andrievskij
; > > $benchmark->stop('loading-sub-controller-section'); > > } > > *... > > > > *Nevermind the benchmark stuff, I like to know how long everything takes > > to run. > > > > > > On Jan 21, 2008 5

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

[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 inside construction? Example: items = array( ) If I can't do

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

2008-01-21 Thread Anton Andrievskij
s, a navigation controller, and a page > controller. The navigation controller, handles authentication, and sending > people from one page to the next, also it has inside of it an access > handler, so if a page, has resources, it checks to see if you are allowed to > use those res

[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 www.mysite.com/ind