[eluser]wilfred[/eluser]
Hi'
I have been trying to load inbuilt helpers and plugins using the following code without succeding. Do i have to build my own helpers?
<?php
class Blog extends Controller{
function Index()
{
$data['drinks'] = array('mountain bull','tusker','Keg','Miti ni dawa');
$data['title'] = "party zone";
$data['heading'] = "lets rock and keep it skanking";
$this->load->view('blogview',$data);
$this->load->library('validation');
$this->load->helper('form_helper');
$this->load->database();
$query = $this->db->query('SELECT drinks, price, manufacturer FROM hippo');
foreach ($query->result() as $row)
{
echo $row->drinks;
echo $row->price;
echo $row->manufacturer;
}
echo 'Total Results: ' . $query->num_rows();
}
}