Re: [PHPTAL] Re: Minification of HTML XHTML

2009-08-13 Thread Marco Pivetta
_ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > -- Marco Pivetta - Ocramius Aethril Standard Ogame Project - StOgame http://www.stogame.net Making Ogame a better place... ___

[PHPTAL] Accessing methods of an object from template file

2009-09-16 Thread Marco Pivetta
ns like getAge($user){/*some stuff*/}, but that destroys all the easyness of using classes :\ Thank you for any help! -- Marco Pivetta - Ocramius Aethril Standard Ogame Project - StOgame http://www.stogame.net Making Ogame a better place... ___ PHPTAL

Re: [PHPTAL] Accessing methods of an object from template file

2009-09-16 Thread Marco Pivetta
Thank you :-) Works like a charm ^_^ 2009/9/16 Kornel Lesiński > On 16-09-2009 at 15:44:51 Marco Pivetta wrote: > > Hi there! >> I've been playing around with some classes I've built and now I'm getting >> some problems with PHPTAL integration. The proble

Re: [PHPTAL] Cache problem with double "per"

2009-09-23 Thread Marco Pivetta
in "language" var, not in url, so when i try > to > do something like phptal:cache="1d per url per language" i get an error. > > Is there a way? > > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.c

Re: [PHPTAL] Cache problem with double "per"

2009-09-23 Thread Marco Pivetta
If you place the ';' you won't need to place more than one 'per' :) The idea is good ;) It should be as easy as making a str_concat behind the scene :-) 2009/9/23 Kornel Lesiński > On 23-09-2009 at 08:17:33 Marco Pivetta wrote: > > hmmm... Never used phpta

Re: [PHPTAL] Regression in PHPTAL 1.2.0 in XML support

2009-09-25 Thread Marco Pivetta
n line 7 > > Where 7th line is of course: >> > > Can I somehow use > -- > Rafał > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal >

Re: [PHPTAL] Advanced TALES

2009-11-17 Thread Marco Pivetta
gt; > foo/bar + php:foo() >> > > php:foo() + bar/baz >> > > http://phptal.org/wiki/doku.php/improvedtales > > > -- > regards, Kornel > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.c

Re: [PHPTAL] PHPTAL PEAR news

2009-12-01 Thread Marco Pivetta
stions? > > -- > regards, Kornel > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > -- Marco Pivetta - Ocramius Aethril Standard Ogame Project - StOgame

Re: [PHPTAL] LGPL and commercial licence

2009-12-02 Thread Marco Pivetta
using > PHP obfuscators (like ioncube), you must leave PHPTAL unprotected. > * you should redistribute PHPTAL with its license (COPYING file). > > -- > regards, Kornel > > > > _______ > PHPTAL mailing list > PHPTAL@lists.motion-t

Re: [PHPTAL] XHTML without tal tags

2009-12-03 Thread Marco Pivetta
Kornel > > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > -- Marco Pivetta - Ocramius Aethril Standard Ogame Project - StOgame http://www.stogame.net Making Oga

Re: [PHPTAL] Experimental version with PHP 5.3 namespaces

2010-01-27 Thread Marco Pivetta
modifiers. Currently they're in PHPTAL namespace (PHPTAL\phptal_tales()), > but it might make sense to move them to global namespace, so that existing > modifiers don't need any code changes. > > -- > regards, Kornel > > __

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

2010-02-01 Thread Marco Pivetta
r the time being, but what's the downside of > violating the specs? Nobody is going to fine or imprison you for it. PHPTAL > is an autonomous library. > > _______ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phpt

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

2010-02-09 Thread Marco Pivetta
ar.php? > > Roman > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > > -- Marco Pivetta - Ocramius Aethril http://twit

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

2010-02-09 Thread Marco Pivetta
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 it simpler to build it with an and just some CSS? Table layout > is not that good for calendars

Re: [PHPTAL] recursive ul/li

2010-05-03 Thread Marco Pivetta
Use Macros! :) This will generate nested 's assuming that every "listitem" is an array of 0 or more arrays Marco Pivetta - Ocramius Aethril http://twitter.com/Ocramius 2010/5/3 GRolf > > > Is there a way to print an tree recursively with PHPTal, that i

Re: Re[2]: [PHPTAL] recursive ul/li

2010-05-04 Thread Marco Pivetta
what about adding something like this? Marco Pivetta - Ocramius Aethril http://twitter.com/Ocramius 2010/5/3 GRolf > > > To make matters worse ... would there be a way to show something else on > the last level ? > > I'd like to show a checkbox, but only for the it

