public function baseUrl($protocol = null) { $prot = $this->protocolUrl; if ($protocol !== null) { $prot = $protocol; } return $prot . $this->config['baseUrl']; }