Skip to content

Commit

Permalink
💡 Re-add missing helper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylear committed Jul 23, 2021
1 parent 98fb0b8 commit 21e1960
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/Modello.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,38 @@ public static function view(string $view, array $data = []): void
}
}

/**
* Set the path to the views that Modellp will use.
*/
public static function setViews(string $views): string
{
return self::$views = $views;
}

/**
* Set the path for the view cache.
*/
public static function setCache(string $cache): string
{
return self::$cache = $cache;
}

/**
* Set whether or not the caching function is enabled.
*/
public static function setCacheEnabled(bool $enabled): bool
{
return self::$cacheEnabled = $enabled;
}

/**
* Set the extension that Modello expects when looking for view templates.
*/
public static function setExtension(string $extension): string
{
return self::$extension = $extension;
}

/**
* Compile the given view; $view takes the name of the view file for file naming purposes, and
* $template takes all the content of a view template file
Expand Down

0 comments on commit 21e1960

Please sign in to comment.