|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
haste Smarty Rookie
Joined: 07 Jun 2003 Posts: 17
|
Posted: Mon Nov 03, 2003 7:02 am Post subject: Problem with nl2BR modifier. Help? |
|
|
I couldn't get the nl2br modifier to work on an array variable.
Code: | {$article_array.article_body|nl2br} |
Anyone know why? |
|
Back to top |
|
andre Smarty Pro
Joined: 23 Apr 2003 Posts: 164 Location: Karlsruhe, Germany
|
Posted: Mon Nov 03, 2003 9:06 am Post subject: |
|
|
@haste
You should post some more information about your problem:
- What error does occure? Any message?
- What do you assign for $article_array? Sample code could be helpfull
- How does the outlook look?
nl2br does work so the problem lies somewhere else. |
|
Back to top |
|
haste Smarty Rookie
Joined: 07 Jun 2003 Posts: 17
|
Posted: Mon Nov 03, 2003 10:33 am Post subject: |
|
|
Ooops. Sorry guys. I went back and looked at the code structure for a while and I realized that while I was clearing the cache, I didn't clear the completed templates. I have compile check turned off, and I just forgot about it.
Thanks for all of the help, though. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|