Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('SYSPATH') or die('No direct script access.');
- class Controller_Page extends Controller_Common {
- // Главная страница
- public function action_index()
- {
- $articles = array();
- $content = View::factory('/pages/show')
- ->bind('articles', $articles);
- $articles = Model::factory('Article')->get_all();
- $this->template->content = $content;
- }
- /* public function action_index()
- {
- $chat = array();
- $content = View::factory('/chat/show')
- ->bind('chat', $chat);
- $chat = Model::factory('chat')->get_chat();
- $this->template->content = $content;
- } */
- } // End Page
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement