Welcome Guest, Not a member yet? Register   Sign In
Help
#2

[eluser]saiprasad.ch[/eluser]
$data['page_hits_row'] = $page_hits_row;
$data['budget_row'] = $budget_row;
$this->load->view('view_file', $data);

I hope the above code works.....
But, I suggest you to return the array to the Controller and then pass the variables to the view..

In model,

$data['page_hits_row'] = $page_hits_row;
$data['budget_row'] = $budget_row;
return $data;

In controller,
$data = $this->model_name->fn_name(args);
$this->load->view('view_file', $data);

In view,
<tr id="budget_row" style="&lt;? echo $budget_row; ?&gt;">
<tr id="page_hits_row" style="&lt;? echo $page_hits_row; ?&gt;" >

-- Sai Prasad


Messages In This Thread
Help - by El Forum - 05-20-2008, 02:18 AM
Help - by El Forum - 05-22-2008, 04:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB