Skip to content

Commit

Permalink
Update bladex.php
Browse files Browse the repository at this point in the history
  • Loading branch information
israel-nogueira committed May 21, 2023
1 parent 8a471e0 commit 8a8254b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/bladex.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ public function __construct($viewPaths=null, string $cachePath=null, ContainerIn
}


static public function view(string $view, array $data = [], array $mergeData = [])
{
$instancia = new self();
static public function view(string $view, array $data = [], array $mergeData = []){
$VIEWS = $viewPaths?? realpath(__DIR__.'/../../../..');
$CACHE = $cachePath?? realpath(__DIR__.'/../../../..').'/cache';
$instancia = new self($VIEWS,$CACHE);
return $instancia->make($view, $data, $mergeData);
}

Expand Down

0 comments on commit 8a8254b

Please sign in to comment.