menu.php 413 B

12345678910111213141516171819202122232425
  1. <?php
  2. class Menu extends Controller{
  3. function main()
  4. {
  5. if(method::post('popup')){$this->menu_model->menu_name_save(method::post());}
  6. if(method::post('yazi_submit')){output(method::post()); }
  7. if(method::post('page_submit')){$this->menu_model->pageInsert(method::post()); }
  8. $data['menucat'] = $this->menu_model->menucat();
  9. import::view('menu/index',$data);
  10. }
  11. }