private function setTemplatePath($templatePath)
  {
    $return = false;

    if (is_string($templatePath)) {
      if ($this->checkTemplatePath($templatePath) === true) {
        $this->templatePath[] = $templatePath;

        $return = true;
      }
    }
    else if (is_array($templatePath)) {
      foreach ($templatePath as $path) {
        if ($this->checkTemplatePath($path) === true) {
          $this->templatePath[] = $path;

          $return = true;
        }
      }
    }

    return $return;
  }
private function setTemplatePath($templatePath)
  {
    $return = false;

    if (is_string($templatePath)) {
      if ($this->checkTemplatePath($templatePath) === true) {
        $this->templatePath[] = $templatePath;

        $return = true;
      }
    }
    else if (is_array($templatePath)) {
      foreach ($templatePath as $path) {
        if ($this->checkTemplatePath($path) === true) {
          $this->templatePath[] = $path;

          $return = true;
        }
      }
    }

    return $return;
  }
private function setTemplatePath ( $ templatePath ) { $ return = false ; if ( is_string ( $ templatePath ) ) { if ( $ this -> checkTemplatePath ( $ templatePath ) === true ) { $ this -> templatePath [ ] = $ templatePath ; $ return = true ; } } else if ( is_array ( $ templatePath ) ) { foreach ( $ templatePath as $ path ) { if ( $ this -> checkTemplatePath ( $ path ) === true ) { $ this -> templatePath [ ] = $ path ; $ return = true ; } } } return $ return ; }
set the template-path or use the path from config

@param array|string $templatePath

@return bool
set the template - path or use the path from config