Created
June 16, 2015 18:00
-
-
Save ogabrielsantos/53fdb1a787a8b824be30 to your computer and use it in GitHub Desktop.
This file contains 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 | |
class App | |
{ | |
public $controllerTitle = null; | |
public function beforeFilter() | |
{ | |
if ($this->controllerTitle) { | |
$this->set('controllerTitle', $this->controllerTitle); | |
} | |
} | |
} | |
class Foo extends App | |
{ | |
$controllerTitle = 'Foos'; | |
public function list() | |
{ | |
$this->controllerTitle = 'Listar foo'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment