1
ouioui
smarty plugin
  • 2005/1/6 17:34

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Hi,

Why XOOPS use class\xoopsform to generate the forms and don't use smarty plugins like html_options or html_checkboxes ?
is too complicate ?
is too expensive in time ?

Best regards

2
Mithrandir
Re: smarty plugin

Possibly because the XoopsForm classes were created prior to the adoption of Smarty, but I personally use XoopsForm because it is easier - three lines of PHP code instead of 4-6 lines of HTML/Smarty code coupled with 3-4 lines of PHP code to build the arrays to go in html_options etc.

For me it is easier to go XoopsForm all the way - and use $form->assign($xoopsTpl); if I want to create a template to show the form in.

3
ouioui
Re: smarty plugin
  • 2005/1/7 8:21

  • ouioui

  • Just popping in

  • Posts: 32

  • Since: 2003/7/11


Thanks for your responses here!

Basicly I agree with you but if XOOPS team devellop spectial XOOPS smarty plugins, the XOOPS architecture could be closer of the MVC pattern where the view (the form) is not coupled to the controller (the index).

Login

Who's Online

378 user(s) are online (262 user(s) are browsing Support Forums)


Members: 0


Guests: 378


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