1
cneise
Use of functions in templates
  • 2005/4/22 18:57

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Hi,

i have written a function for displaying buttons - this will ease template creation and shorten the template code.

I registered the funtion:
$xoopsTpl->register_function('button''templ_button'false
    array(
'onclick''disabled''label''name'));


In my development environment (the templates are newly parsed after every change) everythink works fine.

But wenn installing the module the following error occurs:

Error [Xoops]: Smarty error: [in db:tokens.html line 18]:
syntax errorunrecognized tag 'button'
(Smarty_Compiler.class.phpline 563in file 
class/smarty/Smarty.class.php line 1084


No buttons are shown - the function button() is not used.

Any ideas?

Ciao,

Christian.

2
Dave_L
Re: Use of functions in templates
  • 2005/4/22 19:16

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Is the custom Smarty function in the Smarty plugins directory?

XOOPS precompiles a module's templates when the module is installed. Custom Smarty plugins will only be found if they're in the Smarty plugins directory.

3
cneise
Re: Use of functions in templates
  • 2005/4/23 9:58

  • cneise

  • Just popping in

  • Posts: 10

  • Since: 2005/4/3 2


Thanks for the hint :)

Problem solved!

best regards,

Christian Neise.

Login

Who's Online

280 user(s) are online (224 user(s) are browsing Support Forums)


Members: 0


Guests: 280


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits