Notice (8): Undefined variable: dir [APP/View/Elements/Chicken/En/gallery.ctp, line 16]Code Context
<?php
$$dir = 'img/' . $this->Session->Read('saas') . DS . 'galleries';
$viewFile = '/home/thekitchen/htdocs/www.thekitchen.tn/app/View/Elements/Chicken/En//gallery.ctp'
$dataForView = array(
'page' => 'home',
'subpage' => null,
'title_for_layout' => 'Home',
'content_for_layout' => '',
'scripts_for_layout' => ''
)
$page = 'home'
$subpage = null
$title_for_layout = 'Home'
$content_for_layout = ''
$scripts_for_layout = ''
include - APP/View/Elements/Chicken/En/gallery.ctp, line 16
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Layouts/Chicken.ctp, line 19
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
PagesController::display() - APP/Controller/PagesController.php, line 50
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110
Notice (8): Undefined variable: dir [APP/View/Elements/Chicken/En/gallery.ctp, line 17]Code Context <?php
$$dir = 'img/' . $this->Session->Read('saas') . DS . 'galleries';
$files1 = scandir($dir);
$viewFile = '/home/thekitchen/htdocs/www.thekitchen.tn/app/View/Elements/Chicken/En//gallery.ctp'
$dataForView = array(
'page' => 'home',
'subpage' => null,
'title_for_layout' => 'Home',
'content_for_layout' => '',
'scripts_for_layout' => ''
)
$page = 'home'
$subpage = null
$title_for_layout = 'Home'
$content_for_layout = ''
$scripts_for_layout = ''
$ = 'img/Chicken/galleries'
include - APP/View/Elements/Chicken/En/gallery.ctp, line 17
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Layouts/Chicken.ctp, line 19
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
PagesController::display() - APP/Controller/PagesController.php, line 50
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110
Warning (2): scandir() [<a href='http://php.net/function.scandir'>function.scandir</a>]: Directory name cannot be empty [APP/View/Elements/Chicken/En/gallery.ctp, line 17]Code Context <?php
$$dir = 'img/' . $this->Session->Read('saas') . DS . 'galleries';
$files1 = scandir($dir);
$viewFile = '/home/thekitchen/htdocs/www.thekitchen.tn/app/View/Elements/Chicken/En//gallery.ctp'
$dataForView = array(
'page' => 'home',
'subpage' => null,
'title_for_layout' => 'Home',
'content_for_layout' => '',
'scripts_for_layout' => ''
)
$page = 'home'
$subpage = null
$title_for_layout = 'Home'
$content_for_layout = ''
$scripts_for_layout = ''
$ = 'img/Chicken/galleries'
scandir - [internal], line ??
include - APP/View/Elements/Chicken/En/gallery.ctp, line 17
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Layouts/Chicken.ctp, line 19
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
PagesController::display() - APP/Controller/PagesController.php, line 50
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110
Warning (2): array_shift() expects parameter 1 to be array, bool given [APP/View/Elements/Chicken/En/gallery.ctp, line 19]Code Context $files1 = scandir($dir);
array_shift($files1);
$viewFile = '/home/thekitchen/htdocs/www.thekitchen.tn/app/View/Elements/Chicken/En//gallery.ctp'
$dataForView = array(
'page' => 'home',
'subpage' => null,
'title_for_layout' => 'Home',
'content_for_layout' => '',
'scripts_for_layout' => ''
)
$page = 'home'
$subpage = null
$title_for_layout = 'Home'
$content_for_layout = ''
$scripts_for_layout = ''
$files1 = false
$ = 'img/Chicken/galleries'
array_shift - [internal], line ??
include - APP/View/Elements/Chicken/En/gallery.ctp, line 19
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Layouts/Chicken.ctp, line 19
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
PagesController::display() - APP/Controller/PagesController.php, line 50
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110
Warning (2): array_shift() expects parameter 1 to be array, bool given [APP/View/Elements/Chicken/En/gallery.ctp, line 20]Code Context
array_shift($files1);
array_shift($files1);
$viewFile = '/home/thekitchen/htdocs/www.thekitchen.tn/app/View/Elements/Chicken/En//gallery.ctp'
$dataForView = array(
'page' => 'home',
'subpage' => null,
'title_for_layout' => 'Home',
'content_for_layout' => '',
'scripts_for_layout' => ''
)
$page = 'home'
$subpage = null
$title_for_layout = 'Home'
$content_for_layout = ''
$scripts_for_layout = ''
$files1 = false
$ = 'img/Chicken/galleries'
array_shift - [internal], line ??
include - APP/View/Elements/Chicken/En/gallery.ctp, line 20
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Layouts/Chicken.ctp, line 19
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
PagesController::display() - APP/Controller/PagesController.php, line 50
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110
Warning (2): Invalid argument supplied for foreach() [APP/View/Elements/Chicken/En/gallery.ctp, line 24]Code Context
?>
<?php foreach ($files1 as $file) : ?>
$viewFile = '/home/thekitchen/htdocs/www.thekitchen.tn/app/View/Elements/Chicken/En//gallery.ctp'
$dataForView = array(
'page' => 'home',
'subpage' => null,
'title_for_layout' => 'Home',
'content_for_layout' => '',
'scripts_for_layout' => ''
)
$page = 'home'
$subpage = null
$title_for_layout = 'Home'
$content_for_layout = ''
$scripts_for_layout = ''
$files1 = false
$ = 'img/Chicken/galleries'
include - APP/View/Elements/Chicken/En/gallery.ctp, line 24
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
include - APP/View/Layouts/Chicken.ctp, line 19
View::_evaluate() - CORE/Cake/View/View.php, line 971
View::_render() - CORE/Cake/View/View.php, line 933
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
PagesController::display() - APP/Controller/PagesController.php, line 50
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 110