Simple Resize Model Function |
Hi All,
I know people like to make there on code. But though would share my image_lib resize function You will need to create a image folder in main directory. And also inside that image directory create a subfolder you could name it new_image folder or rename it to what you would like just remember to change it on model. PHP Code: <?php Load the model on to a controller where need. PHP Code: $this->load->model('model_image');
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Welcome Guest, Not a member yet? Register Sign In |