On 31-07-2008 at 14:18:39 Alejandro Giardino [EMAIL PROTECTED]
wrote:
I'm using PHPTAL with some forms in a web site. PHPTAL is writing files
in /tmp as a usual behavior, but I would need to avoid the files creation
It can't be avoided currently. Why do you need to do that?
--
regards,
On 31-07-2008 at 20:56:42 Werner [EMAIL PROTECTED] wrote:
Just another potential pitfall worth mentioning in there, maybe, is the
fact that you should be careful when your templates output intermediate
files to more than one directory
No, it's not a problem. Function name contains MD5 of
On 07-08-2008 at 13:37:19 Jakub Argasiński [EMAIL PROTECTED] wrote:
variables inside !--[if IE]...![endif]-- are not parsed.
Indeed, because technically it's a comment. PHPTAL is not IE, so it
doesn't interpret magic IE tags.
You can hack around it with something like this:
tal:block
On 08-08-2008 at 17:18:31 Guillaume Lecanu [EMAIL PROTECTED] wrote:
But all the structure is stored in DB, so I don't know in advance if one
menu have 1, 2, or 10 childrens, and I don't know if a children is a
submenu.
I know how to do that in PHP without PHPTAL, but how is it possible to
do
On 20-08-2008 at 15:25:50 romtek [EMAIL PROTECTED] wrote:
The manual has been changed recently, but it still doesn't describe some
things added recently. I've checked several things that I think would be
helpful for new PHPTAL users to know , and none of them are in the
manual:
- nothing or
On 24-08-2008 at 11:01:10 Stefan Riehmer [EMAIL PROTECTED] wrote:
i thought i might share my ideas on a special cache, that will be
refreshed when a special event is triggered.
Refreshing by triggers is pretty complicated. You usually have news in
your front-end templates (perhaps even
On 28-08-2008 at 08:09:44 Michał Taszycki [EMAIL PROTECTED] wrote:
would it be possible to update
https://svn.motion-twin.com/phptal/tags/directory to contain latest
releases. It would be convenient for those using
svn:externals.
Good point. Fixed.
--
regards, Kornel
On 04-09-2008 at 10:12:37 Christoph Frick [EMAIL PROTECTED] wrote:
But it causes error Unable to find path number in current scope. Is
this possible to make such a condition?
I know I could generate in PHP something like item/isThird but I wish
to keep my PHP code clean from such hacks.
you
On 08-09-2008 at 12:27:50 Ernesto Baschny [cron IT] [EMAIL PROTECTED]
wrote:
I could try some nested ? expressions, but this turns out to be quite
ugly, e.g. if I would have more than 2 classes to set
You can concatenate strings in php: expressions - just add spaces around
., i.e.:
On 08-09-2008 at 14:53:10 Ernesto Baschny [cron IT] [EMAIL PROTECTED]
wrote:
I could try some nested ? expressions, but this turns out to be
quite ugly, e.g. if I would have more than 2 classes to set
You can concatenate strings in php: expressions - just add spaces
around ., i.e.:
On 09-09-2008 at 10:57:24 Zbyněk Nevrlý [EMAIL PROTECTED] wrote:
Hello,
I have question about syntax iterable objects. Here is code:
div id=MText tal:condition=php: language == 'cz' tal:repeat=item
itemsList tal:content=item/poznamkafoo value/div
Well, I want to format value item/poznamka by
On 11-09-2008 at 04:20:11 zou guangxian [EMAIL PROTECTED] wrote:
If the code is:
[CODE]
div class=blank_bg tal:define=book relative/book
tal:condition=php: count(book)0/div
[/CODE]
will generate
[RESULT]
?php
$ctx = $tpl-pushContext() ;
$ctx-book = phptal_path($ctx-relative, 'book',
On 17-09-2008 at 14:57:59 Zbyněk Nevrlý [EMAIL PROTECTED] wrote:
I have a several question about variables in PHPTAL templates:
1) How to put phptal variable to string. Here is code. I want to get
variable nestedItem['m_obrazek'] to property onclick.
${nestedItem['m_obrazek']}
You can use
On 02-10-2008 at 19:15:47 a b [EMAIL PROTECTED] wrote:
How to add two or more post/pre filters to the template?
_prefilter is not an array, so just last filter is executed.
class MyBunchOfFilters implements PHPTAL_Filter
{
function filter($code)
{
On 03-10-2008 at 21:56:04 a b [EMAIL PROTECTED] wrote:
How to modify default namespace
to have shorter notatnion of:
tal:block i18n:translate=my string/tal:block
(assuming I do not use i18n:translate=var)
for example as:
tal:langmy string/tal:lang
There's nothing within TAL syntax that can
On 08-10-2008 at 23:57:05 Axel Zöllich [EMAIL PROTECTED] wrote:
abc.php:
$ergebnis = $mysqli-query(SELECT * FROM farbe);
while ($zeile = $ergebnis-fetch_object()) {
$typen[farben][][kuerzel] = $zeile-kuerzel;
$typen[farben][][bez] = $zeile-bez;
}
On each loop iteration you're creating two
On 09-10-2008 at 20:11:22 admi [EMAIL PROTECTED] wrote:
I can set it to null if I know it was used in content.html. What if I
don't know wchich variables have been used ?
content.html uses $t-content, but I'd like to unset $t-content after
executing and not knowing that content.html used
On 10-10-2008 at 15:46:10 Guillaume Lecanu [EMAIL PROTECTED] wrote:
If PHPTAL read it, I suppose all readed macros will be saved in memory,
and so we should uses it everywhere without the need of ${m};
You could try to hack PHPTAL::executeMacro() function - get base function
name that your
On 10-10-2008 at 10:25:36 Guillaume Lecanu [EMAIL PROTECTED] wrote:
I have a file macros.html with all my macros for our website.
But this is really annoying to call each macros like this :
metal:use-macro=../../macros.html/name_of_my_macro
There is a solution to force to load macros.html and
On 12-10-2008 at 11:21:18 Iván -DrSlump- Montes [EMAIL PROTECTED]
wrote:
The problem is probably that PHPTAL parser doesn't know how to correctly
process the PHP ternary operator.
No, it does.
table tal:attributes=class php: record/works_page ?
'llista_cancons' : 'llista_canconsindiv'
On 10-10-2008 at 19:16:36 admi [EMAIL PROTECTED] wrote:
If you may tell me where in PHPTAL (in which file) it is read, so I
could put some of my code there and unset it automatically while reading
:)
It's in Context.php → __get()
--
regards, Kornel
On 14-10-2008 at 10:53:58 Iván -DrSlump- Montes [EMAIL PROTECTED]
wrote:
I think that CDATA is special enough as to have its own handler, I mean
that it should be equivalent to 'structure'. Since TAL should output XML
valid
documents, having a way to specify a CDATA section seems logical.
On 14-10-2008 at 10:08:15 Ernesto Baschny [cron IT] [EMAIL PROTECTED]
wrote:
It would be cool to have a tal:cdata= boolean value, where one could
switch on generation of CDATA wrapping automatically, so one could write:
script tal:content=structure myJsCode tal:cdata=true/script
And doesn't
On 13-10-2008 at 21:22:26 Iván -DrSlump- Montes [EMAIL PROTECTED]
wrote:
prefix the content with the 'structure' keyword, it will use the value
verbatin.
script tal:content=structure myJsCode/script
This may make XHTML ill-formed if there's any or in the script.
script/*![CDATA[*/
On 14-10-2008 at 12:01:27 Guillaume Lecanu [EMAIL PROTECTED] wrote:
When there is an error into my code, the error reported by PHPTAL is not
really precise.
I'm searching a way to tell me which line in my original template file
the error is found.
What error are you getting?
I have tried to
On 14-10-2008 at 13:01:28 Guillaume Lecanu [EMAIL PROTECTED] wrote:
Argh, just tried with macros, and this doesn't report the good line.
Technically, I have a /templates/template.html with some of global parts
common to every page.
Into this template.html, there :
div id=content
On 13-10-2008 at 22:57:29 admi [EMAIL PROTECTED] wrote:
Thanks! But..
Context.php -
public function __get($varname)
{
var_dump(Trying to get something!);
return huh?;
if ($varname == 'repeat')
return $this-__repeat;
...
}
Doesn't display anything
On 21-10-2008 at 07:03:50 Maciej Łebkowski [EMAIL PROTECTED] wrote:
I dont know if there are any drawbacks — cache, optimisation, etc?
If you've implemented PHPTAL_Source well then cache should work fine as
long as code of the macro doesn't change too often.
Or maybe I am missing some
New version of PHPTAL is available.
It's a release candidate, because it has a small backward-incompatible
change and I'd like to hear your feedback about it.
--
regards, Kornel
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
On 21-10-2008 at 12:01:56 tarjei [EMAIL PROTECTED] wrote:
New version of PHPTAL is available.
It's a release candidate, because it has a small backward-incompatible
change and I'd like to hear your feedback about it.
Can you describe the change?
Detailed information is on PHPTAL's
On 21-10-2008 at 12:52:02 Maciej Łebkowski [EMAIL PROTECTED] wrote:
I don`t think it is possible. ;-) It relies too much on the user input.
For example, the content of the page (markdown syntax) can be
extended with some data from atom feed.
Reading of atom feeds doesn't sound like
On 30-10-2008 at 16:52:48 Michael Hart [EMAIL PROTECTED] wrote:
Should be tal:attributes=class php: repeat.ranking.odd ? 'odd' : NULL
Fixed in the English version (translations will get fixed later).
Thanks!
--
regards, Kornel
___
PHPTAL mailing
On 03-11-2008 at 23:36:55 Christian Welzel [EMAIL PROTECTED] wrote:
But phptal_tales() seems not to be the right function as it generates
the line as this:
Core_Helper_LinkHelper::getInstance()-createUrl('folder',array('goto'=$ctx-'.phptal_path($ctx-ud
, 'id').',))
which ends in a parser
On 04-11-2008 at 18:45:10 Christian Welzel [EMAIL PROTECTED] wrote:
Now it generates this:
Core_Helper_LinkHelper::getInstance()-createUrl('folder',array('goto'=$ctx-{phptal_path($ctx-ud,
'id')},))
what leads to the runtime error: Unable to find path 0 in current scope.
0 is the value of
On 05-11-2008 at 21:18:11 Krzysztof Suszyński [EMAIL PROTECTED]
wrote:
Is there a plan to make PHPTAL working with multiple filter/modifier
functions with easy interface like for ex.:|
You can create derived PHPTAL class that has interface you want with help
of method given in FAQ:
On 07-11-2008 at 09:56:22 Krzysztof Sikorski [EMAIL PROTECTED] wrote:
tal:block omit-tag=?php exit; ?/tal:block
Sorry, it should be tal:block omit-tag=1 replace=?php exit;
?/tal:block.
BTW: omit-tag is never needed on tal:block, and it's redundant with
replace.
--
regards, Kornel
On 11-11-2008 at 06:27:16 Werner [EMAIL PROTECTED] wrote:
Hmmm, this makes me wonder... the first thing that jumps to mind is that
one would consider caching a template's meta-/config data together with
the template itself, in order to detect configuration / state changes
since the last
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.
However using setSource() to load a template instead of setTemplate()
On 18-11-2008 at 06:12:18 romtek [EMAIL PROTECTED] wrote:
I'd like to understand the purpose of this method. Is it to initialize a
template object with a template in memory, not in file?
Yes.
What's the path parameter for?
For example it's displayed in error messages instead of anonymous
On 19-11-2008 at 04:31:07 romtek [EMAIL PROTECTED] wrote:
Please elaborate on this. Particularly, I don't know what an anonymous
string is. Perhaps, a short example would be helpful.
If you use $phptal-setSource(perror!), PHPTAL will report that you've
got error in string XXX line 1, and
On 19-11-2008 at 10:38:49 Szymek Przybył [EMAIL PROTECTED] wrote:
What difference is between replace and content?
Replace always replaces entire tag. It's a shortcut for tal:omit-tag and
tal:content at once.
In my example I want to add after price variable EURO sign. But maybe
better
On 19-11-2008 at 20:43:49 Szymon Przybył [EMAIL PROTECTED] wrote:
And now, when I want to use sings like or in js code, I write:
if(countx tal:replace=structure ''/3)
...and you create invalid XHTML.
(otherwise xml parsing will return an error)
Because literal and are forbidden in
On 20-11-2008 at 15:23:30 Szymek Przybył [EMAIL PROTECTED] wrote:
Is there some way to add automatically
/*![CDATA[*/
/*]]*/
on start and end of js scripts?
You can write regular expression that does it and hook it up using
phptal-setPreFilter().
If you have decent text editor that
On 04-12-2008 at 09:34:03 a b [EMAIL PROTECTED] wrote:
Below is a sample of how I store and display in PHP tree structure
stored in the database.
Can anybody tell me how to rewrite this code into PHPTAL?
I assume, that I should use macro recurrency, but how to prepare array in
such case?
On 16-12-2008 at 11:39:48 Nick Pack n...@carbidefinger.net wrote:
Sorry to dig up an old thread guys, I've been attempting to use Kornel's
code below but am getting an exception when there is not a third
dimension
array, for example:
ul metal:define-macro=recursivelist tal:condition=menu
On 04-01-2009 at 00:05:39 Alister Cameron alister.came...@cameroncreative.com
wrote:
Can you please shed some light on what are best practices regarding
keeping PHPTAL fast?
PHPTAL does most of the work at compile time, so after first execution of a
template, the overhead is minimal.
The
On 03-01-2009 at 14:41:26 Mikael Andersson mail.mi...@gmail.com wrote:
It works fine now, just in case someone else runs into similar trouble
this is what I've done.
1. set the encoding for the PHPTAL object
2. Added ?xml version=1.0 encoding=ISO-8859-1?
3. Added meta http-equiv=Content-Type
On 06-01-2009 at 11:46:58 Alister Cameron alister.came...@cameroncreative.com
wrote:
Excuse my ignorance, Kornel.
Can you elaborate on what you mean by not secure?
I use structure a fair bit to return, say, a fully formatted anchor tag.
That DOES have the character in it.
Sorry, I wasn't
On 17-01-2009 at 17:59:04 Karol Sikora ka...@elektrrrus.pl wrote:
I tried to use a sample code from documentation (chapter 4.1):
div tal:define=welcome random_welcome_message/
div i18n:translate=welcome.../div
It throws an exception with message that message is undefinied.
I think it should
On 26-01-2009 at 17:35:34 admirau admi...@gmail.com wrote:
Is there a chance to run PREFilter on macro or slot?
In my PreFilter I load $xhtml into PHP DOM and do recursive walking on
all text nodes.
When I run it as PreFilter on the template with macros/slots nothing
happens.
The same as
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 into
PHPTAL?
Yes, exceptions are slower, but it doesn't make noticeable difference
On 30.01.2009, at 18:09, romtek wrote:
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
And in php:
$tal=new PHPTAL('inc/main.html');
$tal-setTemplate('pages/forum.html');
$tal-setTemplate('pages/forum/main.html');
And it doesn't work - there is only forum, without inc/main
template :/ What I done wrong?
You can't set more than one template at a time. Call to setTemplate()
On 12-02-2009 at 14:23:37 Szymek Przybył apocalyp...@gmail.com wrote:
exception 'PHPTAL_Exception' with message 'Invalid element name
'ohhe.length;qhxk+=3){ifdm+=rkfg(ohhe.substr'' in
/inc/PHPTAL-1.1.14/PHPTAL/Dom/Node.php:107 Stack trace: # etc...
Code has been injected into your template
On 27-02-2009 at 16:17:37 Moritz Baumann flamin...@online.de wrote:
skeleton.html:
html metal:define-macro=skeleton
tal:block metal:define-slot=header /
tal:block metal:define-slot=content /
/html
another file:
$phptal-setSource('tal:block metal:use-macro=skeleton.html/skeleton
div
On 28.02.2009, at 00:41, Richard Cernava wrote:
I've noticed that PHPTal places the repeat value variable in the ctx
object, which happens to be the same scope as all others
assigned to view.
[...]
I'm not sure if this is a bug or not considering standard php practice
is to make these
On 03-03-2009 at 00:34:53 Alister Cameron alister.came...@cameroncreative.com
wrote:
Because I'm using PHPTAL in a WordPress theme, I want to disable PHP
except for some very basic logic operations.
Has anyone done this, and if so, how?
Is there some elegant and simple way to control which
On 03-03-2009 at 12:58:02 Szymek Przybył apocalyp...@gmail.com wrote:
I have on page multilevel list menu.
Please read FAQ entry titled Output trees recursively (e.g. nested multi-level
menus)
http://phptal.motion-twin.com/faq.html#q-trees
--
regards, Kornel
On 13-03-2009 at 20:17:53 majkel hosema...@poczta.onet.pl wrote:
As we can see almost everywhere I have to use t prefix ${t/classname}
in variable.
[…]
How can I get rid of t prefix($tpl-t) and access directly ex:
${classname}?
In PHP you could assign all $t's properties as variables:
On 04.04.2009, at 22:25, Bobby wrote:
I want to eventually make an error list macro, my errors are sent to
the
template under a constant key name,
for example:
interface AppConstants {
const ERROR_KEY = 'error_key';
}
$template = new PHPTAL('example.html');
On 15-04-2009 at 12:16:53 Urša Baričević uba...@gmail.com wrote:
Hello,
I have structure like this:
array(
'gallery',
'gallery/category,
'gallery/category/subcategory1',
'gallery/category/subcategory2',
'gallery/category2/subcategory1',
);
How to convert this
On 22-04-2009 at 14:04:38 Szymek Przybył apocalyp...@gmail.com wrote:
*Fatal error*: Uncaught exception 'Zend_Controller_Response_Exception'
with
message 'Cannot send headers; headers already sent in
/home/szymon/domains/
On 22-04-2009 at 14:59:07 Szymek Przybył apocalyp...@gmail.com wrote:
NewsController.php have exacly the same content as IndexController from
tutorial.
It probably has whitespace or BOM at the beginning, and the issue you're having probably has absolutely nothing to do with Zend or PHPTAL.
On 23-04-2009 at 02:17:50 Jason La jaso...@gmail.com wrote:
Is possible to store templates in a database instead of the file
system, and how would I go about doing that?
You can use PHPTAL-setSource() in current stable release.
In version 1.2.0 you can create your own SourceResolver class
On 24-04-2009 at 08:19:41 CREATIVE0809 trance_creat...@mail.ru wrote:
My site use several locales in the same time. Encoding can differ from
user to user.
UTF-8 would save you a lot of hassle.
That's why i'm wrote this patch.
I need simple way to set the encoding during script's execution,
On 26-04-2009 at 18:43:11 Jason La jaso...@gmail.com wrote:
Is there a repository or library of modifiers for PHPTAL?
There's repository of filters:
http://taat.pl/phptal_filter_library/
but there isn't any for modifiers yet.
I've see that you can create custom modifiers, and the method
On 29-04-2009 at 00:53:41 romtek rom...@gmail.com wrote:
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)?
I hoped it would be faster than require_once, but it turned out that with
relative paths the
On 29-04-2009 at 19:07:27 Tjerk Meesters tjerk.meest...@gmail.com wrote:
Guess the __DIR__ constant came a bit too late then ;-)
I had PHP_DIR there previously, but that had a mysterious side-effect of
slowing down includes in APC.
--
regards, Kornel
On 14-05-2009 at 06:34:11 Alister Cameron alister.came...@cameroncreative.com
wrote:
Could I bother someone to have a look at the processed cache file and
diagnose?
http://www.alistercameron.com/tal.src.txt
This code uses entry variable _after_ the loop (e.g. in
id=post-${entry/the_ID}).
It seems that you've used slots where macros would have been more appropriate.
This just defines the same slot many times:
span tal:repeat=entry entries omit-tag=
span metal:define-slot=cfct_excerpt /
/span
and the code below it, outside the loop:
div metal:fill-slot=cfct_excerpt
Hi Guillaume,
I can't send you e-mails privately - your e-mail server doesn't want to talk to
mine [82.70.200.180].
Do you have another e-mail address or can I send response to the mailing list?
--
regards, Kornel
___
PHPTAL mailing list
On 20-05-2009 at 14:21:27 Gustaw Smolarczyk wielkie...@gmail.com wrote:
When can I expect PHPTAL 1.2 tree stable release? It has some new
elements (HTML5, source resolvers) that would be useful for my newest
project, but it should be also stable as stone.
If you're starting a new project,
On 26-05-2009 at 13:22:10 Dominique Sandoz j...@gmx.ch wrote:
Hi Tjerk,
thank you very much! Worked like a charm :)
Do you know if its possible to use repeat/box/number like
tal:condition=php: repeat/box/number GT 3 ?
Yes. Use repeat.box.number (with php: expressions '.' means '-' and like
On 28-05-2009 at 18:00:05 Y.BAYAR yasarba...@gmail.com wrote:
I have just replaced the version 1.2 beta 1 with beta 3, firefox
displayed
Connection Interrupted message. It works fine with beta 1.
Does it happen with any particular template? Is it encoded in UTF-8?
If you just run:
On 01.06.2009, at 14:09, admirau wrote:
Starting from the top:
* Kerning in PHPTAL logo could be improved
What's wrong with it? Improved how? I thought that's browsers' job.
* Upper right gray area is unused == takes important place
I plan to put search box there.
But the main issue
On 02-06-2009 at 17:32:17 Igor Sverkos
igor.sverkos+php...@googlemail.com wrote:
and write a custom modifier like
function phptal_tales_myDate($src, $nothrow)
{
$value = ???
$value = phptal_tales($src,$nothrow);
$result = date('o-m-d H:i:s', $value);
return '' .
On 02-06-2009 at 18:14:27 Igor Sverkos
igor.sverkos+php...@googlemail.com wrote:
$value = phptal_tales($src,$nothrow);
$result = date('o-m-d H:i:s', $value);
return '' . $result . '';
}
Hmm.. doesn't work for me.
After the phptal_tales() call, $value has the value:
(string:31)
On 08-06-2009 at 16:17:58 Michał Wysoczański mic...@wysoczanski.net
wrote:
I've tried to use PHPTAL with templates with some long text nodes (i.e.
plong text here.../p),
and noticed that PHPTAL generates internal server error (500) (tested on
1.2.0b3 and svn HEAD).
Error is generated by
On 10.06.2009, at 23:57, hosema...@poczta.onet.pl wrote:
Hi how to get $tpl-vars to include them for ex. into array and than
execue inside template?
Ex.
I have defined:
$tpl = new PHPTAL('tpl/header.tpl');
$tpl-title = 'Panel administracyjny';
$tpl-manage = 'manage';
$tpl-settings =
On 18-06-2009 at 15:29:59 Igor Sverkos
igor.sverkos+php...@googlemail.com wrote:
why are value variables of loops (e.g. tal:repeat) set in the global
scope
($ctx)?
$ctx is not global scope, it's top of the scope stack - the current scope.
In 1.1.x scope stack was not pushed before
On 22-06-2009 at 12:26:34 Nick Pack n...@carbidefinger.net wrote:
I have been experimenting with the Modified Pre-Order Tree Traversal
Pattern, my test case code is returning the results as expected however
I am having trouble with the metal macros to present it.
I think the easiest way is
On 27.06.2009, at 04:04, Daniel Lima wrote:
So, i am trying to do the same thing using PHPTAL but it dont works
fine with increment counters.
My initial code is::
table
tr
tal:block repeat=item test define=i php:0;
td tal:content=php: i++xxx/td
tal:block condition=php:(i==numberOfCols)
On 19.07.2009, at 18:52, Jacek Karczmarczyk wrote:
Hi there,
I've just tried tal 1.2 in my app and it shows me the error
Unsupported
attribute 'rel' in line:
link rel=stylesheet ...
Two questions:
- I assume this is a bug and will be fixed, right?
PHPTAL shouldn't reject any attributes.
On 19-07-2009 at 19:58:26 Jacek Karczmarczyk jkar...@gmail.com wrote:
The exception is:
PHPTAL_ParserException Object
(
[srcFile] = ...path/views/layouts/default.html
[srcLine] = 5
[message:protected] = Unsupported attribute 'rel'
[string:private] =
[code:protected] = 0
On 20-07-2009 at 04:03:32 Levi Stanley l...@eneservices.com wrote:
Patch Adds:
+ I added force parsing every time the script is ran.
+ Added an include option, so you are now able to include your
modifiers, prefilters, etc.
+ Now using getopt
Thanks!
Custom includes is a good idea.
However
On 20-07-2009 at 13:00:20 Levi Stanley l...@eneservices.com wrote:
Valid point. I have modified the script, and move some things around.
Thanks.
I've commited your patch to the repository and added support for '--'
option (that stops parsing of other options).
--
regards, Kornel
On 22-07-2009 at 08:38:11 Wallace McGee wall...@petrosys.com.au wrote:
I mentioned previously how the error line-numbers dont quite match up.
Not a big deal as looking around the line specified gets me close.
If it helps, here is a snippet of my templates (they are quite large
with macros and
Digits weren't allowed in modifier names. I don't see why, so I've removed
that restriction in SVN.
--
regards, Kornel
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
On 30-07-2009 at 05:59:03 Wallace McGee wall...@petrosys.com.au wrote:
Hi guys..
A couple of you mentioned peppering my code with echos, or installing
XDebug to debug why some phptal 1.2.0 templates appear to go into an
infinite loop, where as the same template using 1.1.7 does not.
On 05-08-2009 at 10:47:49 Łukasz Palka lukasz.pal...@gmail.com wrote:
I recently started using PHPTAL and Doctrine. Unfrotunatly I cannot
access
some properties like:
div tal:repeat=comment post/Comment
but this works:
div tal:repeat=comment php:post.Comment
After deleting else from
On 06-08-2009 at 22:53:22 Ionut Matei johnu...@gmail.com wrote:
If a template contains php code, it gets into the compiled template and
will be executed...
I think a pre-filter can be created for stripping php code, but Is there
a feature or setting in PHPTAL for preventing executing php
On 06-08-2009 at 18:48:46 Richard Cernava cern...@gmail.com wrote:
I'm at a loss to find a method to disable PHPTAL parsing for a block of
XML/HTML. I am aware that there placing anything in a comment removes it
exempts
it from being parsed, but I have not found another method.
What I'm
On 07-08-2009 at 14:32:43 Guillaume Lecanu guilla...@lya.fr wrote:
Hi everybody,
I use this syntax :
input name=firstname value= tal:attributes=value firstname| /
Note the pipe character at the end of the expression.
So, if the firstname value exists, this show it and if the value is not
On 07-08-2009 at 15:08:03 Guillaume Lecanu guilla...@lya.fr wrote:
Hi again,
I have in my form a field civility like that :
labelCivility/label
ul
li
input type=radio name=civility value=Miss
id=civility-miss /
label
On 07-08-2009 at 15:28:07 Richard Cernava cern...@gmail.com wrote:
An example would be:
span tal:content=string:I'm PHP/
div tal:interpret=false
span tal:content=string:I'm javascript/
/div
phptal's out put would be:
spanI'm PHP/span
div
span tal:content=string:I'm javascript/
/div
On 13-08-2009 at 20:04:04 hosema...@poczta.onet.pl wrote:
I keep my templates in .tpl files with indentation
[…]
I noticed that all indentation are thrown to the browser and looking for
the XHTML source of page there are unnecessary 'tabs' in a front of
XHTML.
Is there option/instruction
On 18-08-2009 at 02:52:32 Alister Cameron
alister.came...@cameroncreative.com wrote:
Sometimes I just scratch my head...! And I recall a line from Danny
Glover's
character in Lethal Weapon:
I'm too old for dis shit!
That said, I'll keep trying to convert a WordPress theme into elegant
On 18-08-2009 at 02:40:31 Alister Cameron
alister.came...@cameroncreative.com wrote:
I want to handle i18n as well as variable insertion (and conditions) from
WordPress... as per this example:
h3?php printf($comment_count 1 ? __('span%d/span Comments',
'thematic') : __('spanOne/span Comment',
On 18-08-2009 at 08:25:32 Alister Cameron
alister.came...@cameroncreative.com wrote:
I have this string as the translation key:
You must be a href=path/goes/here title=Log inlogged in/a to
post a comment.
Two issues with it...
1. I want the href to be a variable.
2. I want the HTML
On 18-08-2009 at 11:04:02 Alister Cameron
alister.came...@cameroncreative.com wrote:
Thanks heaps Kornel.
Can I extend this with variable substitution of the href attribute? As:
div i18n:translate=structureYou must be a i18n:name=loginlink
href=
title=Log in tal:replace=href
1 - 100 of 260 matches
Mail list logo