loose pages...

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

loose pages...

Post by harrisonad »

Hi, I have about 50 pages in my Intranet Site. Some of them are independent pages. Some have subpages that have their own subpages as well.
Is it nessesary to store their prototypes (eg. name,url,etc.) in the DB?
Assuming that their numbers will vary in the future.
User avatar
AnarKy
Forum Contributor
Posts: 119
Joined: Tue Nov 02, 2004 1:49 am
Location: South Africa

Re: loose pages...

Post by AnarKy »

harrisonad wrote: Is it nessesary to store their prototypes (eg. name,url,etc.) in the DB?
Assuming that their numbers will vary in the future.
Why will the names of the pages change?
Surely the content should be dynamic instead?

It is not necessary to store the names in a DB but...
it does make it easier to handle especially if you associate
certain access levels or rights to different pages.

Makes user customisation easier as well :arrow:
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Post by harrisonad »

yes they are dynamic, but what i mean is, someday in the future some of them will be remove and new ones will be added.
User avatar
AnarKy
Forum Contributor
Posts: 119
Joined: Tue Nov 02, 2004 1:49 am
Location: South Africa

Post by AnarKy »

Still not neccessary, even having the names, etc stored in the
DB will require manual maintenance. (just perhaps in fewer places)

In this case, it is a good idea to keep the page names in a DB.
:idea: From this, you can even create a global index for yourself
with links to all the pages.
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Post by harrisonad »

Thank you sir.
Post Reply