codeigniter & grocery crud installation -
i'm having problem codeigniter + grocery crud installation.
below file structure:
base/ci_213/application/demo/config/config.php $config['base_url'] = 'http://localhost/'; $config['index_page'] = ''; base/ci_213/application/demo/config/autoload.php $autoload['libraries'] = array('database', 'grocery_crud'); $autoload['helper'] = array('url'); base/ci_213/system/... base/ci_213/assets/... base/www/index.php $system_path = '../ci_213/system'; $application_folder = '../ci_213/application/demo';
with above setting, i'm able view webpage "welcome codeigniter!" (localhost)
member.php
class fellow member extends ci_controller { public function __construct() { parent::__construct(); } public function index() { echo "<h1>welcome world of codeigniter</h1>"; } public function employees() { $crud = new grocery_crud(); $crud -> set_table('employees'); $output = $crud -> render(); $this -> load -> view('template_member', $output); } }
template_member.php
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>grocery crud testing</title> <?php foreach($css_files $file): ?> <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" /> <?php endforeach; ?> <?php foreach($js_files $file): ?> <script src="<?php echo $file; ?>"></script> <?php endforeach; ?> <style type='text/css'> </head> <body> <?php echo $output; ?>
i'm able view "welcome world of codeigniter" (localhost/member)
i'm having problem view (localhost/member/employees). shows me blank white page.
but when @ html code, shows employees info within html code. not know why not display content give blank white page.
pls advice i've missed out, thanks.
partial html code:
<link type="text/css" rel="stylesheet" href="http://localhost/assets/grocery_crud/themes/flexigrid/css/flexigrid.css" /> <link type="text/css" rel="stylesheet" href="http://localhost/assets/grocery_crud/css/jquery_plugins/fancybox/jquery.fancybox.css" /> <script src="http://localhost/assets/grocery_crud/js/jquery-1.8.2.min.js"></script> <script src="http://localhost/assets/grocery_crud/themes/flexigrid/js/cookies.js"></script> <script src="http://localhost/assets/grocery_crud/themes/flexigrid/js/flexigrid.js"></script> <script src="http://localhost/assets/grocery_crud/themes/flexigrid/js/jquery.form.js"></script> <script src="http://localhost/assets/grocery_crud/js/jquery_plugins/jquery.numeric.min.js"></script> <script src="http://localhost/assets/grocery_crud/themes/flexigrid/js/jquery.printelement.min.js"></script> <script src="http://localhost/assets/grocery_crud/js/jquery_plugins/jquery.fancybox.pack.js"></script> <script src="http://localhost/assets/grocery_crud/js/jquery_plugins/jquery.easing-1.3.pack.js"></script>
in template_member.php delete row code <style type='text/css'>
or replace code <style type='text/css'></style>
.
codeigniter grocery-crud
No comments:
Post a Comment