00001 <?php 00029 class PagesController extends ApplicationController 00030 { 00031 public function before_filter() 00032 { 00033 // Si es AJAX enviar solo el view 00034 if ($this->is_ajax()) { 00035 $this->set_response('view'); 00036 } 00037 } 00038 00039 public function show() 00040 { 00041 $page = implode('/', $this->parameters); 00042 $this->render($page); 00043 } 00044 }