how to add simple static pages in your codeigniter

how to add simple static pages in your codeigniter

we can do this by using base_url

first open your codeigniter

  1. open application folder
  2. open config file
  3. find base_url line and in qouted marksĀ  write “http://localhost/codeigniter”
  4. now what your create in your root folder of codeigniter it can be linked as with following syntax
  5. <li><a href=”<?php base_url();?>’main_folder_name/filename with extention'”</li>

thanks for reading

if you feel any query ; you can contact me at dr.shaikhfarooque@gamil.com