Passing PHP variable to Html link for modal and AJAX
问题 In CakePHP 3, baked controllers have 4 functions that have their own views: Index, Add, Edit and Delete. I'm trying to move the Edit and View functions to modals, but I need the PHP variable to determine the specific data entry that is to be modified or viewed. Eg. I have a table called Users. In the Index function of the UsersController, I would define the following variable: $users = $this->paginate($this->Users); $this->set(compact('users')); $this->set('_serialize', ['users']); Then on