|
Posted by webcm123 on 06/23/07 20:44
There is also another way to make all modules (or choosen) access to
<title> and <head>. Index.php includes one file before <html> (which
gets data and sets <title> and other <head> files). That file also
defines MOD constant.
The main layout included by index.php in <body> includes other file
(defined in MOD constant) which displays data.
Advantages:
:: Less memory usage
:: All modules (or choosen) can access <title> and <head>
Disadvantages:
:: More files (the second in <body> rather must contain PHP)
:: Sometimes modules needs to show an information only. Including
additional file for doing only it is impractical.
However, if <title>s like "Show user: [username]", "Poll:
[pollname]" (I can add POLL module to including before <html> because
I have to include other file with PHP code too), "Archive from 1st
May", "Private messages: folder Inbox" aren't so needed for users or
search engines, I think that "generating step-by-step" method isn't
very bad.
What do you think about it? The main goal of this CMS is speed,
performance and low RAM usage. People say that output buffering is
slow and developed for other usages than it.
Navigation:
[Reply to this message]
|