-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
31 lines (26 loc) · 850 Bytes
/
index.php
File metadata and controls
31 lines (26 loc) · 850 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
<?php
include_once 'resource/blog.php';
include_once 'model/blog.php';
include_once 'controller/blog_index.php';
include_once LF.'system/lib/3rdparty/parsedown/Parsedown.php';
/* api testing
pre(
(new \blog\threads)->put(29, [
'date' => '2016-11-27 22:31:32' // should rather be CURRENT TIMESTAMP by default and thus gone
, 'owner_id' => (new \lf\user)->idFromSession()
, 'category' => 'REST'
, 'title' => 'RESTful Title'
, 'content' => 'blog '
])
);
//pre( (new \lf\orm)->desc('blog_threads') );
pre( (new \blog\threads)->get() );
*/
echo \lf\resolveAppUrl( // resolves legacy `%appurl%` shortcuts into `\lf\requestGet('ActionUrl')`
(new \lf\user)->resolveIds( // resolves `{user:39}` into `lf_users`-`id`-`39`'s `display_name`
(new \lf\cms)->mvc(
(new blog_index),
$_app['ini']
)
)
);