Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 - 0 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: smarty is pretty kick*ss
by intel352 on 2004/5/7 11:15:13

good to know guys, thanks
Re: smarty is pretty kick*ss
by GIJOE on 2004/5/7 5:47:10

The feature of $smarty.const.CONSTNAME was implemented after Smarty 2.5 or 2.4

XOOPS <= 2.0.2 uses Smarty 2.3.0
XOOPS >= 2.0.3 uses Smarty 2.5.0

If you can cut off the users of XOOPS prior to 2.0.3, you may use the feature.
But I'll keep to assign language constants for users who has some reasons why he don't update XOOPS. (too many hacks or so on)
Re: smarty is pretty kick*ss
by Dave_L on 2004/5/7 4:28:37

Quote:
where would smarty pull those constants from


They would have to have been defined by define('xxxx', yyyy); in a .php file.

Normally the files that defines the language constants you're using are automatically included by Xoops, so they're available within a Smarty template with the $smarty.const tag.
Re: smarty is pretty kick*ss
by intel352 on 2004/5/7 3:24:06

@fatman, the examples that i found which showed me how to use sections also showed foreach, i only chose sections because that was recommended

as for grasping how it all laid out, it took trial-and-error for me, lol, and i used the smarty debug popup to see how the arrays that i created were structured, so i could make sure i broke them down properly in the template


believe me, anything to do with an array is a bit hard for me to grasp, period, lol... so i struggle until i hit the right combination, lmfao
Re: smarty is pretty kick*ss
by intel352 on 2004/5/7 3:21:12

@ralf, where would smarty pull those constants from, if i didn't assign? that's new to me, could you explain a bit further?

Who's Online

820 user(s) are online (772 user(s) are browsing Support Forums)


Members: 0


Guests: 820


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits