I don't think this behavior was in the older versions, you can download the
older version and check it out.
On Mon, May 21, 2012 at 4:18 AM, Robert Goldsmith rgoldsm...@names.co.ukwrote:
Hello :)
I was actually surprised that the behaviour existed in the first place
simply because it
So, you are trying to subtly suggest having a strict mode which uses a
pre-filter to turn this behavior off? However, I like the current behavior
because it allows me to slowly migrate old pages over to phptal. Also, it
allows me to write a pre-filter that allows me to see what code hasn't been
hope this has helped you out.
Best regards,
Levi Stanley
On 11/03/11 04:00, romtek 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 design time are different from those during run time
.
Best regards,
Levi Stanley
On Fri, Nov 4, 2011 at 9:26 AM, adobebi...@gmail.com
adobebi...@gmail.comwrote:
Hi,
I have been thinking for months on this issue and tried several things,
One is within codeigniter, creating an assetmanager controller class and
use its action to navigate the design
,
Levi Stanley
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
/
Best regards,
Levi Stanley
___
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
On 07/11/11 13:33, Darrell Hamilton wrote:
We use slots as a way of implementing decorators in our templates.
Often our designers use a similar wrapper of HTML around various
pieces of content and we want them to be reusable. There's actually
two separate ways we could accomplish this feat.
Sorry about that, just like this example alot.
On 07/11/11 21:48, Levi Stanley wrote:
On 07/11/11 13:33, Darrell Hamilton wrote:
We use slots as a way of implementing decorators in our templates.
Often our designers use a similar wrapper of HTML around various
pieces of content and we want
I think Fernando was trying to instead of defining people everytime, he
wanted to define it in the macro he was using everywhere so he wouldn't
have to define in every presentation view. He says he is able to do it
in ZPT. However, I have never used ZPT, but thought it was a
interesting way to
On 04/14/11 08:42, Robert Goldsmith wrote:
I am pretty new PHPTAL, and Zend Framework, but was happy to run accross
ZTal. How do you get ZTal to use hyphenated view names (e.g.
product-description.xhtml) instead of the CamelCasing it currently does?
Ztal doesn't use hyphenated view names.
the same, am I missing something?
Best regards,
Levi Stanley
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
($url,0,1) ==
'/')?substr($url,1):$url);
}
print [[[ $url ]]]br/;
$node-setValueEscaped($url);
} else {
$this-filterDOM($node);
}
}
}
}
}
On 10/14/10 12:18, Kornel Lesiński wrote:
On 14 Oct 2010, at 17:08, Levi Stanley wrote:
I am migrating over to using PreFilter and using the DOM to manipulate
It's up now.
On 06/12/2010 11:40 PM, s...@prrbl.org wrote:
Is this normal ? We can not reach phptal.org anymore.
-
whois phptal.org
Name Server:NS6.GANDI.NET
Name Server:NS.PORNEL.NET
Name Server:NS2.SBLAM.COM
-
dig @NS6.GANDI.NET phptal.org
; DiG
label tal:attributes=class php: (isset(error)
error['first_name'])?'labelbox error':'labelbox'First Name:/label
Is there a better way to do this?
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal
input name=firstname tal:attributes=value firstname | nothing/
Guillaume Lecanu 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
---BeginMessage---
Hi
Been playing with phptal_lint, and noticed something odd.
example code 1:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
head
/head
body
div tal:content=example: test/div
/body
/html
Output:
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
Here are the options:
PHPTAL Lint 1.0 (PHPTAL 1_1_16)
Usage: phptal_lint.php [-e extensions] [-i php_file_or_directory]
Well, while designing my framework, I wanted it to be able to change
designs pretty easily, but also allow fast transition from design to
production. So what I ended up doing is using a prefilter to change the
html to point where my images were for that design, so the only hard
line you have to
zend_number: ?
Christian Welzel wrote:
Am Montag 09 März 2009 schrieb Kornel Lesiński:
Perhaps default implementation of number: should be improved instead? What
changes do you need?
I want to use Zend_Locale to format the given number according to the locale
of the user. I dont
Sweet, that is even better.
Best regards,
Levi Stanley
Kornel Lesiński wrote:
On 26-01-2009 at 19:53:39 Levi Stanley l...@eneservices.com wrote:
admirau:
class MyTemplateFramework extends PHPTAL {
private $default_macro_file;
public function setDefaultFile($default_macro_file
regards,
Levi Stanley
Alister Cameron wrote:
Sorry.
Bit silly of me. I discovered after hitting send that I had, in
fact, missed something and the PHP variables we're not properly set
for passing to PHPTAL.
False alarm, folks!!
Thanks,
-Alister
2009/1/2 Alister Cameron alister.came
Try this:
]] $ more test.php
?php
include_once('PHPTAL.php');
$template = new PHPTAL('test.xml');
$template-set('userInfo', 'Default userInfo info');
try {
print $template-execute();
} catch(Exception $e){
print Error:: {$e-getMessage()}\n;
}
?
]] $ more test.xml
div id=userInfo
script language=javascript
![CDATA[
javascript blah
]]
/script
Guillaume Lecanu wrote:
Hi,
I want to write a dynamic JS content into the script/scriptbalise.
A simple : alert(Hello World)
But the problem is PHPTAL replace all quotes (simple or double quote) by
HTML entities.
How can I
Hi David:
You did not pass the left and right to the template.
So here is a quick write up.
php code:
?php
require_once 'PHPTAL.php';
$template = new PHPTAL('templates/template.tmpl');
class links {
public $href;
public $text;
function links($href, $text) {
$this-href =
Was wondering if there was a better way to deal with radio buttons
selection box in phptal.
One way, is make an array, and pass it the choices to the template.
Or you can do it like the method below, however I was wondering if there
is a better way than doing it like this?
option value=Choose
Sorry, forgot to change the email, I was sending this from.
Read below:
-- Forwarded message --
Date: Jan 21, 2008 5:08 AM
Subject: Re: [PHPTAL] Using PHPTAL with index.php?page=... thing
To: Template Attribute Language for PHP phptal@lists.motion-twin.com
Hmm, kind of sounds
You can do something like this:
script language=javascript tal:content=structure
your-javascript-here-or-the-variable
/script
Best regards,
Levi
On Jan 21, 2008 5:43 AM, Anton Andrievskij [EMAIL PROTECTED] wrote:
Hi.
I have to fill JavaScript array using PHPTAL attributes.
Whether I can
(?)
Anton
On Jan 21, 2008 12:13 PM, Levi Stanley [EMAIL PROTECTED] wrote:
Sorry, forgot to change the email, I was sending this from.
Read below:
-- Forwarded message --
Date: Jan 21, 2008 5:08 AM
Subject: Re: [PHPTAL] Using PHPTAL with index.php
28 matches
Mail list logo