-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·58 lines (54 loc) · 1014 Bytes
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* @APP@
*
* @package Page
*/
require_once 'App.php';
/**
* Untitledページ
*
* <pre>
* </pre>
*
* @package Page
* @author $Author:$
* @version SVN: Release: $Id:$
*/
class Page_Index extends App_Page
{
/**
* インジェクト
*
* @return void
*/
public function onInject()
{
parent::onInject();
}
/**
* 初期化
*
* @return void
*/
public function onInit(array $args)
{
// RSS resource
$uri = 'http://rss.excite.co.jp/rss/excite/odd';
$options['pager'] = 5;
$params = array('uri' => $uri, 'values' => array(), 'options' => $options);
$this->_resource->read($params)->set('news');
$this->set('time', date('n/j H:i'));
}
/**
* 出力
*
* @return void
*/
public function onOutput()
{
$this->display();
}
}
$options = array('cache' => array('type' => 'init', 'life' => 10));
App_Main::run('Page_Index', $options);