Created
April 21, 2011 21:51
-
-
Save yuya-matsushima/935568 to your computer and use it in GitHub Desktop.
ModelからModel呼び出し検証用
This file contains hidden or 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 Sample extends CI_Controller | |
{ | |
function __construct() | |
{ | |
parent::__construct(); | |
} | |
function index() | |
{ | |
$this->load->model('main_model'); | |
echo $this->main_model->main_add(1, 2, 3); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment