daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Nov 24th, 2017 58 in 9 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. try {
  2.  $q = $this->MyClass->find('all');
  3.  [some joins]
  4.  $q->where($string_based_on_user_input);
  5.  $q->order($another_string_based_on_user_input)
  6. } catch(\Exception $e) {
  7.  return $this->redirect(['action' => 'index']);
  8. }
RAW Paste Data
Top