Answer the question
In order to leave comments, you need to log in
How to properly start a session in kohana?
Good day!
There is
abstract class Controller_Common extends Controller_Template
class Controller_Products extends Controller_Common
<?php defined('SYSPATH') or die('No direct script access.');
abstract class Controller_Common extends Controller_Template {
public $template = 'template';
public $siteName = 'Lumia Shop';
public function before() {
parent::before();
View::set_global('title', 'Сайт');
View::set_global('description', 'Самый лучший сайт');
$this->template->content = '';
$this->template->styles = array('style'); // файлы стилей
$this->template->scripts = array('jquery'); // файлы js
}
} // End Common
ErrorException [ Parse Error ]: syntax error, unexpected '(', expecting ',' or ';'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question