CI_Router::set_directory PHP Method

set_directory() public method

Set directory name
public set_directory ( string $dir, boolean $append = FALSE ) : void
$dir string Directory name
$append boolean Whether we're appending rather than setting the full value
return void
    public function set_directory($dir, $append = FALSE)
    {
        if ($append !== TRUE or empty($this->directory)) {
            $this->directory = str_replace('.', '', trim($dir, '/')) . '/';
        } else {
            $this->directory .= str_replace('.', '', trim($dir, '/')) . '/';
        }
    }