public function init ()
	{

		if (!empty($this->belongs_to)) {
			try {
				$model = $this->belongs_to['model'];
				$this->parent_model = $model::find($this->params[$this->belongs_to['param']]);

			} catch (\PDOException $e) {
				return $this->http_status(404);
			}
		}

		return parent::init();
	}
public function init ()
	{

		if (!empty($this->belongs_to)) {
			try {
				$model = $this->belongs_to['model'];
				$this->parent_model = $model::find($this->params[$this->belongs_to['param']]);

			} catch (\PDOException $e) {
				return $this->http_status(404);
			}
		}

		return parent::init();
	}
public function init ( ) { if ( ! empty ( $ this -> belongs_to ) ) { try { $ model = $ this -> belongs_to [ 'model' ] ; $ this -> parent_model = $ model :: find ( $ this -> params [ $ this -> belongs_to [ 'param' ] ] ) ; } catch ( \ PDOException $ e ) { return $ this -> http_status ( 404 ) ; } } return parent :: init ( ) ; }
Returns Bacon\Presenter
Returns Bacon \ Presenter