Help: Smarty Templates/Boss needs answer tommorow :/

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

ahhh i see!! 8O
so setting the delimiter to <!--- would not be a good thing because then it will think to use php mode under this delimiter?
User avatar
launchcode
Forum Contributor
Posts: 401
Joined: Tue May 11, 2004 7:32 pm
Location: UK
Contact:

Post by launchcode »

Indeed.
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

BTW you saved my day yesterday, thanks.

So if i wanted to put in a java script that starts with an IF, i will need to make sure the php sees it as java. How will I do this?
User avatar
launchcode
Forum Contributor
Posts: 401
Joined: Tue May 11, 2004 7:32 pm
Location: UK
Contact:

Post by launchcode »

All you need to do is change the Smarty delimeter to something else - up to you what. See the Crash Course for some examples. Maybe something like {Smarty} would be good?
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

yea, i read it.. Is there anyway to make a limiter.. So that all code within <--whatever--> is intrepeted as NOT php?

Edit: a NOT limiter? lol
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

lol i'll figure it out.. Thanks very much for your help. I'll be posting more here im sure lol
Post Reply