Welcome Guest, Not a member yet? Register   Sign In
News tutorial help needed
#9

[eluser]Aken[/eluser]
You need to make sure to call the parent construct in your models.

Code:
class News_model extends CI_Model {

public function __construct()
{
  parent::__construct();
  $this->load->database();
}

// The rest of your model code...
}

Your controller also looks malformed (missing curly braces to close methods). You are also defining the view() method more than once.

Also, if you have an .htaccess file to remove index.php, I suggest you take it out for the time being, as it is often the cause of 500 server errors. Otherwise it could be the PHP errors causing problems.


Messages In This Thread
News tutorial help needed - by El Forum - 10-10-2012, 10:19 AM
News tutorial help needed - by El Forum - 10-10-2012, 10:54 AM
News tutorial help needed - by El Forum - 10-10-2012, 11:00 AM
News tutorial help needed - by El Forum - 10-10-2012, 11:11 AM
News tutorial help needed - by El Forum - 10-10-2012, 11:19 AM
News tutorial help needed - by El Forum - 10-10-2012, 11:26 AM
News tutorial help needed - by El Forum - 10-10-2012, 01:37 PM
News tutorial help needed - by El Forum - 10-11-2012, 08:40 AM
News tutorial help needed - by El Forum - 10-11-2012, 08:52 PM
News tutorial help needed - by El Forum - 10-16-2012, 06:40 AM
News tutorial help needed - by El Forum - 02-12-2013, 07:17 AM
News tutorial help needed - by El Forum - 08-06-2014, 06:15 AM
News tutorial help needed - by El Forum - 08-06-2014, 01:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB