Author |
Message |
Topic: [Solved]Code error, im stupid, help? |
danbru1211
Replies: 3
Views: 5087
|
Forum: General Posted: Tue Dec 01, 2015 9:24 am Subject: [Solved]Code error, im stupid, help? |
Please learn about smarty! It's such a great tool.
Every {$something} is like <?php echo $something; ?>
If you or the software you are using does not assing $something to something, this w ... |
Topic: [Solved]Code error, im stupid, help? |
danbru1211
Replies: 3
Views: 5087
|
Forum: General Posted: Mon Nov 30, 2015 9:37 am Subject: [Solved]Code error, im stupid, help? |
Are you sure a variable exists with a space? I am talking about {$Dark Portal}
Maybe you remove the space or the whole tag at all? |
Topic: cache half side of if in foreach loop (maybe bug) |
danbru1211
Replies: 1
Views: 4528
|
Forum: General Posted: Mon Nov 30, 2015 9:01 am Subject: cache half side of if in foreach loop (maybe bug) |
EDIT: I opened a github issue: if(!$smarty->isCached('contactpersons_add.tpl')) {
$companies = []; // will be filled from db
$smarty->assign('co ... |
Topic: Array als ["a","b"] Ausgeben |
danbru1211
Replies: 2
Views: 22042
|
Forum: Language: German Posted: Tue Nov 24, 2015 1:30 pm Subject: Array als ["a","b"] Ausgeben |
Würde dir sonst noch json_encode empfehlen. |
Topic: Homepage hacked? |
danbru1211
Replies: 3
Views: 5679
|
Forum: General Posted: Tue Nov 24, 2015 1:27 pm Subject: Homepage hacked? |
Did you already check them? They are still there! Do you get paid for putting there links there? |
Topic: Homepage hacked? |
danbru1211
Replies: 3
Views: 5679
|
Forum: General Posted: Fri Aug 14, 2015 10:00 pm Subject: Homepage hacked? |
I found several pages with suspicious advertisments at the bottom. Is this normal? I think somebody hijacked this webserver and added his advertisments there!
http://www.smarty.net/crash_course &qu ... |
Topic: escape modifier return empty string |
danbru1211
Replies: 6
Views: 9335
|
Forum: General Posted: Mon Aug 10, 2015 11:25 am Subject: escape modifier return empty string |
Okay, i looked into the html source code and they dont get encoded at all! There are special characters in the html source. But without utf_encode and |escape, there are only ? displayed.
I want th ... |
Topic: escape modifier return empty string |
danbru1211
Replies: 6
Views: 9335
|
Forum: General Posted: Sat Aug 01, 2015 9:24 pm Subject: Looks like fixed. |
It looks like i fixed it. If I convert all strings using PHP's function utf8_encode, they get displayed correctly.
$smarty->assign('description', utf8_encode($Description));
T ... |
Topic: escape modifier return empty string |
danbru1211
Replies: 6
Views: 9335
|
Forum: General Posted: Sat Aug 01, 2015 6:39 pm Subject: escape modifier return empty string |
I need to show german special characters in strings like öäü. It is user-input.
I read the string from a database using mysqli. The string looks ok from phpmyadmin.
But in smarty, it looks empty ... |
|