Created
April 21, 2011 21:53
-
-
Save yuya-matsushima/935569 to your computer and use it in GitHub Desktop.
ModelからModel呼び出し検証用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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