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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| if ( ! function_exists('image_thumb_helper')){ | |
| function image_thumb($image_path, $filename, $height, $width){ | |
| $filename = preg_replace('/\.png/','_',$filename); | |
| // Get the CodeIgniter super object | |
| $CI =& get_instance(); | |
| // Path to image thumbnail | |
| $image_thumb = dirname($image_path) . '/'.$filename . $height . '_' . $width . '.png'; | |
| if( ! file_exists($image_thumb)){ | |
| // LOAD LIBRARY |
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 | |
| // controller | |
| function wutangclan() { | |
| $this->load->model('odb'); | |
| $data['killerbees'] = $this->odb->getThatPaper(); | |
| $data['main_content'] = 'report/dashboard'; // main body view, can be whatever | |
| $this->load->view('includes/template', $data); | |
| ?> | |
| ============ |
NewerOlder