[PHPTAL] not working - expected behaviour?

2010-05-05 Thread Marco Pivetta
rectly write to the buffer, but it still doesn't work. Is that an expected behaviour? Is "meta" a reserved xml tag? Is it related with the document type (XML+XHTML) that I've set? Do I have to switch to XML only? Thank you in advance for any suggestions :) Marco Pivetta -

Re: [PHPTAL] not working - expected behaviour?

2010-05-05 Thread Marco Pivetta
So I'm forced to set XML only, right? Marco Pivetta - Ocramius Aethril http://twitter.com/Ocramius 2010/5/5 Murat Çorlu > Meta tags don't have content actually. Maybe this is about that situation. > > Murat Corlu > > > On 05/05/2010 12:09 PM, Marco Pivetta wrote:

Re: [PHPTAL] not working - expected behaviour?

2010-05-05 Thread Marco Pivetta
Works fine now :) Thank you! Marco Pivetta - Ocramius Aethril http://twitter.com/Ocramius 2010/5/5 Kornel Lesiński > On 05-05-2010 at 10:20:28 Marco Pivetta wrote: > > So I'm forced to set XML only, right? >> > > By default PHPTAL works in XHTML mode, and in this m

Re: [PHPTAL] Including other Templates inside a Template

2010-07-27 Thread Marco Pivetta
ml is also passed to the page.xml/htmlpage context :) Marco Pivetta - Ocramius Aethril http://twitter.com/Ocramius 2010/7/27 Julian B. > Hello everybody, > > I want to switch the template/view production of my project to phptal. > Currently it is done via plain php (normal &q

Re: [PHPTAL] PHPTAL and JQUERY tmpl

2010-09-18 Thread Marco Pivetta
Oh my garden! Not another non-validable templating language please :( Marco Pivetta - Ocramius Aethril http://twitter.com/Ocramius 2010/9/17 Kornel Lesiński > On 17 Sep 2010, at 18:46, hosema...@poczta.onet.pl wrote: > > > Maybe it is time to lobby for PHPTAL syntax for JQUERY tm

Re: [PHPTAL] Does PHPTAL supports or tolerate Microdata?

2010-10-08 Thread Marco Pivetta
If there's an xml serialization of it... Don't know much about it, I use microformats instead of microdata atm... Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2010/10/8 > Hey > > I am planning to integrate some semanticweb technolog

Re: [PHPTAL] PHPTAL 1.2.2 Released

2010-10-24 Thread Marco Pivetta
Fantastic! :) I used my own compressor during the beta period, but I feel a bit more safe now that you've pushed in a "standard" version of it :) Thank you! Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2010/10/25 Kornel Lesiński > &

Re: [PHPTAL] Feature request: better integration with doctrine orm

2010-11-22 Thread Marco Pivetta
I'm not sure that should get in another library... I also remind you that D2 is nearing RC state... Couldn't you override that Doctrine_Record behaviour? Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2010/11/22 Ivo Võsa > Hello, > seams

Re: [PHPTAL] Ztal 1.0.0

2010-12-17 Thread Marco Pivetta
That looks promising! :O I used my own Zend_View_Abstract implemented with PHPTAL till now... Will move to your version as soon as possible guys! :) Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2010/12/17 Anton Andriyevskyy > Ouch, this will give goo

Re: [PHPTAL] Ztal 1.0.0

2010-12-19 Thread Marco Pivetta
Robert, do you have any Zend_Application_Resource_Interface resource in the code-base? Didn't see any (had only 10 mins to look at Ztal till now)... Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2010/12/18 Kornel Lesiński > On Fri, 17 Dec 2010

Re: [PHPTAL] Ztal 1.0.0

2010-12-22 Thread Marco Pivetta
0 msecs of time used when creating PHPTAL instance this way... This when running on Xen VPS, Intel i7-920, limited to 1 core, cap to 90% of the cpu clock, 128Mb of ram dedicated to APC (apc.stat=1)... Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2

Re: [PHPTAL] Ztal 1.0.0

2010-12-22 Thread Marco Pivetta
5218 O Please tell me if it's OT, I just like Zend_Application resources that much that I would move to it from any other framework that hasn't them :) Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2010/12/22 Marco Pivetta > Hmm.

Re: [PHPTAL] Ztal 1.0.0

2011-01-05 Thread Marco Pivetta
As soon as I have some time to breath I'll do a pull request in the git repo ;) Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2011/1/5 Robert Goldsmith > Hello :) > > If you look back through the git repo you will notice that until rece

