Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Access variable from Filter function in Controller function
Post: Access variable from Filter function in Controller...

I've have a filter set up and inside the 'before' function I decode a JWT that's sent over. I'm wondering how I can take the user's id (contained in the JWT) and use that in a controller function afte...
353 Views
0 Replies
02-02-2022, 11:44 AM
next2heaven
    Thread: Database Error Handling
Post: RE: Database Error Handling

Ah...that makes sense. Thank you!
3,061 Views
6 Replies
04-22-2020, 11:29 AM
next2heaven
    Thread: Database Error Handling
Post: RE: Database Error Handling

Awesome! That was it! Thank you so much. Why the backslash? What does that do?
3,061 Views
6 Replies
04-22-2020, 08:31 AM
next2heaven
    Thread: Database Error Handling
Post: RE: Database Error Handling

Ya, problem is that I have a specific unusual case where the user can actually specify the sql query via an admin (admin for developers only). So if they get the query wrong, I don't want it giving a ...
3,061 Views
6 Replies
04-17-2020, 02:01 PM
next2heaven
    Thread: Database Error Handling
Post: Database Error Handling

Can I get an example of how you would handle an error...such as if the database table doesn't exist or a field is named wrong?  Currently it throws a huge full page error.  Just wondering how to see t...
3,061 Views
6 Replies
04-17-2020, 09:46 AM
next2heaven
    Thread: Views renderer merging template & content
Post: RE: Views renderer merging template & content

foxbille Wrote: (03-06-2020, 02:14 PM) -- John_Betong Wrote: (03-06-2020, 07:15 AM) -- @foxbill, > Too few arguments to function CodeIgniter\View\Parser::__construct() > don't you think user guide...
2,166 Views
3 Replies
04-16-2020, 08:58 AM
next2heaven
    Thread: Need a little more info using Filters 'After'
Post: RE: Need a little more info using Filters 'After'

Boom!  That's what I needed.  Thank you!
2,517 Views
4 Replies
11-18-2019, 11:12 AM
next2heaven
    Thread: Need a little more info using Filters 'After'
Post: RE: Need a little more info using Filters 'After'

How do I do that in the 'after' function though?  How do I update the $response to edit the body?  Do I use a 'return' statement?  Call a function on the $response object?  I can't seem to find an exa...
2,517 Views
4 Replies
11-15-2019, 02:14 PM
next2heaven
    Thread: Need a little more info using Filters 'After'
Post: Need a little more info using Filters 'After'

How do I use the $response (ResponseInterface) in the 'after' function for Filters? What are the properties that can be changed here? I need to modify the output. Also, is it possible to view controll...
2,517 Views
4 Replies
11-15-2019, 11:31 AM
next2heaven
    Thread: Redirecting in BaseController?
Post: RE: Redirecting in BaseController?

Thank you. Must have used the wrong search terms. I did search before posting. I appreciate the links.
3,112 Views
2 Replies
11-13-2019, 09:38 AM
next2heaven
    Thread: Redirecting in BaseController?
Post: Redirecting in BaseController?

So in previous Codeigniter versions I usually had a base controller that all other controllers extended from.  In that controller I would check if the user was logged in and if not, redirect them to a...
3,112 Views
2 Replies
11-12-2019, 10:36 AM
next2heaven

Theme © iAndrew 2016 - Forum software by © MyBB