This is my second web application in CI.
I am trying to get a single value from a form (after submitting) and paste it into the database.
I have a urlsubmission controller:
<?php class Urlsubmission extends CI_Controller{ function index() { $this->load->model('domaincheckmodel'); $this->domaincheckmodel->verifyduplicates(); } } ?>
model (domaincheckmodel) - which looks for db for any duplicate:
<?php class Domaincheckmodel extends CI_Model{ function __construct(){
and two silly looks right now: domainexists and domainfree:
domainexists:
<h2>Domain Exists</h2>
domainfree:
<h2>Domain free</h2>
The problem is this: when I run the script, there are no errors, but it correctly executes the else{} block, but does not enter anything into the database.
I have a config / autoload setting to automatically load db lib, for example:
$autoload['libraries'] = array('database');
What am I doing wrong here?
source share