public function getLayout($layout_name = null) { if (is_null($layout_name)) { $layout_name = $this->layout; } return $this->layouts[$layout_name]; }