From e79d41a0de8a21db83fdb6b3e25ae65c9923c46d Mon Sep 17 00:00:00 2001
From: Pascal Kriete
var $content = '';
var $date = '';
- function Blogmodel()
+ function __construct()
{
// Call the Model constructor
- parent::CI_Model();
+ parent::__construct();
}
function get_last_ten_entries()
@@ -128,9 +128,9 @@ want this type of organization.
class Model_name extends CI_Model {
- function Model_name()
+ function __construct()
{
- parent::CI_Model();
+ parent::__construct();
}
}
@@ -142,9 +142,9 @@ Make sure your class extends the base Model class.
class User_model extends CI_Model {
- function User_model()
+ function __construct()
{
- parent::CI_Model();
+ parent::__construct();
}
}
--
cgit v1.2.3-24-g4f1b