Re: [PHPTAL] macros with optional translation

2011-02-15 Thread Marco Pivetta
I currently use a dummy translator if I don't want my templates to be translated... The overhead is almost 0 :) Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2011/2/15 Robert Goldsmith > Hi again everyone :) > > Currently, the Ztal form

Re: [PHPTAL] space chars and string:

2011-03-24 Thread Marco Pivetta
I would try using this ugly solution: tal:define="space php:' ';" Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com 2011/3/24 Robert Goldsmith > Hi all, > > I'm trying to create a string ending in a space but the

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

2011-05-15 Thread Marco Pivetta
else through $engine->setPhpCodeDestination('/path/to/some/dir/here'); where $engine is your PHPTAL instance :) Marco Pivetta @Ocramius <http://twitter.com/Ocramius> http://marco-pivetta.com On 15 May 2011 06:14, Tjerk Meesters wrote: > Hi, > > Try to move the cache folder instead, fil

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

2011-06-26 Thread Marco Pivetta
Maybe it's just me, but when I have some lazily loaded data I build __isset() accordingly, otherwise __isset() itself is inconsistent... Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 27 June 2011 08:25, Terin Stock wrote: > Normally I can understand that

Re: [PHPTAL] Lets boost PHPTAL support in PHPSTORM!

2011-06-27 Thread Marco Pivetta
Me too :) Tried PHPStorm some days ago, but if PHPTal support comes, then I'll probably switch to it :D Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com 2011/6/27 Kornel Lesiński > On Mon, 27 Jun 2011 11:03:48 +0100, Anton Andriyevskyy > wrote: > > For e

Re: [PHPTAL] How slots are better then macro?

2011-07-11 Thread Marco Pivetta
siteheader.xml template file: Some example text Actual file rendered: Debug Messages: As you can see, the slot is used to combine replace a piece of my template at runtime... Marco Pivetta http://twitter.com/Ocramius http://marco

Re: [PHPTAL] How slots are better then macro?

2011-07-11 Thread Marco Pivetta
if I don't use them, like: This makes me life easier when I want to place a banner in that position in future... I just have to generate the content somewhere else and then stuff it in there with metal:fill-slot. No logic needed in the template. The final view can handle that :) Marco Pivetta ht

Re: [PHPTAL] How slots are better then macro?

2011-07-11 Thread Marco Pivetta
t;> >> This makes me life easier when I want to place a banner in that position >> in future... I just have to generate the content somewhere else and then >> stuff it in there with metal:fill-slot. No logic needed in the template. The >> final view can handle that :) >

Re: [PHPTAL] How slots are better then macro?

2011-07-11 Thread Marco Pivetta
The replacement in the template above is obviously an overkill as it is a required xhtml element, but I hope it renders the idea of being able to replace stuff at precise spots :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 11 July 2011 10:37, Marco Pivetta wrote

Re: [PHPTAL] How slots are better then macro?

2011-07-11 Thread Marco Pivetta
ail->setSlot('content', $content); echo $email; I prefer the second much more because it ALSO allows the usage of variables and encourages (imho) something that looks similar to a Decorator OOP pattern... Can't help with it much more, probably because of my capacity of explaining my id

Re: [PHPTAL] Tal:condition question

2011-07-13 Thread Marco Pivetta
Supposing that you've set variable "l" in your template, you can just write Logout Login That will do :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 13 July 2011 09:21, Teis Lindemark wrote: > Hi, > > ** ** > > I am sitting w

Re: Re: [PHPTAL] Minimized version of modifiers

2011-07-15 Thread Marco Pivetta
iling list about XML strictness being too strict... Please keep it as it is! I love PHPTal as it is: severe on strictness! Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 15 July 2011 12:35, wrote: > Thank you for contacting Canterris. I???m currently out of the o

Re: [PHPTAL] Object causing a parse error

2011-08-01 Thread Marco Pivetta
Just to synthesize :) Last login ${php: $time.timeFromNow($item.getCreated())} becomes Last login ${php: time.timeFromNow(item.getCreated())} Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 1 August 2011 19:35, Darrell Hamilton wrote: > Robert, > > Per t

Re: [PHPTAL] Re: Cleaning cache files

2011-10-06 Thread Marco Pivetta
That's a suicide! Instead, follow what stated by the docs: http://phptal.org/manual/de/split/sysadmin.html Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 6 October 2011 15:38, Bas Kooij wrote: > Well... now I had so many cache files in the temp > directory

Re: [PHPTAL] Re: Cleaning cache files

2011-10-06 Thread Marco Pivetta
Ok, that looks much more affordable :D Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 6 October 2011 16:45, Bas Kooij wrote: > Marco Pivetta writes: > > > > > > > That's a suicide!Instead, follow what stated by the docs: > http

Re: [PHPTAL] nested UL

2011-10-21 Thread Marco Pivetta
What about a recursive macro? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 21 October 2011 21:59, GRolf wrote: > > I have a multilevel array, where, as the template concerns, the number of > levels is

Re: [PHPTAL] PHPTAL Zend Framework 2

2011-11-09 Thread Marco Pivetta
We could try a pure-di implementation... Let's catch up on irc://irc.freenode.net/#zftalk.2 this evening if you'd like to discuss it :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 9 November 2011 14:34, Piotrek Rybaltowski wrote: > Hi, > > Since Z

Re: [PHPTAL] Not documented - strings with '...' ?

2012-03-23 Thread Marco Pivetta
That should be Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 23 March 2012 13:30, Anton Andriyevskyy wrote: > Hello. > > Is it undocumented feature when I can have something like this to output > string: >

Re: [PHPTAL] ZTal 1.3.0

2012-03-27 Thread Marco Pivetta
Hey Robert! Cool stuff, but I already moved to ZF2 here... Might be OT, but just wanted to know if there's some plans about this in some near future, or if I should implement the renderer strategy for ZF2 via PHPTAL myself... Marco Pivetta http://twitter.com/Ocramius http://marco-pivett

Re: [PHPTAL] ZTal 1.3.0

2012-03-27 Thread Marco Pivetta
Indeed :) I am just curious, as PHPTAL will surely be part of my next project which is ZF2 based :) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com 2012/3/27 Kornel Lesiński > On Tue, 27 Mar 2012 19:58:42 +0100, Marco Pivetta > wrote: > > Cool stuff, b

Re: [PHPTAL] ZTal 1.3.0

2012-03-28 Thread Marco Pivetta
@Robert you can count on the fact that I will work on that then :D Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 28 March 2012 10:07, Robert Goldsmith wrote: > Hello :) > > We won't even consider moving ZTal to ZF2 until it is released because the >

Re: [PHPTAL] How about Composer?

2012-04-10 Thread Marco Pivetta
Nice idea! +1 for that (yes, I'm trying to convert all my projects to composer too ;) ) Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 10 April 2012 13:36, Hisateru Tanaka wrote: > I started to use a package manager called Composer but PHPTAL was not > f

Re: [PHPTAL] How about Composer?

2012-04-10 Thread Marco Pivetta
I can make that asap, but you will need to setup an account at packagist.organd setup the hook so that packagist listens to pushes :) Any dependencies we should look for? Extensions/min php version? Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com 2012/4/10 Kornel Lesiński

Re: [PHPTAL] How about Composer?

2012-04-10 Thread Marco Pivetta
Just FYI, here's the PR about this :) https://github.com/pornel/PHPTAL/pull/4 Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 10 April 2012 22:10, Marco Pivetta wrote: > I can make that asap, but you will need to setup an account at > packagist.org and set

Re: [PHPTAL] How about Composer?

2012-04-11 Thread Marco Pivetta
Registration on packagist is still up to kornel as he has access to the administration for the repository. Or at least he should setup the callback Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 11 April 2012 15:05, Hisateru Tanaka wrote: > I was surprised but happ

Re: [PHPTAL] Re: PHP5.4 compatibility

2012-06-09 Thread Marco Pivetta
I just checked the travis build (don't have 5.4 myself here) at http://travis-ci.org/#!/pornel/PHPTAL/jobs/1578050 and it seems ok (well, ok-ish... your test is passing). Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 9 June 2012 19:38, Hisateru Tanaka wrote: >

Re: [PHPTAL] variable variables in phptal?

2012-08-29 Thread Marco Pivetta
Use the ArrayAccess interface and implement your own iterator in your Person object, no? http://php.net/manual/en/class.arrayaccess.php Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 29 August 2012 15:39, GRolf wrote: > > > > Is it possible to use variab

Re: [PHPTAL] Code Generator refactoring

2013-01-08 Thread Marco Pivetta
an AST lib out there that has gained a lot of interest (I think it's used also by the latest wonders of https://github.com/ircmaxell/PHPPHP). Optimizers will come for sure since I'm wondering if I can use PHP-Parser also in doctrine/common :P Marco Pivetta http://twitter.com/Ocramius ht