Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 9 matches
Smarty Forum Index
Author Message
  Topic: [Solved]Code error, im stupid, help?
danbru1211

Replies: 3
Views: 5087

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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 ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP