Author |
Message |
Topic: What to improve in this code? |
MrVon
Replies: 1
Views: 6926
|
Forum: Smarty Development Posted: Thu Apr 18, 2013 10:50 pm Subject: What to improve in this code? |
Is this code from method within class that my developer used. Is that good practice?
Especially including smarty object inside every function of the site to assign values from withing function.
1 ... |
Topic: Where is Smarty 2.6.9 download? |
MrVon
Replies: 1
Views: 4306
|
Forum: General Posted: Fri Jun 15, 2012 11:50 pm Subject: Where is Smarty 2.6.9 download? |
Why on download section latest is Smarty 2.6.26 (.tar.gz) (.zip) June 18th, 2009
i know there are further versions because on my site is smarty 2.6.3
And in announcements there is v2.6.9.
never ... |
Topic: Document Expired |
MrVon
Replies: 0
Views: 3008
|
Forum: General Posted: Sun Apr 15, 2012 10:19 pm Subject: Document Expired |
When i click back button it saying "Document Expired" i use default settings for smarty v3 and nothing special for php. Why i have this issue?
This document is no longer available. |
Topic: Error upon deleting cache files. |
MrVon
Replies: 4
Views: 8304
|
Forum: General Posted: Mon Apr 09, 2012 1:52 am Subject: Error upon deleting cache files. |
I do delete all files in templates_c and i don't use cache so there's nothing else to delete.
Regarding time. when i run echo date_default_timezone_get(); it shows Sun, 08 Apr 2012 19:30:18 -0700 A ... |
Topic: Error Reporting Level |
MrVon
Replies: 3
Views: 13890
|
Forum: General Posted: Sun Apr 08, 2012 11:51 pm Subject: Error Reporting Level |
$smarty->error_reporting = E_ALL & ~E_NOTICE;
Thank's i'll try is there some documentation reference too? |
Topic: Error Reporting Level |
MrVon
Replies: 3
Views: 13890
|
Forum: General Posted: Thu Apr 05, 2012 9:35 pm Subject: Error Reporting Level |
For smarty error reporting (e.g. $smarty->error_reporting = -1 can you set exclusion e.g. $smarty->error_reporting = "E_ALL ^ E_NOTICE"; I tried this and it don't work. |
Topic: Cannot do ($smarty|var_dump) |
MrVon
Replies: 1
Views: 25901
|
Forum: Smarty 3 Posted: Thu Mar 29, 2012 2:07 am Subject: Cannot do ($smarty|var_dump) |
I used to be able to {$smarty|var_dump} now i get error Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template...
However when i do {$smarty. ... |
Topic: How to assign $smarty object to to php function? |
MrVon
Replies: 4
Views: 12282
|
Forum: General Posted: Thu Mar 22, 2012 6:55 am Subject: How to assign $smarty object to to php function? |
index.php
require_once('smarty/Smarty.class.php');
$Smarty = new Smarty();
function do_something() {
global $Smarty;
echo "where is smarty?"
... |
Topic: Error upon deleting cache files. |
MrVon
Replies: 4
Views: 8304
|
Forum: General Posted: Sun Mar 18, 2012 11:44 pm Subject: Error upon deleting cache files. |
I don't use session yet on that website.
It might be slow / too restricted hosting problem i use godaddy shared hosting. Sometimes very rarely i don't see this error when delete cache.
Another s ... |
Topic: Error upon deleting cache files. |
MrVon
Replies: 4
Views: 8304
|
Forum: General Posted: Sun Mar 18, 2012 7:32 am Subject: Error upon deleting cache files. |
Everything works okay however when i delete all files in templates_c folder and refresh page i get error.
After i refresh second time it error goes away.
Warning: include(/var/chroot/h ... |
Topic: Dreamweaver compatibility |
MrVon
Replies: 0
Views: 3249
|
Forum: General Posted: Mon Mar 05, 2012 8:51 am Subject: Dreamweaver compatibility |
I use live code in dream weaver and set up server so php works fine with all includes etc... however when i start using smarty template e.g. {include file='menu.tpl'} dream weaver don't do anything.
... |
Topic: Count length of array key? |
MrVon
Replies: 1
Views: 6600
|
Forum: General Posted: Fri Feb 10, 2012 1:50 am Subject: Count length of array key? |
{$smarty.post.email} outputs "john@yahoo.com"
{$smarty.post.email|count} outputs "1" instead of "14" - string length.
{$smarty.post.emailoutputs "1" as well.
... |
Topic: Smarty 2: date_format wrong with "0000-00-00 00:00:00&q |
MrVon
Replies: 1
Views: 5128
|
Forum: General Posted: Tue Jan 17, 2012 7:41 pm Subject: Smarty 2: date_format wrong with "0000-00-00 00:00:00&q |
Date pulled from database in varuable "$request.date" as "0000-00-00 00:00:00" when display variable {$request.date} it it shows correct .
But when i try format it e.g. {$request. ... |
Topic: Syntax Highlighting web page broken |
MrVon
Replies: 20
Views: 130852
|
Forum: Documentation Posted: Fri Jan 06, 2012 12:14 am Subject: Syntax Highlighting web page broken |
Excuse me for digging up old thread.
Could someone publish bluelueboy userDefineLang.xml file?
I used to use it, but forgot to backup, and the link http://barrhauss.com/storage/smarty/userDefineLa ... |
Topic: Join build new variable name from two strings var |
MrVon
Replies: 1
Views: 4472
|
Forum: General Posted: Fri Jul 08, 2011 3:03 pm Subject: Join build new variable name from two strings var |
I have v2.5 i cannot upgrade now project is too big.
I need to do something like this
{section name="myLoop" start=1 loop=100}
{assign var="key" value=". ... |
|