Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: downloading a file new tab
Post: RE: downloading a file new tab

I have sent a PR with a fix: https://github.com/codeigniter4/CodeIgniter4/pull/9638
277 Views
6 Replies
Yesterday, 11:32 PM
michalsn
    Thread: downloading a file new tab
Post: RE: downloading a file new tab

Hmm, setFileName() should work for images and PDFs. Lemme take a look - it might be a bug.
277 Views
6 Replies
Yesterday, 12:26 PM
michalsn
    Thread: downloading a file new tab
Post: RE: downloading a file new tab

Are you dealing with PDF files? Have you tried setting: PHP Code: -- return $this->response->download($filename, $data, true)->setFileName('my-file-name.pdf')->inline(); --
277 Views
6 Replies
07-14-2025, 01:24 PM
michalsn
    Thread: curl + response body
Post: RE: curl + response body

@"okatse", please check if these changes resolve the issue: https://github.com/codeigniter4/CodeIgniter4/pull/9627
619 Views
6 Replies
07-06-2025, 10:14 PM
michalsn
    Thread: curl + response body
Post: RE: curl + response body

@"okatse" It does look like a bug. We should definitely improve our parsing for intermediate headers. That said, the solution you suggested might not work correctly if the $break string appears in the...
619 Views
6 Replies
07-03-2025, 10:10 PM
michalsn
    Thread: Codigniter 4.6.1 not loading config files based on environment
Post: RE: Codigniter 4.6.1 not loading config files base...

chenzen Wrote: (06-03-2025, 10:59 PM) -- Thank you very much for the post. It was very helpful. But it seems the link does not have the original boot file in the AppBoot.php.  -- I’m not sure I und...
5,483 Views
16 Replies
06-19-2025, 06:47 AM
michalsn
    Thread: Codigniter 4.6.1 not loading config files based on environment
Post: RE: Codigniter 4.6.1 not loading config files base...

You also have to include the original Boot file. See the detailed article if you have difficulties https://michalsn.dev/posts/managing-multiple-env-files-in-codeigniter-4/
5,483 Views
16 Replies
06-16-2025, 10:42 PM
michalsn
    Thread: transStatus error
Post: RE: transStatus error

A fix has already been prepared and will be included in an upcoming release. The error occurred due to an issue in the code. Here's the corrected version: PHP Code: --         $edb = \Config\Da...
498 Views
4 Replies
06-16-2025, 10:31 PM
michalsn
    Thread: transStatus error
Post: RE: transStatus error

It looks like the issue is caused by an incorrect query: https://codeigniter.com/user_guide/database/queries.html#named-bindings On top of that, there may be a bug in CodeIgniter. For now, I rec...
498 Views
4 Replies
06-16-2025, 01:15 PM
michalsn
    Thread: How to Use CodeIgniter Global Functions (e.g., helper(), model()) Inside Custom "Mana
Post: RE: How to Use CodeIgniter Global Functions (e.g.,...

InsiteFX Wrote: (06-06-2025, 09:27 PM) -- Isn't this the same thing that Lonnie was showing us in his book CodeIgniter Foundations book? -- I had to double-check, but yes - Lonnie also presents thi...
4,483 Views
12 Replies
06-06-2025, 10:49 PM
michalsn
    Thread: Codigniter 4.6.1 not loading config files based on environment
Post: RE: Codigniter 4.6.1 not loading config files base...

chenzen Wrote: (06-03-2025, 10:59 PM) -- The ci4 I downloaded from the website, I did not modify anything, just renamed the env to .env, and it did not load, that was the error I was reporting. -- ...
5,483 Views
16 Replies
06-05-2025, 09:03 AM
michalsn
    Thread: How to Use CodeIgniter Global Functions (e.g., helper(), model()) Inside Custom "Mana
Post: RE: How to Use CodeIgniter Global Functions (e.g.,...

MVCM vs MVCS - it's largely a matter of naming convention and code organization philosophy rather than fundamental functional differences. The choice often comes down to the individual (or team) prefe...
4,483 Views
12 Replies
05-30-2025, 11:24 AM
michalsn
    Thread: Codigniter 4.6.1 not loading config files based on environment
Post: RE: Codigniter 4.6.1 not loading config files base...

chenzen Wrote: (05-29-2025, 02:50 PM) -- In the version 4.4.6...the following code was in the index.php file ... Any reason it was taken out of there ? -- Because of improvements to the framework...
5,483 Views
16 Replies
05-29-2025, 10:47 PM
michalsn
    Thread: Codigniter 4.6.1 not loading config files based on environment
Post: RE: Codigniter 4.6.1 not loading config files base...

chenzen Wrote: (05-28-2025, 11:37 PM) -- Take a look at System/Boot...line 144 (new DotEnv($paths->appDirectory . '../'))->load(); -- Currently, it's a different line: 173, see: https://github.co...
5,483 Views
16 Replies
05-29-2025, 04:30 AM
michalsn
    Thread: Codigniter 4.6.1 not loading config files based on environment
Post: RE: Codigniter 4.6.1 not loading config files base...

chenzen Wrote: (05-28-2025, 06:03 AM) -- For example, in one instance, I may deploy 4 modules, in another instance 5 different modules. So I will have the config/instance/[files] handle the configura...
5,483 Views
16 Replies
05-28-2025, 06:37 AM
michalsn
    Thread: No web server configuration
Post: RE: No web server configuration

Franky 5831 Wrote: (05-27-2025, 01:29 PM) -- I see that the codeigniter team thinks that "It is not recommended that you place the project folder in the document root", may I ask why that is? -- To...
2,795 Views
5 Replies
05-27-2025, 10:31 PM
michalsn
    Thread: No web server configuration
Post: RE: No web server configuration

There is an .htaccess file: https://github.com/codeigniter4/CodeIgniter4/blob/develop/public/.htaccess Also, there is a whole section in the user guide dedicated to .htaccess: https://codeigniter.c...
2,795 Views
5 Replies
05-27-2025, 12:36 PM
michalsn
    Thread: Codigniter 4.6.1 not loading config files based on environment
Post: RE: Codigniter 4.6.1 not loading config files base...

This type of config variable handling was supported in CodeIgniter 3, but is no longer available in CodeIgniter 4. Instead, you should use the .env file: https://codeigniter.com/user_guide/general/con...
5,483 Views
16 Replies
05-26-2025, 02:48 AM
michalsn
    Thread: How to Use CodeIgniter Global Functions (e.g., helper(), model()) Inside Custom "Mana
Post: RE: How to Use CodeIgniter Global Functions (e.g.,...

I can't think of anything that would prevent the global helper functions from working as expected. Here's an example of a manager: https://github.com/lonnieezell/forum-example/blob/develop/app/Mana...
4,483 Views
12 Replies
05-23-2025, 12:25 PM
michalsn
    Thread: Route passing $1 into the controller function instead of the value
Post: RE: Route passing $1 into the controller function ...

Are you working on the local or production server? I guess, this might be helpful: https://codeigniter.com/user_guide/installation/deployment.html#adding-htaccess
2,370 Views
5 Replies
05-22-2025, 10:35 PM
michalsn

Theme © iAndrew 2016 - Forum software by © MyBB