Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Error - controller: default
Post: RE: Error - controller: default

Hi InssiteFX, Thank you for your reply. Your suggestion led me to the cause of the problem and this is now resolved. Thanks.
454 Views
2 Replies
04-01-2021, 01:09 AM
Chroma
    Thread: Autoload fail ???
Post: RE: Autoload fail ???

Did your update change the contents of the Autoload.php file?
384 Views
1 Replies
03-31-2021, 03:15 AM
Chroma
    Thread: Error - controller: default
Post: Error - controller: default

Hi, I am having a problem on a site that I have recently updated to CI 4.1.1 from 4.0.4. In the logs I am seeing: Code: -- ERROR - 2021-03-31 10:54:50 --> controller: default ERROR - 2021-0...
454 Views
2 Replies
03-31-2021, 02:59 AM
Chroma
    Thread: Where in code validate/sanitize inputs?
Post: RE: Where in code validate/sanitize inputs?

I am going to give my opinion for what it's worth. Put it in the place that makes the most sense. For example: When getting input from the user that needs sanitising, put that in the controll...
870 Views
3 Replies
02-25-2021, 08:54 AM
Chroma
    Thread: passing variable in model
Post: RE: passing variable in model

Before the return of $articles, use a loop to iterate through each article int he list one at a time and call get_ip() one each one in the loop. Then do something with the result that is passed back.
327 Views
1 Replies
02-25-2021, 08:39 AM
Chroma
    Thread: Passing URI Segments to methods
Post: RE: Passing URI Segments to methods

I am not sure that you have provided enough information in the question. What does the code look like that calls the article function. How is the parameter $slug made and what does it look like whe...
510 Views
3 Replies
02-25-2021, 08:36 AM
Chroma
    Thread: Session data lost on redirect
Post: RE: Session data lost on redirect

I am glad that it is now working and that you have found a solution. :)
636 Views
4 Replies
08-27-2020, 06:13 AM
Chroma
    Thread: CURL and clearing query after send
Post: RE: CURL and clearing query after send

I can see the value of having a global set of options and a per request set of options and then merging them into the curl request when it is executed. That might be a good thing to mention in the ...
593 Views
3 Replies
08-27-2020, 06:12 AM
Chroma
    Thread: Missing favicon.ico is blocked by CSP?
Post: RE: Missing favicon.ico is blocked by CSP?

Are you sure that this has anything to do with CI, that looks like it is being done by the browser? For the loading of images etc, I have a rule in my .htaccess that allows for the direct download...
1,712 Views
5 Replies
08-27-2020, 04:55 AM
Chroma
    Thread: Codeigniter 4 - Naming Convention & Style Guide
Post: RE: Codeigniter 4 - Naming Convention & Style Guid...

I don't think there is any significance at all, it just looks pretty in the source tree. I would suggest that you have a style and you stick with it for your own projects. I use the View as per ...
2,286 Views
5 Replies
08-27-2020, 04:52 AM
Chroma
    Thread: CURL and clearing query after send
Post: RE: CURL and clearing query after send

What would happen if the options were not cleared and you wanted to do another request that was different from the previous one. In that case, you would need to clear out all the options and start aga...
593 Views
3 Replies
08-27-2020, 04:46 AM
Chroma
    Thread: Openpay LIBRARY
Post: RE: Openpay LIBRARY

It's hard to be sure, as there are two questions here, but I believe that with CI4 you are better off using the namespaces rather than the older method of directly loading the php files with the requi...
1,522 Views
8 Replies
08-27-2020, 04:43 AM
Chroma
    Thread: Session problem
Post: RE: Session problem

So, looking at the source code of Logger we see this: PHP Code: -- if (isset($_SESSION)) { $replace['{session_vars}'] = '$_SESSION: ' . print_r($_SESSION, true); } -- So my question to y...
1,516 Views
6 Replies
08-27-2020, 04:35 AM
Chroma
    Thread: Session data lost on redirect
Post: RE: Session data lost on redirect

I don't know if this is of any help, but I have seen that often, if a cookie is set under HTTP, then it cannot be accessed under HTTPS, regardless of the flags you set for security etc. I am not sure ...
636 Views
4 Replies
08-27-2020, 04:28 AM
Chroma
    Thread: Invalid serialization data for DateTime object
Post: RE: Invalid serialization data for DateTime object

Rather than saving the DateTime as a string, have you considered saving it as an integer, that is the number of seconds, as you are getting from time()? That would remove the parsing problem and ma...
473 Views
2 Replies
08-27-2020, 04:22 AM
Chroma
    Thread: Filter controller without authentication
Post: RE: Filter controller without authentication

When I was doing this, I had an exclusion list that would be checked first, if the controller/method was in the exclusion list, the filter was finished and processing stopped. Something like this.....
1,114 Views
9 Replies
08-27-2020, 04:18 AM
Chroma
    Thread: Printing Query error
Post: RE: Printing Query error

Hi, This might help... PHP Code: --         $sql = $this->db->showLastQuery();         print_r($sql); -- It will show you what was actually run.
662 Views
4 Replies
08-27-2020, 04:12 AM
Chroma
    Thread: Dynamic $baseURL for multiple hosts
Post: RE: Dynamic $baseURL for multiple hosts

PHP Code: --    |--------------------------------------------------------------------------    | Base URL Initialization    |------------------------------------------------------------------------...
3,305 Views
4 Replies
08-27-2020, 04:10 AM
Chroma
    Thread: CI4 filter before RequestInterface
Post: RE: CI4 filter before RequestInterface

What I do is have some helper functions such as GetString($request, $variableName) and I use that to get all the variables coming from the client side that I am expecting to be a string. In that funct...
472 Views
1 Replies
08-27-2020, 04:04 AM
Chroma
    Thread: SMTP Email
Post: RE: SMTP Email

Good idea and I hope that this thread and your fix helps other who get similarly stuck. I gave you +1 reputation. :)
1,358 Views
8 Replies
08-09-2020, 09:42 AM
Chroma

Theme © iAndrew 2016 - Forum software by © MyBB