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 | |
| /** | |
| * Helper to generate thumbnail images dynamically by saving them to the cache. | |
| * Alternative to phpthumb. | |
| * | |
| * Esta classe foi adaptada para o uso da classe VEROT para manipulação das imagens (por Gabriel Lau) | |
| * | |
| * Inspired in http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php/ | |
| * | |
| * @author Emerson Soares (dev.emerson@gmail.com) |
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
| public function view($id = null) { | |
| $this->Noticia->id = $id; | |
| if (!$this->Noticia->exists()) { | |
| throw new NotFoundException(__('Invalid noticia')); | |
| } | |
| $this->set('noticia', $this->Noticia->read(null, $id)); | |
| } |
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
| public function view($id = null) { | |
| $this->Noticia->id = $id; | |
| if (!$this->Noticia->exists()) { | |
| throw new NotFoundException(__('Invalid noticia')); | |
| } | |
| $this->set('noticia', $this->Noticia->read(null, $id)); | |
| } |
NewerOlder