예제 #1
0
	public function renderDelete($id = 0)
	{
		$this->template->album = $this->albums->get($id);
		if (!$this->template->album) {
			throw new NA\BadRequestException('Record not found');
		}
	}
예제 #2
0
 public function renderDelete($id = 0) {
     $this->template->page = $this->pages->get($id);
     if (!$this->template->page) {
         throw new NA\BadRequestException('Záznam nebyl nalezen');
     }
 }