Note that there are some explanatory texts on larger screens.

plurals
  1. POcodeigniter & grocery crud installation
    primarykey
    data
    text
    <p>i'm having problem with codeigniter + grocery crud installation.</p> <p>Below is my file structure:</p> <pre><code>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'; </code></pre> <p>With the above setting, i'm able to view webpage "Welcome to CodeIgniter!" (localhost)</p> <p>member.php </p> <pre><code>class Member extends CI_Controller { public function __construct() { parent::__construct(); } public function index() { echo "&lt;h1&gt;Welcome to the world of Codeigniter&lt;/h1&gt;"; } public function employees() { $crud = new grocery_CRUD(); $crud -&gt; set_table('employees'); $output = $crud -&gt; render(); $this -&gt; load -&gt; view('template_member', $output); } } </code></pre> <p>template_member.php </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;title&gt;Grocery CRUD Testing&lt;/title&gt; &lt;?php foreach($css_files as $file): ?&gt; &lt;link type="text/css" rel="stylesheet" href="&lt;?php echo $file; ?&gt;" /&gt; &lt;?php endforeach; ?&gt; &lt;?php foreach($js_files as $file): ?&gt; &lt;script src="&lt;?php echo $file; ?&gt;"&gt;&lt;/script&gt; &lt;?php endforeach; ?&gt; &lt;style type='text/css'&gt; &lt;/head&gt; &lt;body&gt; &lt;?php echo $output; ?&gt; </code></pre> <p>I'm able to view "Welcome to the world of Codeigniter" (localhost/member) </p> <p>I'm having problem to view (localhost/member/employees). It shows me a blank white page. </p> <p>But when i look at the html code, it shows all the employees data are inside the html code.<br> I do not know why it does not display the content but give a blank white page. </p> <p>Pls advice what i've missed out, thanks. </p> <p>Partial html code: </p> <pre><code>&lt;link type="text/css" rel="stylesheet" href="http://localhost/assets/grocery_crud/themes/flexigrid/css/flexigrid.css" /&gt; &lt;link type="text/css" rel="stylesheet" href="http://localhost/assets/grocery_crud/css/jquery_plugins/fancybox/jquery.fancybox.css" /&gt; &lt;script src="http://localhost/assets/grocery_crud/js/jquery-1.8.2.min.js"&gt;&lt;/script&gt; &lt;script src="http://localhost/assets/grocery_crud/themes/flexigrid/js/cookies.js"&gt;&lt;/script&gt; &lt;script src="http://localhost/assets/grocery_crud/themes/flexigrid/js/flexigrid.js"&gt;&lt;/script&gt; &lt;script src="http://localhost/assets/grocery_crud/themes/flexigrid/js/jquery.form.js"&gt;&lt;/script&gt; &lt;script src="http://localhost/assets/grocery_crud/js/jquery_plugins/jquery.numeric.min.js"&gt;&lt;/script&gt; &lt;script src="http://localhost/assets/grocery_crud/themes/flexigrid/js/jquery.printElement.min.js"&gt;&lt;/script&gt; &lt;script src="http://localhost/assets/grocery_crud/js/jquery_plugins/jquery.fancybox.pack.js"&gt;&lt;/script&gt; &lt;script src="http://localhost/assets/grocery_crud/js/jquery_plugins/jquery.easing-1.3.pack.js"&gt;&lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload