Welcom....
* Welcom.... 'Controller'
public function about_us(){
$data["result"]=$this->courses_model->fetch_data();
//print_r($data['result']->field); die();
//$this->load->model('Test');
$this->load->view('about-us',$data);
}
*
/////////////course_model
public function fetch_data()
{
return $this->db->select('field')->from('about')->get()->row();
//$query=$this->db->get("about")->row();
//$query=$this->db->query("SELECT * FROM about");
//$result = mysql_query("SELECT * FROM about ")or die(mysql_error());
//$query = mysql_fetch_array( $result );
//print_r($query); die();
return $query;
//WHERE last_name='Hart'
}
ablut-us (Html)
<section class="sec_1127024">
<div class="container com-sp pad-bot-70">
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<h2 class="hd_112824">About Us</h2>
<?php
echo $result->field; Main
?>
<a class="btn_112124" href="<?php echo base_url();?>Welcome/contact">Get in touch</a>
</div>
<!-- <div class="col-md-4 text-right">
<img src="<?php echo base_url();?>assets/images/temp/kjhgfsdgudsgdhghd.png" class="max-width-sty">
</div> -->
</div>
</div>
</div>
</section>
* Welcom.... 'Controller'
public function about_us(){
$data["result"]=$this->courses_model->fetch_data();
//print_r($data['result']->field); die();
//$this->load->model('Test');
$this->load->view('about-us',$data);
}
*
/////////////course_model
public function fetch_data()
{
return $this->db->select('field')->from('about')->get()->row();
//$query=$this->db->get("about")->row();
//$query=$this->db->query("SELECT * FROM about");
//$result = mysql_query("SELECT * FROM about ")or die(mysql_error());
//$query = mysql_fetch_array( $result );
//print_r($query); die();
return $query;
//WHERE last_name='Hart'
}
ablut-us (Html)
<section class="sec_1127024">
<div class="container com-sp pad-bot-70">
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<h2 class="hd_112824">About Us</h2>
<?php
echo $result->field; Main
?>
<a class="btn_112124" href="<?php echo base_url();?>Welcome/contact">Get in touch</a>
</div>
<!-- <div class="col-md-4 text-right">
<img src="<?php echo base_url();?>assets/images/temp/kjhgfsdgudsgdhghd.png" class="max-width-sty">
</div> -->
</div>
</div>
</div>
</section>
0 comments:
Post a Comment
Thanks