Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Delete file after download
Post: RE: Delete file after download

InsiteFX Wrote: (05-28-2021, 02:35 AM) -- To delete a file you use unlink(path/filename); -- Yes, okay! But the main question is whether there is any way to use the download with the response and d...
423 Views
5 Replies
05-28-2021, 03:12 AM
MatheusCastro
    Thread: Delete file after download
Post: Delete file after download

I have a situation that should download and delete the file. Is there any possibility? I'm using this function in response: PHP Code: -- return $response->download($name, $data); -- Anything ...
423 Views
5 Replies
05-27-2021, 06:59 PM
MatheusCastro
    Thread: InsertBatch useTimestamps not working
Post: InsertBatch useTimestamps not working

Even with protected: PHP Code: -- $useTimestamps = true; -- The function insertBatch does not insert the time and day data correctly.  All appear zeroed.
359 Views
0 Replies
08-09-2020, 04:35 PM
MatheusCastro
    Thread: Helper number does not format decimal
Post: RE: Helper number does not format decimal

captain-sensible Wrote: (07-03-2020, 11:54 AM) -- just tried this: echo number_to_currency(1234.56, 'USD');  it returned $1,235 i loaded the helper 'number' in base controller like this:...
1,180 Views
4 Replies
07-03-2020, 12:01 PM
MatheusCastro
    Thread: Using cache Redis questions
Post: Using cache Redis questions

Hello, I have my redis server using docker. I found the installation of phpredis a bit confusing to be honest, I couldn't even implement it. At Codeigniter I saw that have an implementation of Predi...
462 Views
1 Replies
07-03-2020, 11:06 AM
MatheusCastro
    Thread: How to create index using forge migration
Post: How to create index using forge migration

I didn't find anything like that in the documentation. I also didn't find any reference in the Forge.php file. Would it be necessary to do a manual query?
382 Views
1 Replies
06-30-2020, 02:46 PM
MatheusCastro
    Thread: Helper number does not format decimal
Post: RE: Helper number does not format decimal

I have the same problem. Any solution? Solved: number_to_currency($number, 'USD', null, 2);
1,180 Views
4 Replies
06-29-2020, 06:04 PM
MatheusCastro
    Thread: 403 in Controller Subdirectory access
Post: RE: 403 in Controller Subdirectory access

In this type of structure I usually use something like this: Taking advantage of the default controller As Home and the default method index. Code: -- - Controllers     - Admin         - Admi...
1,915 Views
8 Replies
06-24-2020, 05:53 AM
MatheusCastro
    Thread: Help on entities
Post: Help on entities

Hello, everyone. I am looking to use the entities in CI4. But I have some doubts. I would add the entities and pass the Model to Repositorie as recommended in the documentation. For example, ...
1,243 Views
7 Replies
06-24-2020, 05:37 AM
MatheusCastro
    Thread: Is there an external cart library?
Post: Is there an external cart library?

I saw that the Cart Library in CI3 was removed. Is there any that you currently recommend?
730 Views
2 Replies
06-22-2020, 06:01 PM
MatheusCastro
    Thread: Error in addForeignKey forge
Post: Error in addForeignKey forge

Error:  Can't create table `dabasename`.`contact` (errno: 150 "Foreign key constraint is incorrectly formed") F:\Github\databasename\vendor\codeigniter4\framework\system\Database\MySQLi\Connecti...
1,119 Views
0 Replies
06-12-2020, 06:39 AM
MatheusCastro
    Thread: How do I configure SPARK to see routes?
Post: How do I configure SPARK to see routes?

With php spark serve the return is that way: PHP Code: -- [Fri May  1 00:08:05 2020] 192.168.1.112:49612 Accepted [Fri May  1 00:08:05 2020] 192.168.1.112:49612 Closing [Fri May  1 00:08:05 2020...
683 Views
1 Replies
04-30-2020, 08:13 PM
MatheusCastro
    Thread: Documentation error | Limit the Routes Made
Post: RE: Documentation error | Limit the Routes Made

jreklund Wrote: (04-19-2020, 06:26 AM) -- According to the documentation both of those options should be viable. So they bug would be why , dosen't work. You can open an Issue at our Github page, if ...
954 Views
3 Replies
04-19-2020, 07:55 AM
MatheusCastro
    Thread: Documentation error | Limit the Routes Made
Post: Documentation error | Limit the Routes Made

Hello, where can i report errors in the documentation? In topic Limit the Routes Made on the link: https://codeigniter.com/user_guide/incoming/restful.html#limit-the-routes-made (https://codeignit...
954 Views
3 Replies
04-18-2020, 08:06 PM
MatheusCastro
    Thread: How to validate an API REST?
Post: RE: How to validate an API REST?

jreklund Wrote: (04-17-2020, 12:59 PM) -- There are a hidden function named setGlobal (hidden as it's not in the documentation yet). That allow you to set get, post etc. PHP Code: --     public...
2,767 Views
2 Replies
04-17-2020, 02:04 PM
MatheusCastro
    Thread: How to validate an API REST?
Post: How to validate an API REST?

Hello,  I'm extending Resource Controller In situations that are passed as GET I can validate this way: PHP Code: -- public function index()     {         // this         if (!$this->validate([  ...
2,767 Views
2 Replies
04-17-2020, 10:36 AM
MatheusCastro
    Thread: Payment API with CI4
Post: RE: Payment API with CI4

Updated link with English documentation here (https://github.com/matheuscastroweb/ci4-integration-pagseguro/blob/develop/README.md).
2,788 Views
3 Replies
04-12-2020, 06:25 PM
MatheusCastro
    Thread: Overwrite config file composer
Post: RE: Overwrite config file composer

It can work, thanks!
1,031 Views
3 Replies
03-07-2020, 04:58 AM
MatheusCastro
    Thread: How does helpers, libraries and ThirdParty work?
Post: RE: How does helpers, libraries and ThirdParty wor...

Hello! I will answer your question in parts. Helpers can be used this way: PHP Code: -- helper($filename) -- Documentation link (https://codeigniter4.github.io/userguide/general/common_functio...
2,025 Views
3 Replies
03-07-2020, 04:55 AM
MatheusCastro
    Thread: Template View Library
Post: RE: Template View Library

kilishan Wrote: (03-06-2020, 02:06 PM) -- I think you may have missed the new View Layouts (https://codeigniter4.github.io/CodeIgniter4/outgoing/view_layouts.html) in CI4. -- Hello, kilishan I d...
2,521 Views
3 Replies
03-06-2020, 02:27 PM
MatheusCastro

Theme © iAndrew 2016 - Forum software by © MyBB