/** * render user edit list page * * @param type $wish_list_id * @param type $userID */ public function editWL($wish_list_id, $userID) { $wishlist = new Wishlist(); if ($wishlist->renderUserWLEdit($wish_list_id, $userID)) { $user_id = $this->session->userdata('admin_edit_user_id'); \CMSFactory\assetManager::create()->registerScript('wishlist')->registerStyle('style')->setData('wishlists', $wishlist->dataModel)->setData('user_id', $user_id)->renderAdmin('wishlistEdit'); } else { redirect($_SERVER['HTTP_REFERER']); } }