Advertisement
citstudio

cakePHPError Handling - Part 3

Jul 9th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. // /app/Controller/AppController.php
  2. class AppController extends Controller {
  3.  
  4.   public function afterFilter() {
  5.     parent::afterFilter();
  6.   }
  7.  
  8.   public function beforeRender() {
  9.     if ($this->name == 'CakeError') {
  10.       $this->set('slider', FALSE);
  11.       $this->set('message', "PESAN KESALAHAN");
  12.       $this->layout = 'error_template';
  13.     }
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement