Subversion-Projekte lars-tiefland.ci

Revision

Revision 24 | Revision 56 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php

/**
 * @author Lars Tiefland
 * @copyright 2016
 */

class Artikel extends CI_Controller
{

        public function __construct()
        {
                parent::__construct();
                $this->load->model('artikel_model', 'artikel');
        $this->output->cache(120);
        }
        public function view($id)
        {
                $data["item"] = $this->artikel->get_artikel($id);
                $this->smarty->view( 'single_artikel.tpl', $data );
        }
    public function index($father)
    {
        $data["artikel"] = $this->artikel->list_artikel($father);
        $this->smarty->view("artikel_liste.tpl",$data);
    }
}

?>