Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to get data after saving the model
Post: RE: How to get data after saving the model

davis.lasis Wrote: (01-28-2022, 10:53 AM) -- Seva Wrote: (01-27-2022, 07:41 AM) -- Created_at, updated_at this is what i want to get. With the use of entity these fields are - null. I see only t...
1,105 Views
6 Replies
01-28-2022, 10:50 PM
Seva
    Thread: How to get data after saving the model
Post: RE: How to get data after saving the model

davis.lasis Wrote: (01-27-2022, 05:15 AM) -- You should read about entities: https://codeigniter4.github.io/CodeIgniter4/models/entities.html (https://codeigniter4.github.io/CodeIgniter4/models/entit...
1,105 Views
6 Replies
01-27-2022, 11:29 AM
Seva
    Thread: How to get data after saving the model
Post: RE: How to get data after saving the model

Created_at, updated_at this is what i want to get. With the use of entity these fields are - null. I see only the data that I directly transfer in the array for saving. Model class automatically ...
1,105 Views
6 Replies
01-27-2022, 07:41 AM
Seva
    Thread: How to get data after saving the model
Post: How to get data after saving the model

Run PHP Code: -- $userModel->save($data); -- Now I want to get all the fields and values of the record of this model that was saved/updated. Query the database again? PHP Code: -- $lastInsert...
1,105 Views
6 Replies
01-27-2022, 01:26 AM
Seva
    Thread: How to redirect with destroyed cookies
Post: How to redirect with destroyed cookies

How to redirect with destroyed cookies? Code: -- return redirect('/some_path')->deleteCookie('name') -- Cookies are only invalidated after the second refresh of the page.
593 Views
1 Replies
12-29-2021, 12:51 PM
Seva
    Thread: Setting the filter for ajax queries in the class Filters does not work
Post: RE: Setting the filter for ajax queries in the cla...

MGatner Wrote: (11-22-2020, 07:16 AM) -- https://github.com/codeigniter4/CodeIgniter4/issues/2314 -- Now it is more or less clear. Thank you for the information
1,911 Views
6 Replies
11-28-2020, 07:36 AM
Seva
    Thread: Setting the filter for ajax queries in the class Filters does not work
Post: RE: Setting the filter for ajax queries in the cla...

InsiteFX Wrote: (11-20-2020, 05:43 AM) -- You need to send that header with JavaScript, not from the controller. jQuery has a header method for doing this. -- Here is my code js: Code: -- let bu...
1,911 Views
6 Replies
11-20-2020, 06:49 AM
Seva
    Thread: Setting the filter for ajax queries in the class Filters does not work
Post: RE: Setting the filter for ajax queries in the cla...

InsiteFX Wrote: (11-19-2020, 05:00 PM) -- Are you sending the 'X-Requested-With' header in your ajax code? -- Yes, sending this header. In the controller I check with the function isAJAX(), this func...
1,911 Views
6 Replies
11-20-2020, 12:07 AM
Seva
    Thread: Setting the filter for ajax queries in the class Filters does not work
Post: Setting the filter for ajax queries in the class F...

The documentation says that you can customize filters for specific requests (post, get, put etc) class - Filters property - $methods. It is also said that you can do the same for ajax queries and from...
1,911 Views
6 Replies
11-19-2020, 02:17 AM
Seva

Theme © iAndrew 2016 - Forum software by © MyBB