Jump to content

How to obtain the 'parent' page?


Kryptix

Recommended Posts

Any dangers of using get_included_files()?  Seems like you'd need to do some excluding to avoid things like database access, footer, menus or other included parts though the function is cool.  Wouldn't want to show things that otherwise would be hidden.

Link to comment
Share on other sites

Of course you would need to do some excluding... This function is for internal decision making and not to display the results as is.

 

Assuming most of the files you would want to exclude are common to all pages, you can show the third element from the array [just an example] as the parent page if first 2 elements are dbconnection and config files.

 

It is totally up-to-you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.