Author |
Message |
Topic: Debugger support for multi-site use |
dthought
Replies: 0
Views: 8255
|
Forum: Feature Requests Posted: Sun Feb 04, 2007 11:47 pm Subject: Debugger support for multi-site use |
One thing I've noticed whilst doing development on two sites at once, both with the Smarty debug console enabled, is that only one site can access the console at once - the other gets an "access ... |
Topic: www.dthought.net |
dthought
Replies: 0
Views: 9028
|
Forum: Showcase Posted: Thu Mar 17, 2005 12:04 pm Subject: www.dthought.net |
My company site, www.dthought.net is built on WordPress. It uses a customised skin which I wrote, dropping WordPress' hideous PHP-ridden templates in favour of beautiful, Smartified ones ^_^
Other ... |
Topic: Improvments to register_resource / resource behaviour |
dthought
Replies: 7
Views: 17548
|
Forum: Feature Requests Posted: Mon Dec 13, 2004 4:52 am Subject: Improvments to register_resource / resource behaviour |
{include file="core:foo.tpl"}
{include file="base:foo.tpl"}
Okay, that's all fine and good but how does that get called behind the scenes? Are you suggesting a default resource handler that is cal ... |
Topic: html_options and selects |
dthought
Replies: 4
Views: 17750
|
Forum: Feature Requests Posted: Mon Dec 13, 2004 4:47 am Subject: html_options and selects |
In example:
<a href="#" {popup load="mywindow.tpl" sendvars=true winwidth=640 winheight=480}>summon!</a>
By clicking the link, smarty makes the popup window, loads a desired template ins ... |
Topic: Improvments to register_resource / resource behaviour |
dthought
Replies: 7
Views: 17548
|
Forum: Feature Requests Posted: Wed Dec 01, 2004 3:16 am Subject: Improvments to register_resource / resource behaviour |
Thanks for your reply, boots
Not quite what I was thinking of though.
Let's say this is part of some framework code, which is passed to Smarty to register resources required for a project:
... |
Topic: Improvments to register_resource / resource behaviour |
dthought
Replies: 7
Views: 17548
|
Forum: Feature Requests Posted: Tue Nov 30, 2004 11:20 pm Subject: Improvments to register_resource / resource behaviour |
Ahh, the joys of using register_resource.
At the moment I'm working with a project that reads templates from two separate places - a project-specific templates folder and a 'core' folder that is co ... |
Topic: fetching templates via var |
dthought
Replies: 1
Views: 4942
|
Forum: General Posted: Wed Aug 25, 2004 7:15 am Subject: fetching templates via var |
Not quite sure what you're doing there, but an easy example of fetch:
$mytemplate = $smarty->fetch('mytemplate.tpl');
$smarty->assign('mytemplate', $mytemplate);
$smarty->display('fi ... |
Topic: Multidimensional arrays - once again |
dthought
Replies: 1
Views: 4762
|
Forum: General Posted: Wed Aug 25, 2004 7:12 am Subject: Multidimensional arrays - once again |
You can get around that with a foreach. Because your keys do not start with 0 and are not necessarily sequential, foreach is your answer |
Topic: How should I use Foreach or section? |
dthought
Replies: 1
Views: 5124
|
Forum: General Posted: Wed Aug 25, 2004 7:11 am Subject: How should I use Foreach or section? |
Put in a {debug output='html'} into your TPL file. If the keys are not 0, 1, 2, 3 etc. within your result variable, you'll need to use a {foreach} instead of a {section}. Annoyingly, the notation for ... |
Topic: Can smarty execute PHP code? |
dthought
Replies: 1
Views: 7614
|
Forum: General Posted: Wed Aug 25, 2004 7:03 am Subject: Can smarty execute PHP code? |
You can use the {php} tags... but really, you should avoid using PHP in your templates files at all costs. If you need to use the PHP tag, you've planned badly... there will always be a better solutio ... |
Topic: Assoc arrays: Why doesn´t this work? |
dthought
Replies: 5
Views: 9094
|
Forum: General Posted: Wed Aug 25, 2004 7:02 am Subject: Assoc arrays: Why doesn´t this work? |
Normally if you just edit and resave a TPL file, Smarty picks up on it and recompiles it... only if something odd is going on will it not recompile. |
Topic: I get lots of errors when using php5 and smarty2.6.3 |
dthought
Replies: 2
Views: 24178
|
Forum: General Posted: Wed Aug 25, 2004 7:00 am Subject: I get lots of errors when using php5 and smarty2.6.3 |
Umm... is that a Smarty issue?
Always test PHP versions before you upgrade... back compliance and stability can be issues with upgrading PHP. |
Topic: Cache Problem |
dthought
Replies: 7
Views: 16377
|
Forum: Bugs Posted: Fri May 14, 2004 4:46 am Subject: Re: Cache Problem |
Smarty-Version: Current CVS
Try using the production instead of CVS version, see if it helps... |
Topic: $smarty.get in PHP5 |
dthought
Replies: 3
Views: 10040
|
Forum: Bugs Posted: Sat Apr 10, 2004 4:29 pm Subject: $smarty.get in PHP5 |
Is Smarty even officially supported under PHP5? :O |
Topic: Iteration Problems |
dthought
Replies: 4
Views: 7567
|
Forum: General Posted: Sat Apr 10, 2004 4:28 pm Subject: Iteration Problems |
Huh? That code isn't even Smarty syntax..? |
|