Jump to content

abdika's Content

There have been 1 items by abdika (Search limited from 21-October 19)

By content type

See this member's

Sort by                Order  

#2813 How to include output from grocery crud to my template

Posted by abdika on 23 July 2012 - 07:26 AM in I have a question

Hi, it's firstime i using grocery crud. I't very cool, but i have a problem.
I want to show output from grocery crud to my template
this is my Controler
[code=auto:0] public function manageUser() { $crud = new grocery_CRUD();
$crud->display_as('id_group','kelompok'); $crud->display_as('tingkat','level'); $crud->fields('username','password','email','tingkat','id_group'); $crud->display_as('id_group','kelompok'); $crud->change_field_type('password', 'password');
$crud->set_relation('id_group','groups','kelompok' );
$output = $crud->render(); // $this->load->view('header.php');

this is my template view

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<title><?php echo $page_title;?></title>
<meta charset="utf-8" />
<meta name="description" content="Manage News Basket" />
<meta name="author" content="BeritaSatu" />

<style type="text/css">@import url("<?php echo base_url().'css/template.css'; ?>");</style>
<style type="text/css">@import url("<?php echo base_url().'css/admin.css'; ?>");</style>

<?php flush();?>
<div class="header-bar">
<?php $this->load->view('header', $username); ?>
<div class="container">
<div class="navigation">
<div class="navigation-inner">
<?php $this->load->view('admin_navigation'); ?>
<div id="main" class="main">
<?php $this->load->view('example'); ?>
<div class="footer-bar">
<?php $this->load->view('footer'); ?>

<script type="text/javascript" src="<?php echo base_url().'/library/jquery.js'; ?>"></script>
<script type="text/javascript" src="<?php echo base_url().'/library/tablesorter/jquery.tablesorter.js'; ?>"></script>
<script type="text/javascript" src="<?php echo base_url().'/library/myscript.js'; ?>"></script>


i want to show the output in main class, how to implement it?