website_jukni/pastebin/application/controllers/Iphone.php
2017-12-29 15:51:59 +01:00

34 lines
577 B
PHP

<?php
/**
* Class and Function List:
* Function list:
* - __construct()
* - index()
* - view()
* Classes list:
* - Iphone extends CI_Controller
*/
class Iphone extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('languages');
}
function index()
{
$this->load->model('pastes');
$data = $this->pastes->getLists('iphone/');
$this->load->view('iphone/recent', $data);
}
function view()
{
$this->load->model('pastes');
$data = $this->pastes->getPaste(3);
$this->load->view('iphone/view', $data);
}
}