public function loadTemplate($path)
    {
        $path = $this->path->getDir($path);

        if (!file_exists($path)) {
            throw new \Parable\Framework\Exception("Email template '{$path}' does not exist.");
        }

        $content = $this->view->partial($path);
        $this->setBody(trim($content));
        return $this;
    }
public function loadTemplate($path)
    {
        $path = $this->path->getDir($path);

        if (!file_exists($path)) {
            throw new \Parable\Framework\Exception("Email template '{$path}' does not exist.");
        }

        $content = $this->view->partial($path);
        $this->setBody(trim($content));
        return $this;
    }
public function loadTemplate ( $ path ) { $ path = $ this -> path -> getDir ( $ path ) ; if ( ! file_exists ( $ path ) ) { throw new \ Parable \ Framework \ Exception ( "Email template '{$path}' does not exist." ) ; } $ content = $ this -> view -> partial ( $ path ) ; $ this -> setBody ( trim ( $ content ) ) ; return $ this ; }
Load template for this mail. Returns the interpreted output as string.

@param string $path

@return $this
@throws \Parable\Framework\Exception
Load template for this mail . Returns the interpreted output as string .