Subversion-Projekte lars-tiefland.ci

Revision

Revision 1577 | Revision 1586 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1577 Revision 1584
Zeile 4... Zeile 4...
4
{
4
{
5
	public function __construct()
5
	public function __construct()
6
	{
6
	{
7
		parent::__construct();
7
		parent::__construct();
8
		$this->load->model('artikel_model', 'artikel');
8
		$this->load->model('artikel_model', 'artikel');
-
 
9
		$this->load->model('herstellerkatalog_model', 'hersteller');
9
	}
10
	}
10
	
11
 
11
	public function edit($id=null)
12
	public function edit($id = null)
12
	{
13
	{
-
 
14
		$hersteller = $this->hersteller->get('dropdown');
13
		$daten = array();
15
		$daten = array();
14
		if($id)
16
		if ($id)
15
		{
17
		{
16
			$daten = $this->artikel->get($id);
18
			$daten = $this->artikel->get($id);
17
		}
19
		}
18
		$this->smarty->assign('daten',$daten);
20
		$this->smarty->assign('daten', $daten);
19
		$this->smarty->view('artikel.tpl');
21
		$this->smarty->view('artikel.tpl');
20
	}
22
	}
21
}
23
}