, romtek rom...@gmail.com wrote:
Hi,
I need help with something... I have the following in my template:
div tal:content=structure product/descrfull product description
here/div
Values of product/descr are taken from a database. This works. However,
I wanted to include a path
Hi,
I need help with something... I have the following in my template:
div tal:content=structure product/descrfull product description
here/div
Values of product/descr are taken from a database. This works. However, I
wanted to include a path to the app in links like so: a
http://webessentials.uservoice.com/forums/140520-general/suggestions/3409596-support-for-phptal
Please vote even if you don't use VS.
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
Hi,
The nature of the development approach that I use is that paths to
resources (images, CSS and JS files, etc.) relative to the template files
during design time are different from those during run time. (I have
templates in a separate folder, but my web app runs as index.php in the
root
Developer,
4over, Inc
darre...@4over.com
818-246-1170 ext. 285
On Thu, Nov 3, 2011 at 1:00 AM, romtek rom...@gmail.com wrote:
Hi,
The nature of the development approach that I use is that paths to
resources
(images, CSS and JS files, etc.) relative to the template files during
On Mon, Jul 11, 2011 at 2:43 AM, Anton Andriyevskyy x.meg...@gmail.comwrote:
Is there a way to easily define aliases use them for shorter syntax like
tal:b instead of tal:block,
tal:c instead of tal:content, tal:a instead of tal:attributes etc? It's
becoming useful when you are
kind of
Hi,
If my template code contains an unterminated HTML element (e.g. img
src=stuff.jpg, br, etc.), PHP interpreter takes minutes to process a
request and display an error message. And while doing that, it consumes lots
of CPU and RAM. Could this be improved?
A related request: considering that
2010/10/25 Kornel Lesiński kor...@aardvarkmedia.co.uk
BTW: I wonder whether it's better to have one large file for entire
documentation, or one file per chapter?
I prefer using one file for the entire documentation because it helps me
look for things of interest.
It seems to me that some people here believe that introduction of logical
operators to PHPTAL will force them (the people) to use these operators. It
will not. It will simply give more flexibility to those who want it, and
those who don't will be able to continue using PHPTAL the way they have.
On Fri, Oct 1, 2010 at 12:46 PM, Moritz Baumann flamin...@online.de wrote:
http://phptal.org/wiki/doku.php/improvedtales
I think the next step would be to work out syntax exactly:
Hm, that page mentions a lot more than just logical operators. I guess
that’s
what the negative feedback
Hi,
I sometimes need to use multiple values for the class attribute but can't
seem to find a way to do this in PHPTAL if those values are to be determined
at run-time. For example,
tr tal:attributes=class php:item.isParent() ? 'parent' : null.../tr
I also need to set an additional class value,
2010/9/30 Ionuţ Matei johnu...@gmail.com
Thanks!
I didn't thought that ?: can be used in php:.
If you haven't studied PHPTAL's manual thoroughly, I recommend that you do.
E.g., see http://phptal.org/manual/en/#tal-attributes.
___
PHPTAL mailing
2010/9/27 Kornel Lesiński kor...@aardvarkmedia.co.uk
not:true: works
exists: exists :)
I didn't know it was possible to stack modifiers. Thanks!
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
Hi,
I'd like to be able to use a bit more simple logic in my templates. Being
able to use AND, OR, and NOT would be good. E.g.
tal:condition=event/featured AND event/upcoming, tal:condition=NOT
event/featured AND event/upcoming
I remember there was an activity to extend the library to make
Hi,
PHPTAL offers PHPTALES modifier true: (equivalent of !empty()). I find it
very useful. I would really like to have its opposite. Perhaps, false:. But
I think that not: should be an equivalent of empty(). This would allow us
not to have to check for a variable's existence prior to checking its
For me, the biggest benefit of using PHPTAL is being able to view the code
in WYSIWYG programs. Having a template system in which there are many macros
calling each other on several levels defeats this purpose. I think that in
some cases using pure PHP code may be a better way. The topic being
On Tue, Jun 1, 2010 at 11:10 PM, Tjerk Meesters tjerk.meest...@gmail.comwrote:
I could be wrong here, but I think it's not so much any problem with
require_once as it is to reduce memory consumption while using the
library. This happens when developers only use 30% of the library and
yet the
Kornel, I've noticed this item on phptal.org: Removed all require_once and
switched to autoloading. What are the problems with using require_once?
Roman
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
On Sun, May 30, 2010 at 6:40 AM, Alex a...@xplodinghead.org wrote:
It should be omited instead of ommited.
Omitted :)
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
It (true:) will be very helpful. I've resorted to PHP in cases when true:
would've been useful. Has it been available for a long time?
On Mon, Mar 22, 2010 at 5:49 AM, Kornel Lesinski kor...@aardvarkmedia.co.uk
wrote:
On 20 Mar 2010, at 04:35, romtek wrote:
function phptal_tales_erorrclass
2010/3/17 Kornel Lesiński kor...@aardvarkmedia.co.uk
function phptal_tales_erorrclass($fieldname, $nothrow)
{
return phptal_tales('true:error/'.$fieldname, $nothrow). ? 'error' :
NULL;
}
label class=${errorclass:first_name} labelbox
I've noticed true: there. Is true one of PHPTALES?
2009/10/28 Kornel Lesiński kor...@aardvarkmedia.co.uk
On 28.10.2009, at 23:37, romtek wrote:
I have to return to this topic after upgrading to PHPTAL 1.2.1.
I can't get this method to work. Passing true leads to an error (Fatal
error: Class 'PHPTAL_PreFilter' not found). Passing false
Hi,
Has anyone created and could share a template for a calendar view similar to
one on http://davidwalsh.name/dw-content/php-calendar.php?
Roman
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
2010/1/27 Kornel Lesiński kor...@aardvarkmedia.co.uk
On 27-01-2010 at 08:39:36 Murat Çorlu muratco...@gmail.com wrote:
Is there a simple way to define a custom namespace globally for all of our
templates like tal and metal namespaces?
No, and I'm not planning to add it. TAL namespaces are
2009/12/30 Kornel Lesiński kor...@aardvarkmedia.co.uk
On 29-12-2009 at 22:06:13 romtek rom...@gmail.com wrote:
I was looking for a more elegant way to generate grids using PHPTAL that
what I've been using and stumbled upon this post:
http://lists.motion-twin.com/pipermail/phptal/2007
I was looking for a more elegant way to generate grids using PHPTAL that
what I've been using and stumbled upon this post:
http://lists.motion-twin.com/pipermail/phptal/2007-February/000730.html. In
it, Aaron McClimont has proposed adding a while loop (and also
dowhile)construct to PHPTAL. I think
Hi,
What is an approach to use if there's a need to iterate over the same
collection more than once in a template? Currently, it seems that a
collection's index/pointer is set at the end of the collection, and another
iteration isn't possible.
Using v. 1.2.1.
Roman
This would also be useful for generating plain text email.
On Wed, Dec 9, 2009 at 5:59 PM, Tjerk Meesters tjerk.meest...@gmail.comwrote:
Just out of curiosity, why does this bother you? In (x)html newlines
are at best considered one white-space. Are you using this inside
pre ?
On 12/10/09,
Hi,
I'd like to be able to access superglobals from within a template, but it
seems impossible now. Is there a way to do it?
Roman
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
2009/12/6 Kornel Lesiński kor...@aardvarkmedia.co.uk
On 06.12.2009, at 12:25, romtek wrote:
I'd like to be able to access superglobals from within a template, but it
seems impossible now. Is there a way to do it?
You can use either
php:_POST['foo']
or
$phptal-post = $_POST;
and post
I'd like TALES to be made more powerful. The changes won't affect those who
don't want to use the new capabilities, so I don't see any harm in extending
TALES.
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
2009/11/12 Kornel Lesiński kor...@aardvarkmedia.co.uk
xmlns stops working when you close element.
tal:block xmlns:fb=whatever/
does nothing.
tal:block xmlns:fb=whatever
fb:fan/
/tal:block
should work.
It worked. Thank you.
___
PHPTAL
2009/9/2 Szymek Przybył apocalyp...@gmail.com
Hi Murat!
Just remove DOCTYPE info from second template, it should be only in main
template.
I also find it very useful to have DOCTYPE in all my template secondary
files. This helps me during their development.
Hi,
I have to return to this topic after upgrading to PHPTAL 1.2.1.
I can't get this method to work. Passing true leads to an error (Fatal
error: Class 'PHPTAL_PreFilter' not found). Passing false leads to no
effect -- comment remain in the output. (I've modified my template to make
sure it got
2009/10/28 Kornel Lesiński kor...@aardvarkmedia.co.uk
On 28.10.2009, at 20:48, romtek wrote:
2009/9/2 Szymek Przybył apocalyp...@gmail.com
Hi Murat!
Just remove DOCTYPE info from second template, it should be only in main
template.
I also find it very useful to have DOCTYPE in all my
Hi,
I have a question on the same topic but with somewhat different details.
div tal:repeat=item collection
div tal:content=php: someFunction(item.id)/div
/div
That doesn't work for me. The only way to get what I want is to use
tal:define to define a variable set to item.id and pass it to
On Sun, Jul 5, 2009 at 2:37 AM, Feli aaat...@o2.pl wrote:
If You're interested in Zend Framework here's an article with examples
(including Zend_Application) =
Hi, all,
I like to use PHPTAL for creating views. And now I would like to try to use
a good PHP framework to reduce time and efforts on some tasks. Others must
have researched frameworks, and even used some of them, and could share
their experiences. I would like to know which ones are difficult
On Fri, Jun 26, 2009 at 10:04 PM, Daniel Lima daniel.l...@cilens.infowrote:
echo /trtd; //closes a table row and create a new column
And create a new row as well (prior to creating a new column)?
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
I support everything Werner said in his elaborated reply.
I think using 1em for font-size is correct as it uses the browser's
default value. If it's too much for somebody, he can reduce the
default value. But the default is there for a reason, and it's nice
for a web designer to respect users'
2009/4/28 Kornel Lesiński kor...@aardvarkmedia.co.uk
OK, I've given up on require() and changed it all to require_once().
Is there ever a reason to use require() to include code (not text)?
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
It works exactly as things work in PHP. In PHP, variables defined before
constructs like foreach() and while() are available inside those constructs.
PHPTAL's *repeat* block is similar to those PHP constructs. There's no block
scope in PHP.
What I'd like to have is a separate scope for a macro,
On Tue, Feb 10, 2009 at 2:55 PM, romtek rom...@gmail.com wrote:
Hi,
I've tried to dynamically allocate an object inside a template and gotten
errors. The following gets generated in the compiled code:
*$ctx-new* GuestList(null, $ctx-event-guestlist_id). The bold part
won't work, obviously
Hi,
I've tried to dynamically allocate an object inside a template and gotten
errors. The following gets generated in the compiled code:
*$ctx-new* GuestList(null, $ctx-event-guestlist_id). The bold part won't
work, obviously.
It currently seems impossible to do. Is it?
Thanks
Roman
On Fri, Jan 30, 2009 at 4:57 AM, Kornel Lesiński kor...@aardvarkmedia.co.uk
wrote:
On 30-01-2009 at 03:13:16 romtek rom...@gmail.com wrote:
Assuming that unwinding when handling exceptions is more time consuming
than using if/else mechanism, wouldn't it be better to build this ability
On Mon, Nov 17, 2008 at 4:18 AM, Kornel Lesiński [EMAIL PROTECTED]
wrote:
On 16-11-2008 at 08:24:11 Dave Looker [EMAIL PROTECTED] wrote:
I needed to generate several templates all using the same set of data so
I populated a single template and then reset the template before each
execute.
On Mon, Nov 10, 2008 at 6:21 AM, Kornel Lesiński [EMAIL PROTECTED]
wrote:
On 10-11-2008 at 08:26:02 romtek [EMAIL PROTECTED] wrote:
I just used stripComments(true) on my template object but didn't see any
effect. The output still contained HTML comments. Does this method not
work or have I
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:
table tal:attributes=class php:
On Thu, Jul 31, 2008 at 2:56 PM, Werner [EMAIL PROTECTED] wrote:
E.g. if 'first.tpl' template has a code destination of '/tmp/first/' and
'second.tpl' has a code destination of '/tmp/second/', then there is a
change of having duplicate function names if your calling script executes
templates
49 matches
Mail list logo