|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
pear real module system
Hello, I'm trying to start with pear and I've got it running and made a few examples but I have some questions/problems...
I want to make a site that is modular, so I can add stuff to it when I want.. So pretend I have a site about my vacation. I want it to have a module blog, a module photo album and a module guestbook... When someone comes to my site I want him to have those 3 options, guestbook, photo album and blog. But how do I make it so that those links are dynamicly generated (so when I decide to delete blog the like is gone) and how can I access my blog for example and still have the other options? I know it's hard to understand, but I'm really stuck... I've googled but I only found this: http://www.phpbuilder.com/columns/meyers20041216.php3?page=2 which does'nt implements the links and stuff... :s |
|
#2
|
||||
|
||||
|
RE: pear real module system
Well I can think of a couple of options off the top off my head... you can set up your directory so that the various sections of the site are directories and you list the directories in the www file. This will require some strict complience for you and will make it harder if you choose to add directories that you don't want listed.
another option is to make an array or valid sections of the site and with that create a base directory path and do a is_dir() check if it is true - make the link to it... |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > pear real module system |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|