예제 #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');
 }