You are here: Re: [SMARTY] extensions « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] extensions

Posted by Cameron Perry on 04/29/05 21:13

DWMX can interpret .tpl extension files as HTML out of the box (from
what I remember).
Check-out this link http://www.contactlensesprice.com/smarty/ to get it
to work better with smarty tags... The only trouble I ran into is that
DWMX did not recognize the xml file when i tried to follow the
automated route of installing the custom tags. A quick-fix is to copy
the contents of the xml file into the
dwmx_program_directory/Configuration/ThirdPartyTags/Tags.xml file.
Works as advertised.

~Cameron

On Apr 29, 2005, at 10:11 AM, Maximillian Schwanekamp wrote:

> John Martinez wrote:
>> The standard template extension seems to be .tpl which is no prob for
>> me but I'm using Dreamweaver MX as a GUI for making the html
>> template. ...
>> 1. Is sending the template call to the .htm named template bad? any
>> drawbacks?
>> 2. If anyone knows how to set DMX to treat the .tpl extension as .htm
>> this would prolly be a better fix. Calling the .htm doesn't feel right
>> to me.
>
> You can use whatever extension you like for your Smarty template
> files. AFAIK .tpl is just a convention, like .inc for include files.
> Probably the easiest solution for you would be to use .tpl.html, or
> just .html, for your template files. OTOH you can make DWMX recognize
> .tpl extensions:
>
> http://smarty.incutio.com/?page=ConfiguringDreamweaver
>
> IMHO it's not worth the effort. Just use .tpl.html or something
> similar. You might want to change your delimiter:
> cf: http://smarty.php.net/faq.php#19
> <?php
> $tpl =& new Smarty();
> $tpl->left_delimiter = '<{';
> $tpl->right_delimiter = '}>';
> //etc...
> ?>
>
> --
> Maximillian Von Schwanekamp
> http://www.neptunewebworks.com/
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация