Author |
Message |
Topic: variable template file names not allow within {block} tags |
posttoast
Replies: 21
Views: 33442
|
Forum: General Posted: Tue May 06, 2014 3:27 pm Subject: variable template file names not allow within {block} tags |
The fix is now in the SVN trunk and will later be included in 3.1.16
I am on 3.1.18 now and have this exact same problem. Was it fixed or not? The 3.1.16 changelog says it is, but I am still getting ... |
Topic: Setting the doctype |
posttoast
Replies: 2
Views: 5864
|
Forum: Smarty 3 Posted: Tue Nov 23, 2010 5:52 pm Subject: Setting the doctype |
That would be great. Now this function is more or less useless for a large group of developers. |
Topic: Setting the doctype |
posttoast
Replies: 2
Views: 5864
|
Forum: Smarty 3 Posted: Tue Nov 23, 2010 4:17 pm Subject: Setting the doctype |
I was just looking at http://www.smarty.net/docs/en/language.function.html.radios.tpl and some of the other HTML functions. Looks very handy, but: they all have an XHTML-output, they generate self-clo ... |
Topic: Paginate - resetting the session |
posttoast
Replies: 4
Views: 5189
|
Forum: General Posted: Sun Jan 11, 2009 6:44 pm Subject: Paginate - resetting the session |
iirc, SmartyPaginate requires the PHP session.
Strange, it seems to function without it. But perhaps I haven't tested it thoroughly enough. |
Topic: Paginate - resetting the session |
posttoast
Replies: 4
Views: 5189
|
Forum: General Posted: Sun Jan 11, 2009 6:39 pm Subject: Paginate - resetting the session |
Maybe test for the existing session when you come into the news section, and reset if it exists?
Thanks, will try that.
Does paginate use the PHP-session for anything else, apart from keeping trac ... |
Topic: Paginate - resetting the session |
posttoast
Replies: 4
Views: 5189
|
Forum: General Posted: Sun Jan 11, 2009 2:10 pm Subject: Paginate - resetting the session |
I have a question about resetting the session with SmartyPaginate. I know I can use SmartyPaginate::reset() for that, but when should I use it?
I have a site with a couple of different sections, al ... |
Topic: Creating a form in combination with caching |
posttoast
Replies: 8
Views: 9245
|
Forum: General Posted: Sat Dec 13, 2008 1:08 pm Subject: Creating a form in combination with caching |
And I'm back again!
I used this solution and it works. Until I turn on the cache. It then gives me this error when the page containing the template is opened:
Fatal error: Smarty error:
... |
Topic: Creating a form in combination with caching |
posttoast
Replies: 8
Views: 9245
|
Forum: General Posted: Wed Oct 22, 2008 7:42 pm Subject: Creating a form in combination with caching |
Ah, I feel pretty dumb now...
Thanks for clearing this up! |
Topic: Creating a form in combination with caching |
posttoast
Replies: 8
Views: 9245
|
Forum: General Posted: Wed Oct 22, 2008 4:53 pm Subject: Creating a form in combination with caching |
Put this in your script
function smarty_block_dynamic($param, $content, &$smarty) {
return $content;
}
$smarty->register_block('dynamic', 'smarty_block_dynamic' ... |
Topic: Creating a form in combination with caching |
posttoast
Replies: 8
Views: 9245
|
Forum: General Posted: Mon Oct 20, 2008 6:44 am Subject: Creating a form in combination with caching |
Thanks
But is there a way to use this in combination with SmartyValidate? Also: does this mean that I have to put my entire form in a string so I can return it? Somehow that doesn't seem like a ... |
Topic: Creating a form in combination with caching |
posttoast
Replies: 8
Views: 9245
|
Forum: General Posted: Sun Oct 19, 2008 1:12 pm Subject: Creating a form in combination with caching |
I am trying to use a form on my site, but I can't figure out how to do it in combination with caching.
index.php:
// do basic setup
if (!$smarty->is_cached('main.tpl', $smartyCache ... |
Topic: Question on using arrays |
posttoast
Replies: 2
Views: 4211
|
Forum: General Posted: Sat Jun 14, 2008 1:46 pm Subject: Question on using arrays |
Thanks, I get it now. Works perfectly.
Cheers! |
Topic: Question on using arrays |
posttoast
Replies: 2
Views: 4211
|
Forum: General Posted: Sat Jun 14, 2008 1:20 pm Subject: Question on using arrays |
I've got an issue here for which I find it hard to come up with a good solution.
The situation:
I have a database-table with projects. The projects are put into an array like this:
$workItems = ... |
Topic: New to smarty: am I doing this the right way? |
posttoast
Replies: 3
Views: 5151
|
Forum: General Posted: Tue Apr 15, 2008 9:18 am Subject: New to smarty: am I doing this the right way? |
Maybe this code snippet points you to the correct way:
<?php
// any code before
$smarty->caching = true;
if (!$smarty->is_cached('templatename.tpl', $_GET['pageid]& ... |
Topic: New to smarty: am I doing this the right way? |
posttoast
Replies: 3
Views: 5151
|
Forum: General Posted: Tue Apr 15, 2008 6:58 am Subject: New to smarty: am I doing this the right way? |
Being curious as to if Smarty is something I want to use in future projects I decided to give it a try in a very basic website I am setting up right now.
However: I am curious if I am approaching t ... |
|