Tool.php
619 Bytes
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Tool extends CI_Controller {
public function cal() {
$this->load->view('tool/cal');
}
public function web() {
$this->load->view('tool/web');
}
public function add() {
$this->load->view('tool/add');
}
public function edit($id) {
$res = json_decode(file_get_contents($this->config->item('apiBaseUrl') . 'application/tool/webSite/' . $id));
$data = $res->data;
$arr = array(
'data'=>$data
);
$this->load->view('tool/edit', $arr);
}
}