function __construct($from, $to, $options, $nested) { $this->pre_from = $from; $this->to = $to; $this->options = $options; $this->nested = $nested; $this->prefix = Route::get_prefix(); $this->pre_from = $this->prefix . $this->pre_from; //check for route parameters $this->_check_parameters(); }