Link to home
Start Free TrialLog in
Avatar of Caiapfas
Caiapfas

asked on

Smarty break <br> tag in date.

I am currently using {$i.XXX|XXX:"M j D"} which displays as Sep 10 Sat  (personal datat is replaced with XXX)

but I need it like this
Sep  
10
Sat

Is there another way to display this or is there an actual tag like the <br> tag?
Avatar of athomsfere
athomsfere
Flag of United States of America image

Looks like you can use heredoc: http://www.tizag.com/phpT/strings.php
ASKER CERTIFIED SOLUTION
Avatar of boon86
boon86
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Caiapfas
Caiapfas

ASKER

thanks but none of these suggestions worked.
can you paste me your php and smarty tpl code here?
What did these suggestions do?  "None worked" is not exactly a symptom we can work on.  If you run the script I posted above (or just click the link to the test script on my server) you will see that it creates exactly the output you asked for.  Then you will at least know the way the PHP needs to work.  From there you may be able to figure out how to get the Smarty templates out of the way, or at least get them to cooperate.
I was able to do this by putting each tag in a div
solved the problem on my own by placing each smarty tag in a separate div