-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMain.php
More file actions
23 lines (14 loc) · 756 Bytes
/
Main.php
File metadata and controls
23 lines (14 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
namespace IdnoPlugins\MyPlugin {
use Idno\Common\Plugin;
class Main extends Plugin {
function registerPages()
{
\Idno\Core\site()->addPageHandler('helloworld/?', 'IdnoPlugins\MyPlugin\Pages\HelloWorld', true);
\Idno\Core\site()->addPageHandler('/hello/edit/?', '\IdnoPlugins\MyPlugin\Pages\Edit');
\Idno\Core\site()->addPageHandler('/hello/edit/([A-Za-z0-9\-]+)/?', '\IdnoPlugins\MyPlugin\Pages\Edit');
\Idno\Core\site()->addPageHandler('/hello/delete/([A-Za-z0-9\-]+)/?', '\IdnoPlugins\MyPlugin\Pages\Delete');
\Idno\Core\site()->template()->extendTemplate('content/end', 'hello/end');
}
}
}