示されているように、ライブラリから関数にアクセスしようとしているときに、上記のエラーが発生します...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class My_crud {
public function select_from($select, $from) {
// dafaults
$output = "";
// querying
$this->db->select($select);
$this->db->from($from);
$query = $this->db->get();
// if no rows returned
if ($uqery->num_rows == 0) {
return $output = "No Results Found";
}
// if row(s) retunred
return $output = $query->result_array();
}
}
database
ライブラリが自動ロードとして設定されている間。