daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function redirect_edit($id) {
  2.         $redirect = \Ersties\Models\LandingRedirect::findOrCreate($id);
  3.         $form = new \Form;
  4.  
  5.         $listForm = \Form::create();
  6.  
  7.         $listForm->fieldset();
  8.         $listForm->text('from_url', _t('From URL'), 'required', $redirect->from_url);
  9.         $listForm->text('landing_id', _t('Landing'), 'required', $redirect->landing->id);
  10.         $listForm->submit(_t('Save'))->add_class("single");
  11.  
  12.  
  13.         $form->form_list("users", $listForm, [], true);
  14.  
  15.         if ($form->validate()) {
  16.  
  17.  
  18.             set_flash('info',_t('Successfully saved'));
  19.             redirect('admin/ersties/webmaster-edit/'.$user->id);
  20.         }
  21.  
  22.         $this->data['title'] = _t('Webmaster edit');
  23.         $this->data['content_class'] = 'Webmaster';
  24.         $this->data['form'] = $form->get();
  25.         $this->view('cms/base-edit');
  26.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top