Skip to content

Instantly share code, notes, and snippets.

@ricardofiorani
Created June 25, 2014 11:47
Show Gist options
  • Save ricardofiorani/791e96712b70fce98e4e to your computer and use it in GitHub Desktop.
Save ricardofiorani/791e96712b70fce98e4e to your computer and use it in GitHub Desktop.
SiteController.php
public function control_quem_somos() {
$sobre = $this->listar('tbl_sobre', '', 1, 4)->registros;
$this->renderizar('quem-somos', array(
'sobre' => $sobre,
));
}
public function control_about_us(){
return $this->control_quem_somos();
}
public function ver_pagina($id){
...
...
...
}
public function view_page($id){
//Nunca esquecer que se o control em pt-br tiver parametros, passa-los aqui também
return $this->ver_pagina($id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment