Skip to content

Commit

Permalink
VIEW constant was removed in CakePHP 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlaefer committed Apr 15, 2014
1 parent 1d30b6f commit 75739c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ should consider implementing a different solution. e.g.::
// App Controller Code.
public function beforeFilter() {
$locale = Configure::read('Config.language');
if ($locale && file_exists(VIEWS . $locale . DS . $this->viewPath)) {
if ($locale && file_exists(APP . 'View' . DS . $locale . DS . $this->viewPath)) {
// e.g. use /app/View/fra/Pages/tos.ctp instead of /app/View/Pages/tos.ctp
$this->viewPath = $locale . DS . $this->viewPath;
}
Expand Down

0 comments on commit 75739c7

Please sign in to comment.