コード例 #1
0
 public function index($id, $id_anunt)
 {
     if (!($anunt = \Binaryk\Models\Nomenclator\TipAnunturi::getRecord((int) $id_anunt))) {
         return \Redirect::route('proceduri-achizitii');
     }
     $config = Grids::make($id)->toIndexConfig($id);
     $config['row-source'] .= '/' . $id_anunt;
     $this->show($config + ['other-info' => ['anunt' => $anunt]]);
 }
コード例 #2
0
 public function getTipAnuntByTipProcedura()
 {
     return \Response::json(['success' => true, 'options' => \Binaryk\Models\Nomenclator\TipAnunturi::toPopulateCombobox(\Input::get('id'))]);
 }