Hello Everyone,
I am new to grocerygrud. I think it is a great crud. I am using codeigniter, but I am getting the following error message when I am using it with my template system:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: output
Filename: desktop/mainpage.php
My controller:
function dashboard(){
$crud = new grocery_CRUD();
$crud->set_table('clients');
$output = $crud->render();
$data['clientgrid'] = $crud->render();
// Load the DashBoard
$data['desktop'] = 'desktop/mainpage';
$this->load->view('desktop/desktop', $data);}
Desktop.php view: (template setup)
<?php $this->load->view('desktop/header'); ?>
<?php $this->load->view($desktop); ?>
<?php $this->load->view('desktop/footer'); ?>
mainpage.php view (shows the actual page)
<div id="mydashboard"> <div class="title">My Dashboard</div> <div class="modulecontainerleft"> <div class="moduletitle">Client List</div> <div class="grid"> <?php echo $output; ?> </div> </div> </div> </div>
If I don't go through the template system, the grid load successfully.
Any suggestions or help will be greatly appreciated :)
