Welcome Guest, Not a member yet? Register   Sign In
using helpers and plug-ins
#1

[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();
}
}


Messages In This Thread
using helpers and plug-ins - by El Forum - 11-09-2009, 02:31 PM
using helpers and plug-ins - by El Forum - 11-09-2009, 03:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB