Note that there are some explanatory texts on larger screens.

plurals
  1. POCodeigniter Controller rendering blank on SERVER
    primarykey
    data
    text
    <p>I am using codeigniter for my project. These are the symptoms of my problem.</p> <ol> <li>My controller is displaying blank page.(name : signup)</li> <li>My other controllers are running well with no problems.</li> <li>The signup controller is runnign good on my localhost but giving problem on server.</li> <li>I haven't used andy modified .htaccess file.</li> <li>Sometimes the page also shows 'Internal Server Error'</li> </ol> <p>Things I did to rectify</p> <ol> <li>I changed my <code>$config['base_url']</code> = my web address</li> <li>I reuploaded all the files to server</li> </ol> <p>I am not able to point out the problem.</p> <p>This is my controller code</p> <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Signup extends CI_Controller { function __construct() { parent:: __construct(); $this-&gt;load-&gt;model('users_model','',TRUE); } public function index() { ini_set('display_errors', 1); $data['title'] = "User Signup"; $data['type'] = "admin"; $this-&gt;load-&gt;helper(array('form')); $this-&gt;load-&gt;view('signup',$data); } public function verify(){ $data = array( 'username' =&gt; $this-&gt;input-&gt;post('username'), 'email' =&gt; $this-&gt;input-&gt;post('email'), 'password' =&gt; $this-&gt;input-&gt;post('password'), 'created_on' =&gt; date("F j Y") ); $r = $this-&gt;db-&gt;insert('users',$data); $id = $this-&gt;db-&gt;insert_id(); $p = $this-&gt;db-&gt;insert('listing',array('user_id'=&gt;$id)); if($r){ $data = array( 'username' =&gt; $this-&gt;input-&gt;post('username'), 'user_id' =&gt; $id, 'validated' =&gt; true ); $this-&gt;load-&gt;library('session'); $this-&gt;session-&gt;set_userdata($data); redirect(URL.'users'); } } public function check_username(){ $result = $this-&gt;users_model-&gt;check_username($_POST['val']); $count = $result-&gt;result()[0]-&gt;count; if($count == 0) echo 1; else echo 0; } public function check_email(){ } } ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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