- Impact
- 19
hey
I am working on a site and i want to use includes statements to make it easy for the pplz who will manage tht site later on [i m doing it for someone else]
now i dont want to make 100 pages with includes statements of 100 files tht need to be included
so i need a dynamic way of doing this
this is wt i am trying to do
I want to put all the include statements in the index page [for that part of the code] and i want it to make it true when the statement comes true
for example something like
if site url has "index.php/?contact"
include('contact.txt');
elseif site url has "index.php/?about us"
include('about-us.txt');
and so on....
and then when making the navigation bar i can just type in "index.php/?contact" etc...
Thanks
I am working on a site and i want to use includes statements to make it easy for the pplz who will manage tht site later on [i m doing it for someone else]
now i dont want to make 100 pages with includes statements of 100 files tht need to be included
so i need a dynamic way of doing this
this is wt i am trying to do
I want to put all the include statements in the index page [for that part of the code] and i want it to make it true when the statement comes true
for example something like
if site url has "index.php/?contact"
include('contact.txt');
elseif site url has "index.php/?about us"
include('about-us.txt');
and so on....
and then when making the navigation bar i can just type in "index.php/?contact" etc...
Thanks






