<?php class Admin_model extends CI_Model { function __construct() { parent::__construct(); } public function get_something($id) { //SQL bla bla . Request by id return $result; } public function something() { get_something('2'); // I Think its not right }
public function something() { $this->get_something('2'); //or self::get_something(2); }