Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Session timestamp error
Post: RE: Session timestamp error

Relatado em: https://github.com/codeigniter4/CodeIgniter4/pull/4876
1,350 Views
1 Replies
08-09-2021, 06:10 AM
MatheusCastro
    Thread: Session timestamp error
Post: Session timestamp error

My database session had the timestamp reset since the last update to 4.1.3. Code for create table equal the documentation: PHP Code: -- CREATE TABLE IF NOT EXISTS `ci_sessions` (         `id` ...
1,350 Views
1 Replies
08-09-2021, 05:08 AM
MatheusCastro
    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...
3,086 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 ...
3,086 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.
879 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:...
3,347 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...
1,340 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?
1,145 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);
3,347 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...
9,299 Views
9 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, ...
6,296 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?
3,404 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...
2,670 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...
2,042 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 ...
2,663 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...
2,663 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...
6,181 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([  ...
6,181 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).
5,329 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!
2,428 Views
3 Replies
03-07-2020, 04:58 AM
MatheusCastro

Theme © iAndrew 2016 - Forum software by © MyBB