[PHPTAL] Localization confusion

2012-10-14 Thread Tjerk Meesters
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

Re: [PHPTAL] Escaping ${} and $

2011-09-02 Thread Tjerk Meesters
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

[PHPTAL] tales eq: modifier

2011-08-26 Thread Tjerk Meesters
$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

Re: [PHPTAL] [PATCH] Shouldn't skip over __get() just because __isset() was defined…

2011-06-28 Thread Tjerk Meesters
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

Re: [PHPTAL] [PATCH] Shouldn't skip over __get() just because __isset() was defined…

2011-06-26 Thread Tjerk Meesters
;)) { >                      $tmp = $base->$current; >                      if (null !== $tmp) { >                          $base = $tmp; > -- > #Terin Stock > Undergraduate, Computer Science (CISE), University of Florida > > ____

Re: [PHPTAL] Extending namespace

2011-06-09 Thread Tjerk Meesters
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

Re: [PHPTAL] PHPTAL and Google Website Optimizer

2011-05-27 Thread Tjerk
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: > >>

Re: [PHPTAL] Compiled code sending SPAM?!?

2011-05-14 Thread Tjerk Meesters
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

Re: [PHPTAL] tal:equal ?!

2011-04-13 Thread Tjerk Meesters
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

Re: [PHPTAL] "There is no namespace declared" error in v. 1.2.1

2011-01-13 Thread Tjerk Meesters
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?

Re: [PHPTAL] "There is no namespace declared" error in v. 1.2.1

2011-01-13 Thread Tjerk Meesters
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

Re: [PHPTAL] Re: Feature request: Allow array as parameter of PHPTAL's set() method

2010-11-22 Thread Tjerk Meesters
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

Re: [PHPTAL] Re: Feature request: Allow array as parameter of PHPTAL's set() method

2010-11-22 Thread Tjerk Meesters
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()

Re: AW: [PHPTAL] Minor feature request

2010-11-04 Thread Tjerk Meesters
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 >

Re: [PHPTAL] require_once vs autoloading

2010-06-02 Thread Tjerk Meesters
- > 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

Re: [PHPTAL] require_once vs autoloading

2010-06-02 Thread Tjerk Meesters
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

Re: [PHPTAL] require_once vs autoloading

2010-06-01 Thread Tjerk Meesters
.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

Re: [PHPTAL] tal:attributes question

2010-03-23 Thread Tjerk Meesters
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. >> >> >>

Re: [PHPTAL] tal:attributes question

2010-03-12 Thread Tjerk Meesters
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

Re: [PHPTAL] PHPTAL template for a calendar view?

2010-02-09 Thread Tjerk Meesters
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

Re: [PHPTAL] PHP newline consumption

2009-12-09 Thread Tjerk Meesters
_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

Re: [PHPTAL] Use of ${} vs tal attributes

2009-12-08 Thread Tjerk Meesters
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

Re: [PHPTAL] i18n:translate and dynamic tal:content

2009-11-23 Thread Tjerk Meesters
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

Re: [PHPTAL] Advanced TALES

2009-11-18 Thread Tjerk Meesters
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

Re: [PHPTAL] Advanced TALES

2009-11-17 Thread Tjerk Meesters
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

Re: [PHPTAL] Escaping of dollar sign ($)

2009-11-04 Thread Tjerk Meesters
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

Re: [PHPTAL] Loading phptal.org fails in IE 6

2009-10-29 Thread Tjerk Meesters
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.

Re: [PHPTAL] Escaping of dollar sign ($)

2009-10-27 Thread Tjerk Meesters
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

Re: [PHPTAL] Conditions inside php:

2009-10-22 Thread Tjerk Meesters
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

Re: [PHPTAL] globally disable auto escaping

2009-10-12 Thread Tjerk Meesters
- > 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

Re: [PHPTAL] javascript code messed up

2009-09-02 Thread Tjerk Meesters
> > > > > ___ > 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

Re: [PHPTAL] extending phptal

2009-08-25 Thread Tjerk Meesters
. Also > > $this->myarray_temp[] = 'val1'; > $this->myarray_temp[] = 'val2'; > $this->myarray = $this->myarray_temp; > > works fine. > > > > Is this known (and wanted?) behaviour ? > > > > >

Re: [PHPTAL] How do I access array keys?

2009-06-18 Thread Tjerk Meesters
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

Re: [PHPTAL] Re: selected=

2009-06-16 Thread Tjerk Meesters
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

Re: [PHPTAL] Re: selected=

2009-06-15 Thread Tjerk Meesters
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

Re: [PHPTAL] selected="selected" doesn't work for me

2009-06-14 Thread Tjerk Meesters
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

Re: [PHPTAL] Cannot access $tpl->vars in PHP

2009-06-12 Thread Tjerk Meesters
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

Re: [PHPTAL] New PHPTAL website!

2009-05-31 Thread Tjerk Meesters
x27;!=', >        'and' => '&&', >        'or'  => '||', >        'lt'  => '<', >        'gt'  => '>', >        'ge'  => '>=', >        'le'  => &#

Re: [PHPTAL] tal:repeat and php:

2009-05-24 Thread Tjerk Meesters
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

Re: [PHPTAL] Validation of XHTML - Solution

2009-05-18 Thread Tjerk Meesters
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

Re: [PHPTAL] Validation of XHTML

2009-05-17 Thread Tjerk Meesters
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

Re: [PHPTAL] Validation of XHTML

2009-05-15 Thread Tjerk Meesters
> 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

Re: [PHPTAL] PHPTAL 1.2.0 alpha

2009-04-29 Thread Tjerk Meesters
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

Re: [PHPTAL] Selected attribute in select list

2009-04-28 Thread Tjerk Meesters
` 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 >

Re: [PHPTAL] Selected attribute in select list

2009-04-27 Thread Tjerk Meesters
"; // 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 > -

Re: [PHPTAL] Template storage in database?

2009-04-22 Thread Tjerk Meesters
== > Jason La > jaso...@gmail.com > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > -- -- Tjerk ___ PHPTA

Re: [PHPTAL] Template folder problem

2009-03-27 Thread Tjerk Meesters
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

Re: [PHPTAL] Set option as selected when an array is used

2009-03-19 Thread Tjerk Meesters
> ["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

Re: [PHPTAL] Dynamic defined slots

2009-02-06 Thread Tjerk Meesters
e. And of course PHP complaints about not finding such a variable > "item/name".. > > > Thanks, > kaaposc > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com >

Re: [PHPTAL] Macro in macro?

2009-01-30 Thread Tjerk Meesters
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

[PHPTAL] phptal and reflection

2008-03-10 Thread Tjerk Meesters
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

Re: [PHPTAL] PHPTAL_RepeatController and PDOStatement

2008-02-02 Thread Tjerk Meesters
> !($source instanceof Traversable)) $source = array(); > > > > but i'm not sure that it's the good or the best solution. > > > > > > > > -- > > > > > > > > Julien > > > > ___ > > PHP