Author |
Message |
Topic: include_if_exists |
Nyna
Replies: 1
Views: 5039
|
Forum: General Posted: Thu Sep 25, 2008 9:54 am Subject: include_if_exists |
I'm still in two minds about this as to whether I have my thinking cap securely attached or not, but...
I have a set of pages, each of which call uses the same basic template structure. The templat ... |
Topic: explode the string by comma |
Nyna
Replies: 5
Views: 24615
|
Forum: General Posted: Fri Jun 20, 2008 2:07 pm Subject: explode the string by comma |
An example may help here...
{** This is our sample data **}
{assign var="words" value="tom,dick,harry"}
{** Now use the explode function to create ... |
Topic: Complex Forms |
Nyna
Replies: 4
Views: 6797
|
Forum: General Posted: Sat Mar 01, 2008 10:10 pm Subject: Complex Forms |
Ah, thanks for the heads up Monte, the nesting was causing some concerns... |
Topic: Complex Forms |
Nyna
Replies: 4
Views: 6797
|
Forum: General Posted: Sat Mar 01, 2008 6:40 pm Subject: Complex Forms |
Globals are not an option here my friend ... the whole core api is 100% object-orientated and globals are just ... well not the done thing!
There is also the issue of multiple instances of pages be ... |
Topic: Complex Forms |
Nyna
Replies: 4
Views: 6797
|
Forum: General Posted: Sat Mar 01, 2008 2:11 pm Subject: Complex Forms |
Hi Peeps...
More of a discussion than an actual question, but any input would be appreciated.
I use a fairly complex form class that I pass into smarty with a basic assign_by_ref. Now my templat ... |
Topic: Smarty 3.0: initial discussion |
Nyna
Replies: 172
Views: 534760
|
Forum: Smarty Development Posted: Sat Feb 23, 2008 4:19 pm Subject: Smarty 3.0: initial discussion |
With regards to the direction of Smarty, my own opinion is keep it small, keep it simple.
Whilst I may the advantage over a lot of people in-as-much as I run hosting with the latest PHP/MySQL etc i ... |
Topic: Debugging Woes |
Nyna
Replies: 4
Views: 6620
|
Forum: General Posted: Tue Dec 04, 2007 9:42 pm Subject: Debugging Woes |
Stack trace is:/compiled/%%45/45E/45E480CD%%index.tpl.php : 9
/lib/libraries/smarty/Smarty.class.php : 1265So that would be compiled template, however it is extremely complex due to the large ... |
Topic: Debugging Woes |
Nyna
Replies: 4
Views: 6620
|
Forum: General Posted: Tue Dec 04, 2007 6:30 pm Subject: Debugging Woes |
I've come across a little issue with debugging Smarty...
My code for a lot of pages is simple:try
{
ob_start();
$template = new Smarty();
$template->assign(&q ... |
|