[eluser]Darker[/eluser]
[quote author="CroNiX" date="1351697420"]Except that order probably won't work.
More specific routes need to come first (most segments).
More specific named routes need to show up higher than those with wildcards, or the wildcard will match that segment before the named segment like
admin/contest/(:any)
should come before
admin/(:any)/(:any).
because if not, (:any) would match the "contest" segment and not route properly.[/quote]
Thanks for your help, now i wanna ask the other question.
Code:
<?php
class Admin_model extends CI_Model {
function __construct() {
parent::__construct();
}
function createContest($values){
$query = $this->db->query("INSERT INTO contests SET author=?, start=?, finish=?, title=? ", $values);
if ($query){ return true; } else { return false; }
}
}
?>
It's my admin_model.php. When i load this model there are some errors (but i can't see them, only blank space above page). Whats wrong there ?
Thanks.