public function setPath(string $path)
    {
        $this->path = $path;
        
        // update path to templates and preload list of templates.
        $this->contentPath = $this->path . DIR_CONTENT_BASENAME;
        $this->templatesPath = $this->contentPath . DIR_TEMPLATES_BASENAME;
        
        $this->templates = File::listFilesRecursively($this->templatesPath, false, EXT_PART, EXT_PAGE);
    }
public function setPath(string $path)
    {
        $this->path = $path;
        
        // update path to templates and preload list of templates.
        $this->contentPath = $this->path . DIR_CONTENT_BASENAME;
        $this->templatesPath = $this->contentPath . DIR_TEMPLATES_BASENAME;
        
        $this->templates = File::listFilesRecursively($this->templatesPath, false, EXT_PART, EXT_PAGE);
    }
public function setPath ( string $ path ) { $ this -> path = $ path ; // update path to templates and preload list of templates. $ this -> contentPath = $ this -> path . DIR_CONTENT_BASENAME ; $ this -> templatesPath = $ this -> contentPath . DIR_TEMPLATES_BASENAME ; $ this -> templates = File :: listFilesRecursively ( $ this -> templatesPath , false , EXT_PART , EXT_PAGE ) ; }
Set the absolute path to the addon's directory.

@param string $path
The absolute path to the addon's directory.
Set the absolute path to the addon s directory .