PHP Navigation

Discussion in 'PHP' started by sam2698, Oct 16, 2006.

  1. #1
    Hi, I don't know whether this will make any sense to you but I want to have my navigation bar like Joomla. So that once that I change the main php file the navigation bar for all the pages are changed. Is there a code to do this.

    Kinda like the mosLoadModules, I guess it is called the include function. Not sure.
     
    sam2698, Oct 16, 2006 IP
  2. Morishani

    Morishani Peon

    Messages:
    239
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you mean that you will change some 'header' file and then all the files will be changed so yes, there is such a function - Include function
     
    Morishani, Oct 16, 2006 IP
  3. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #3
    Yes, the include function should work for you:
    
    include("navbar.php");
    
    //body here
    
    
    PHP:
     
    KC TAN, Oct 16, 2006 IP