am creating a simple blog application and i have a model in ci called entries model and one particular function that gets a blog entry by id from an entries table table in a database this here is the code
<?php
class Entries_model extends CI_Model{
function __construct(){
parent::__Construct();
}
function get_comment($id){
$query = $this->db->where('id',$id);
$query = $this->db->get('entries');
}
i am coding according to a tutorial i did so i know this is a damn question but where does the $id parameter come from? does codigniter automatically assume that this parameter comes from the third section of the uri
?
thanks