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?
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?
Looks like you can use heredoc: http://www.tizag.com/phpT/strings.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER
I was able to do this by putting each tag in a div
ASKER
solved the problem on my own by placing each smarty tag in a separate div