-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontroller.php
45 lines (36 loc) · 1.02 KB
/
controller.php
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
41
42
43
44
45
<?php
namespace Concrete\Package\Finder;
use Concrete\Core\Package\Package;
use Route;
class Controller extends Package
{
protected $pkgHandle = 'finder';
protected $appVersionRequired = '8.0';
protected $pkgVersion = '0.0.1';
protected $pkgAutoloaderRegistries = array(
'src/' => 'Concrete\Package\Finder',
);
public function getPackageDescription()
{
return t('Trouver des pages');
}
public function getPackageName()
{
return t('Trouveur');
}
public function install()
{
$pkg = parent::install();
}
public function on_start()
{
Route::register('/data/titles', '\Concrete\Package\Finder\Titles::echo');
Route::register('/data/info', '\Concrete\Package\Finder\Info::echo');
// Au cas où, pour mémoire
// $al = AssetList::getInstance();
// $al->register('css', 'hw_testimonials', 'css/hw_testimonials.css', array('version' => '1', 'position' => Asset::ASSET_POSITION_HEADER, 'minify' => false, 'combine' => false), $this);
}
public function upgrade()
{
}
}