-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKernel.php.sample
More file actions
40 lines (35 loc) · 868 Bytes
/
Kernel.php.sample
File metadata and controls
40 lines (35 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
class Kernel extends \SF\Kernel
{
protected function getRoutes()
{
return array(
'index' => array(
'pattern' => '/',
'controller' => 'Controller',
'action' => 'index',
)
);
}
protected function getConfig()
{
return array();
}
protected function getTemplatingDirectories()
{
return array('' => __DIR__.'/templates');
}
protected function getTemplatingVars()
{
return array(
// use to include templates inside other templates
'templating' => $this->container['templating'],
// use to generate routes in templates
'router' => $this->container['router'],
);
}
protected function getLogFile()
{
return __DIR__.'/log.txt';
}
}