Created
May 9, 2013 08:23
-
-
Save ken-b4u/5546255 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 | |
// -GameBaseController | |
class GameBaseController extends AppController { | |
protected $name = 'test'; | |
} | |
// -GameAController | |
class GameAController extends GameBaseController { | |
public $components = array('GameExecute'); | |
public function test() { | |
$this->GameExecute->test($this); | |
} | |
} | |
// -GameExecuteComponent | |
class GameExecuteComponent extends Component { | |
public function test($controller) { | |
var_dump($controller->name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment