Skip to content

Instantly share code, notes, and snippets.

@yuya-matsushima
Created April 21, 2011 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuya-matsushima/935569 to your computer and use it in GitHub Desktop.
Save yuya-matsushima/935569 to your computer and use it in GitHub Desktop.
ModelからModel呼び出し検証用
<?php
class Main_model extends CI_Model
{
function __construct()
{
parent::__construct();
}
function main_add($a, $b, $c)
{
//いつも通り呼び出す
$this->load->model('sub_model');
return $c + $this->sub_model->sub_add($a, $b);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment