Changeset 2151 for releases/2.1.2/application/controllers/examples.php
- Timestamp:
- 02/22/2008 09:39:31 PM (11 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
releases/2.1.2/application/controllers/examples.php
r2128 r2151 49 49 $archive = new Archive('zip'); 50 50 51 // Add welcome.php with the name of test.php52 $archive->add(APPPATH.'views/', ' shitty/views', TRUE);51 // Download the application/views directory 52 $archive->add(APPPATH.'views/', 'app_views/', TRUE); 53 53 54 54 // Download the built archive … … 336 336 $profiler = new Profiler; 337 337 338 $dir = str_replace('\\', '/', realpath(dirname(__FILE__).'/../upload')).'/'; 339 340 $image = new Image($dir.'moo.jpg'); 341 342 $image->resize(400, NULL)->crop(400, 350, 'top')->sharpen(20); 343 344 $image->save($dir.'super-cow-crop.jpg'); 338 // Upload directory 339 $dir = realpath(DOCROOT.'upload').'/'; 340 341 // Image filename 342 $image = $dir.'mypic.jpg'; 343 344 // Create an instance of Image, with file 345 $image = new Image($image); 346 347 // Resize the image 348 $image->resize(100, 100); 349 350 // Save the image 351 $image->save($dir.'mypic_thumb.jpg'); 345 352 346 353 echo Kohana::debug($image);
