Skip to content

Instantly share code, notes, and snippets.

@yuya-matsushima
Created April 21, 2011 21:51
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/935568 to your computer and use it in GitHub Desktop.
Save yuya-matsushima/935568 to your computer and use it in GitHub Desktop.
ModelからModel呼び出し検証用
<?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