Welcome Guest, Not a member yet? Register   Sign In
Trying to make a contact us form for a website, help.
#3

[eluser]Imman Kant[/eluser]
The controller file is as follows(welcome.php)
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

public function index()
{
  $this-> load-> view ('template/header');
        $this-> load-> view ('template/banner');
        $this-> load-> view ('BodyTemp/Bodywrap');
        $this-> load-> view ('template/footer');
  }
  public function contact()
  {
   $this-> load-> view('template/header');
   $this-> load-> view('BodyTemp/Bodywrap');
   $this-> load-> view ('template/footer');
   }
  
  }
?>
This is the views-> template-> Main.php file that I created
Code:
<?php
$this-> load-> view ('template/header');
$this-> load-> view ('template/banner');
$this-> load-> view ($Bodywrap);
$this-> load-> view ('template/footer');
?>

Should I postt the header, footer and the banner files as well?


Messages In This Thread
Trying to make a contact us form for a website, help. - by El Forum - 05-09-2013, 05:59 AM
Trying to make a contact us form for a website, help. - by El Forum - 05-10-2013, 01:47 AM
Trying to make a contact us form for a website, help. - by El Forum - 05-12-2013, 10:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB