Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Computation extends CI_Controller {
- public function _remap($action, $params)
- {
- if ( ! $this->input->is_cli_request())
- {
- show_error('Not for web access.', 403);
- }
- $this->load->library('cli');
- chdir(realpath(dirname(__FILE__) . '/../..')); // pour être sûr que php est là où il faut
- $this->load->model('computation', '', true);
- if (method_exists($this, $action))
- {
- return call_user_func_array(array($this, $action), $params);
- }
- }
- public function forum($params)
- {
- $this->load->helper('array');
- $forum_id = (int)element(0, $params, 7);
- $this->Computationmodel->forum($forum_id);
- }
- }
- /* End of file welcome.php */
- /* Location: ./application/controllers/welcome.php */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement