[eluser]wiredesignz[/eluser]
@Dewos, Your widget class cannot possibly work as is. It has no reference to the loader so $this->load->view() will fail.
And besides simply building wrappers for other classes is a pointless waste of time and effort. You may as well have loaded the partial view in the controller.
Code:
class Home extends Controller {
function index()
{
$data->login_box = $this->load->view('widget/login_view', $data, TRUE);
$this->load->view('home/index_view', $data);
}
}
Maybe you don't understand that the purpose of a widget is to relieve the controller from building page parts that are unrelated to it.