function __construct($id, $player_id = null) { parent::__construct($id); if ($player_id) { $this->player = Person::load(array('user_id' => $player_id)); } $this->template_name = 'pages/team/roster.tpl'; }
function __construct($id) { parent::__construct($id); $this->title = "{$this->team->name} » Edit"; }