1
WickedLogic
OOP and echo

Is there a reason that all the themes literally echo the html, rather than returning it via the function. I know this currently isn't the way XOOPS is coded, but was wondering about the advantages/disadvantages of the current echo method...

Been digging around lately and it has me wondering. On that topic, it would be nice to setup a section about why stuff is being done the way it is, for those of us desiring insight into XOOPS at a non-core code level.

2
Herko
Re: OOP and echo
  • 2005/1/12 15:15

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


all (most?) output is rendered thru the Smarty template engine, and don't use any echos in the PHP code, thus separating coding (application logic) and presentation.

Herko

3
WickedLogic
Re: OOP and echo

Oh, I see, so it mostly echos the first time around. Just based on a general looking at the themes, they all seem to echo. Hmm... are there any architecture guides as to how/why the core is setup.

nm, found it. I'll stop posting silly stuff until I have read up...

Login

Who's Online

425 user(s) are online (303 user(s) are browsing Support Forums)


Members: 1


Guests: 424


Runeher2,

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