Example #1
0
 public function indexAction()
 {
     $page = Input::get('p');
     $articles = ArticleModel::lists();
     $auths = AuthModel::lists();
     View::make('index')->with('article', $articles[0])->with('title', $articles[0]->title . 'index')->with('auths', $auths)->with('page', $page)->show();
     echo microtime(true) - START_TIME;
     echo "<br>";
     echo memory_get_usage() - START_USAGE_MEMORY;
     exit;
 }