FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Why do you mix themes and php code?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Why do you mix themes and php code? [message #6409] Wed, 09 October 2002 22:30 Go to next message
valiant is currently offline  valiant   Switzerland
Messages: 80
Registered: September 2002
Location: Zurich
Karma: 0
Member
First of all: Kudos to your NNTP implementation Smile


1. But why did you mix the theme with the php code for each page?

I.E. post.php, 5000+ lines of code and layout mixed. That's not what I understand of templating or at least separating code from layout.

And all used functions are defined in the theme files, weird, don't you think?
Ever thought of multiple themes @ one site? So that the user/member can chose between themes?

And in each theme you'd have the same code!

->All php code and the functions into include files and a good separation of php and html.

Cheers - Andy
Re: Why do you mix themes and php code? [message #6411 is a reply to message #6409] Wed, 09 October 2002 23:39 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I am not sure what you mean, I don't see any mixed code. You may be looking @ the compiled files, which are indeed a mix of everything, but then those are generated files and are not meant for reading.

So what if each theme has the same code, disk space is much cheaper then CPU and by compiling the file into 1 big chunk where only SQL data is processed saves A LOT of speed.


FUDforum Core Developer
Re: Why do you mix themes and php code? [message #6413 is a reply to message #6411] Wed, 09 October 2002 23:43 Go to previous message
valiant is currently offline  valiant   Switzerland
Messages: 80
Registered: September 2002
Location: Zurich
Karma: 0
Member
LOL, now everything makes sense!

these are compiled files! Smile

i shut up Smile
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Tree View features
Next Topic: Doc en Francais
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 11:29:53 GMT 2024

Total time taken to generate the page: 0.02333 seconds