And is there an easy fix for what I need?
Version = 1.2.2
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
Hi,
Small typo, should be 'escape' instead of 'exscape' ;)
On Sep 3, 2011 3:06 AM, "Kornel Lesiński" wrote:
> On Fri, 02 Sep 2011 09:59:51 +0100, Tarjei Huse
> wrote:
>
Hi, I'm trying to include a JQuery template containing ${} into a
PHPTal template. Is there a way to say "do not use
$chunk);
}, array_chunk(array_map(function($path) use ($nothrow) {
return phptal_tales($path, $nothrow);
}, explode(' ', trim($src))), 2)));
}
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
;)) {
> $tmp = $base->$current;
> if (null !== $tmp) {
> $base = $tmp;
> --
> #Terin Stock
> Undergraduate, Computer Science (CISE), University of Florida
>
> ____
Why not just have tal:content="nl2br: var"
Just define phptal_tales_nl2br() and voila :)
On Jun 10, 2011 12:03 PM, "Hisateru Tanaka"
wrote:
> Hi,
>
> I'm trying to extend namespace of PHPTAL to use in my framework.
> 3 new attributes would introduced.
>
> pal:content-nl2br
> pal:replace-nl2br
> p
I've struggled with this stuff as well, wish I could just integrate with their
optimizer for simple ab testing while still using regular phptal code :-/
--
Urahara san
On May 28, 2011, at 7:40 AM, Kornel Lesi��ski wrote:
> On Fri, 27 May 2011 22:09:37 +0100, Jason Pollentier
> wrote:
>
>>
Hi,
Try to move the cache folder instead, file uploads in /tmp with .php
extension could be associated with security breaches in forum/wp sites.
On May 15, 2011 8:41 AM, "Marco Afonso" wrote:
> Hi all,
>
> I'm new to PHPTAL and I'm loving it!
>
> Although, at the same time I started using it on
For the and operation I've written a modifier that turns all its arguments
into an array of booleans and then uses array_mult() to determine the
outcome for tal:condition.
array_sum could be used for the or-operation ;)
On Apr 14, 2011 2:27 AM, "Kornel Lesiński" wrote:
> On Wed, 13 Apr 2011 14:45
On Jan 14, 2011 1:17 AM, "Kornel Lesiński" wrote:
>
> On Thu, 13 Jan 2011 10:22:52 -, Tjerk Meesters <
tjerk.meest...@gmail.com> wrote:
>
>> Here's the problem; it throw an error, saying that the myns namespace
>> is not defined ... is that expected?
then one of my slots gets filled by a
tag
Using a PreFilter I can then expand the tag into ...
something fancy ;-)
Here's the problem; it throw an error, saying that the myns namespace
is not defined ... is that expected?
Best,
Tjerk
2010/1/27 Kornel Lesiński :
> On 27-01-2010 at
Hi,
My bad, I did read from the beginning but I think certain parts ended in a
void ;)
Still, in my opinion any function that takes name/value pairs is a candidate
for array overloading. I sometimes wished php would do java'ish method
overloading ... is there another reason beyond the one-up comp
Alternatively you could allow overloading set() to accept an array as its
only argument.
On Nov 22, 2010 8:40 PM, "Anton Andriyevskyy" wrote:
> Separate method is good idea, but the name *setAll *may be confusing,
> you may think that it will replace the ones that you have set earlier with
> set()
Interestingly, that's what I ran into yesterday. Found out that while one
version of phptal hides any content inside the empty condition, another
(probably older) version would instead show it, causing a rather
embarrassing few minutes ;)
On Nov 4, 2010 4:49 PM, "Per Bernhardt" wrote:
> Hey, use
>
-
> regards, Kornel
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
ill
make a difference.
This will probably require a change in the major/minor revision
number, so that developers are aware that it may break their code.
Best,
Tjerk
On Wed, Jun 2, 2010 at 5:33 PM, Robert Goldsmith wrote:
> No idea :)
>
> However, if you allowed for autoloading to
.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
can write a prefilter that does what I
> need.
>
> On Fri, Mar 12, 2010 at 3:42 PM, Tjerk Meesters
> wrote:
>>
>> Maybe not via a string but being able to pass attributes using an array
>> with the keys being attribute names would be handy.
>>
>>
>>
Maybe not via a string but being able to pass attributes using an
array with the keys being attribute names would be handy.
On 13-Mar-2010, at 4:12, Christina Van Dyke wrote:
I know you can assign attributes to a tag by doing this: tal:attributes="class string:myclass; id string:myid;">text
Why not just use a client side calendar, such as those provided with
jquery ui?
On 09-Feb-2010, at 19:12, Marco Pivetta wrote:
Didn't think about week days and weeks, sorry ^_^'' (Yeah, stupid
mistake...)
2010/2/9 Kornel Lesinski
On 9 Feb 2010, at 11:00, Marco Pivetta wrote:
> Isn't i
_replace('/\?>\r?\n/', "?>\r\n\r\n", $result);
>
>
>
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
atures, you can use ${}.
>
> tal:attributes allow you to remove attribute completely if value is NULL
> or doesn't exist ("class myClass | nothing"). ${} in attribute will give
> you empty string (class="").
>
> --
> regards, K
nslate="expression" will use value of the expression as translation
> key.
>
>
> I've changed PHPTAL to reject all-whitespace translation keys. Version in
> SVN will now prevent this gotcha.
>
> --
> regards, Kornel
>
>
>
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
n all, I hate
having explicit code in my templates, why can't things in phptal be
fixed in the phptal way? ;-)
Best,
Tjerk
2009/11/18 Kornel Lesiński :
> On 17-11-2009 at 18:42:50 Iván Montes wrote:
>
>> After looking at the wiki page examples, couldn't we solve thi
gt; regards, Kornel
>
> _______
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
variable. Doesn't look very
>> complicated to me.
>>
>> Using regular expressions, you could look for $(.); if \1 is another $,
>> you have a literal $, etc. Anything else but [${\w] should yield an error,
>> of course!
>
> How do you halve/do
page. If I served the
> stylesheet to IE6, it could badly misinterpret it and cause content to be
> inaccessible.
>
> --
> regards, Kornel
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.
Best,
Tjerk
2009/10/27 Kornel Lesiński :
> On 27-10-2009 at 12:34:42 Iván Montes wrote:
>
>> I vote for not changing the behavior but I would like, for next major
>> version of PHPTAL, to break BC for escaping and remove the escaping of
>> the dollar symbol:
>>
>&g
by zero.
>
>
> --
> regards, Kornel
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
-
> regards
> takeshin
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
>
>
>
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
. Also
>
> $this->myarray_temp[] = 'val1';
> $this->myarray_temp[] = 'val2';
> $this->myarray = $this->myarray_temp;
>
> works fine.
>
>
>
> Is this known (and wanted?) behaviour ?
>
>
>
>
>
will work.
>>
>> The second row will throw a "Trying to get property of non-object..."
>> notice.
>
> Use item['date']
>
> item.date is only for objects, and will not work with arrays.
>
> --
> regards, Kornel
>
&g
Hi,
What I meant was:
tal:attributes="selected exists: isSelected"
Always try to avoid using php: constructs in your templates ;-)
Bets,
Tjerk
2009/6/16 Kornel Lesiński :
> On 16-06-2009 at 16:16:53 Igor Sverkos
> wrote:
>
>> Hi,
>>
>> Tjerk Meeste
Hi,
As Kornel mentioned, this is fixed in the repos and it can be made to
work for older versions by using "exists: isSelected" instead of
"isSelected | nothing"
Hope that helps :)
On 6/16/09, Igor Sverkos wrote:
> Hi,
>
> Tjerk Meesters wrote:
>> Hmm I
x27; => 'Option2',
> 'value' => 2,
> 'isSelected' => true
>),
>array(
> 'label' => 'Option1',
> 'value' => 2
>)
> );
>
> --
>
> Scott Trevithick
> sc...@trevithick.ca
> 416-876-0811
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
t;>
>
>
> If you can see other, better solution for my application ,some advices are
> welcome
>
> greetings
> Majkel
>
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/m
x27;!=',
> 'and' => '&&',
> 'or' => '||',
> 'lt' => '<',
> 'gt' => '>',
> 'ge' => '>=',
> 'le' =>
That's because you're using the php: construct; try
tal:condition="php: box['nr'] > 5"
Though, usually - wherever I can - i insert the condition inside the
list of elements I'm iterating over, so that I don't have to use php:
Best,
Tjerk
On Sun
lot" without the tal: prefix
3) same for i guess? ;-)
Best,
Tjerk
On Mon, May 18, 2009 at 3:12 PM, Guillaume Lecanu wrote:
> Le dimanche 17 mai 2009 à 20:32 +0800, Tjerk Meesters a écrit :
>
>>
>>> It would be much easier if you could just add tal: and metal: in
ome
> attributes that enabled me to validate 3 attributes:
>
>
>
>
>
>
> I see that Tjerk has written:
>
>> It would be much easier if you could just add tal: and metal: inside the
> %coreattrs definition ;-)
>
> I'm not sure what he means. If anyone
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
ists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
` ORDER BY category"); // get all categories
> $t->form = getRows($formSQL);
>
>
> Greetings,
>
> Julian Haupt
>
>
>
> --
> Julian Haupt B.Sc.
>
> Hauptmedia
> Landgraf-Georg-Str. 25
> 64283 Darmstadt
>
> fon: +49 6151 - 278 041 7
>
"; // get the row to be edited
>
> $t = new PHPTAL("test.html");
> $t->categories = getRows("SELECT id, category FROM `resources-categories`
> ORDER BY category"); // get all categories
> $t->form = getRows($formSQL);
>
> Template
> -
==
> Jason La
> jaso...@gmail.com
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
--
Tjerk
___
PHPTA
ic/index.php will need to use
>> PHPTAL("../private/tpl/template.xml"), and template may use
>> href="css/style.css" to refer to stylesheets (CSS/JS paths in templates
>> are
>> relative to page URL that browser sees).
>>
>
> --
> Daniel
> ["label"]=>
> string(2) "20"
> ["value"]=>
> string(2) "20"
> }
> [2]=>
> array(2) {
> ["label"]=>
> string(2) "50"
> ["value"]=>
> string(2) "50"
> }
> [3]=>
> array(2) {
> ["label"]=>
> string(3) "100"
> ["value"]=>
> string(3) "100"
> }
> }
>
> Can you help me?
>
> Regards,
> ...
> --
> Daniel Lima
> Web Developer
>
--
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
e. And of course PHP complaints about not finding such a variable
> "item/name"..
>
>
> Thanks,
> kaaposc
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
>
nc/main" template
> :/ What I done wrong?
>
>
> cheers!
> szymek
>
>
> ___
> PHPTAL mailing list
> PHPTAL@lists.motion-twin.com
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
--
Sent from my mobile device
--
Tjerk
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
Hi,
After my recent recompilation of PHP, the logs were showing errors regarding
the reflection classes; however, the documentation never states its
dependency.
Tip: make sure that the ./configure line doesn't include
"--disable-reflection" during PHP installation.
Best,
Jack
> !($source instanceof Traversable)) $source = array();
> >
> > but i'm not sure that it's the good or the best solution.
> >
> >
> >
> > --
> >
> >
> >
> > Julien
> >
> > ___
> > PHP
52 matches
Mail list logo