Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Problem with Forge createDatabase
Post: RE: Problem with Forge createDatabase

Is there a way of doing this cleanly, so that we can connect to the database server and then create a new database on that database server. This used to work before. I think, as I just deleted a da...
631 Views
5 Replies
07-30-2021, 04:50 AM
Chroma
    Thread: Filters not working in CodeIgniter 4
Post: RE: Filters not working in CodeIgniter 4

I had a lot of trouble figuring out filters, but I see that you have api* rather than what I would have expected api/* I don't know if that matters, but it might. I am using filters in a custom ...
559 Views
6 Replies
07-30-2021, 02:50 AM
Chroma
    Thread: Deploying Codeigniter 4 Website on LAN server
Post: RE: Deploying Codeigniter 4 Website on LAN server

That looks like the end part of the index.php file. Have you made any changes to the index.php file that would break the PHP? such as a punctuation character? On my system running 4.1.3, that is...
341 Views
10 Replies
07-30-2021, 02:29 AM
Chroma
    Thread: Deploying Codeigniter 4 Website on LAN server
Post: RE: Deploying Codeigniter 4 Website on LAN server

The most likely reason is that you are missing the .htaccess file.
341 Views
10 Replies
07-29-2021, 05:56 AM
Chroma
    Thread: PHP 8 - Mailhog and CI 4.1.3
Post: RE: PHP 8 - Mailhog and CI 4.1.3

Thanks. Looking through the .ini files forced me to look at other things. The following line was missing from the PHP 8.0 php.ini file: sendmail_path = /usr/local/bin/mhsendmail That was t...
205 Views
2 Replies
07-27-2021, 06:58 AM
Chroma
    Thread: PHP 8 - Mailhog and CI 4.1.3
Post: PHP 8 - Mailhog and CI 4.1.3

I've upgraded my CI4 to the latest version (4.1.3), no real problems there, and now want to use PHP 8 for future development work. So far nothing unreasonable. However, my mailhog installation work...
205 Views
2 Replies
07-27-2021, 03:23 AM
Chroma
    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.
518 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?
419 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...
518 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...
971 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.
355 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...
551 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. :)
714 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 ...
654 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,921 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,630 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...
654 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,655 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,766 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 ...
714 Views
4 Replies
08-27-2020, 04:28 AM
Chroma

Theme © iAndrew 2016 - Forum software by © MyBB