|Info||View files (3)||Download .zip||Reputation||Support forum||Blog|
|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2002-12-05 (11 years ago)||Not yet rated by the users||Total: 922||All time: 3,564 This week: 1,665|
|pagelogic 1.0||GNU General Public Lice...||Files and Folders|
I have written modules for webservers with so many php/html files that I lost track, so I come out with this simple module to simplify the logic among pages.
Imagine my module is a book, with many chapter inside.
-- The book is the main page, normally index.html or index.php.
-- The module comprises of many files, each file performs some functions.
Thus file is equivalent to a chapter.
-- Each file may contain several functions. This are the sections in the
Imagine if I can say goto this book, this chapter and this section. I will need a content page to look up the pages. Thus the idea is formed.
The content pages is stored in an .ini format and read in using my INIPARSER class. It will be in the form:
<action>=<php function name>
<action>=<php function name>, <file name>
<action>=<php function name>, <file name>, <file name 2> ...
If I hit the page with the action text embedded through
<input type=hidden NAME="action" VALUE="...">
The index.php will just call up the function I want.
I hope that this will help to modularize your php codes as well.
|Version Control||Unique User Downloads||Download Rankings|
|This week:||0||This week:||1,665|