示例#1
0
文件: index.php 项目: alezi06/testpro
<?php

require __DIR__ . '/autoload.php';
$news = \App\Models\News::findLastNews(3);
include __DIR__ . '/App/templates/index.php';
示例#2
0
文件: News.php 项目: mr-kamc/php2.zz
 protected function actionIndex()
 {
     $this->view->news = \App\Models\News::findLastNews(3);
     $this->view->users = \App\Models\User::findAll();
     echo $this->view->render(__DIR__ . '/../templates/index.php');
 }
示例#3
0
文件: Admin.php 项目: mr-kamc/php2.zz
 protected function actionIndex()
 {
     $this->view->news = News::findLastNews(5);
     $this->view->users = User::findAll();
     echo $this->view->render(__DIR__ . '/../templates/admin.php');
 }