diff --git a/lightbox/controllers/TouchController.php b/lightbox/controllers/TouchController.php index 2fa7451..b19545e 100644 --- a/lightbox/controllers/TouchController.php +++ b/lightbox/controllers/TouchController.php @@ -19,7 +19,7 @@ class TouchController extends Controller /** * @var string Use custom layout. */ - public $layout = '@dkhlystov/lightbox/views/layout'; + public $layout = 'layout'; /** * Render lightbox for mobile @@ -35,7 +35,7 @@ public function actionImage() //ckicked index $touch = array_search($request->post('touch'), $src); - return $this->render('@dkhlystov/lightbox/views/lightbox', [ + return $this->render('lightbox', [ 'src' => $src, 'touch' => (integer) $touch, ]); diff --git a/lightbox/views/layout.php b/lightbox/views/layouts/layout.php similarity index 100% rename from lightbox/views/layout.php rename to lightbox/views/layouts/layout.php diff --git a/lightbox/views/lightbox.php b/lightbox/views/touch/lightbox.php similarity index 100% rename from lightbox/views/lightbox.php rename to lightbox/views/touch/lightbox.php