Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Add webp in Mimes
Post: Add webp in Mimes

It would be nice to add this in the mime-type: PHP Code: -- 'webp' => ['image/webp'] --
4,414 Views
5 Replies
03-28-2022, 05:36 AM
RedskyThirty
    Thread: Method always returns the same value (cache?)
Post: RE: Method always returns the same value (cache?)

kenjis Wrote: (03-25-2022, 04:27 AM) -- Can't reproduce. Code: -- $ php public/index.php almjv976uc $ php public/index.php o51xgm4l6e $ php public/index.php igcjb9h8kt $ php -v PHP 8.0....
2,330 Views
3 Replies
03-27-2022, 11:55 PM
RedskyThirty
    Thread: Method always returns the same value (cache?)
Post: Method always returns the same value (cache?)

Hello, I had a big mistake today that I was not able to solve. I have a method to generate a random string: PHP Code: -- function RS_RANDOM_STRING(int $length, bool $onlyLetters = false, bool ...
2,330 Views
3 Replies
03-23-2022, 01:25 PM
RedskyThirty
    Thread: CORS for API
Post: RE: CORS for API

For people who waste time with this problematic, I created a library. It's possible that it doesn't work yet in certain cases, so don't hesitate to notify me if you encounter errors. I haven't doc...
9,426 Views
13 Replies
07-02-2020, 02:08 AM
RedskyThirty
    Thread: Forge: Add foreignkey on existing table
Post: Forge: Add foreignkey on existing table

I have created a class which extends Migration and have added a method to add foreign key to an existing table. I don't know why it's not possible for the moment in CI but it works like that. PHP Co...
4,436 Views
3 Replies
05-07-2020, 01:10 AM
RedskyThirty
    Thread: Adding foreign key to existing table using Migrations
Post: RE: Adding foreign key to existing table using Mig...

wntechs Wrote: (05-07-2020, 12:22 AM) -- RedskyThirty Wrote: (05-06-2020, 11:55 PM) -- Have you found a solution? I don't know why it's only possible at the creation of the table. -- No I haven't...
9,965 Views
5 Replies
05-07-2020, 12:58 AM
RedskyThirty
    Thread: Adding foreign key to existing table using Migrations
Post: RE: Adding foreign key to existing table using Mig...

Have you found a solution? I don't know why it's only possible at the creation of the table. [hr] Hey, if you want, I made this and it seems to work perfectly. PHP Code: --
9,965 Views
5 Replies
05-06-2020, 11:55 PM
RedskyThirty
    Thread: Invalid request uri segment
Post: Invalid request uri segment

Hello, Why "$this->request->uri->getSegment(500)" throws an HTTPException instead of simply returns "null"? Don't you think that it would be better to get "null"?
1,598 Views
0 Replies
01-30-2020, 02:46 AM
RedskyThirty
    Thread: Issue with layouts renderer and sections => merge sections in one view
Post: RE: Issue with layouts renderer and sections => me...

kilishan Wrote: (01-16-2020, 08:15 AM) -- Good point. PLease log that over at Github. -- Done ;-)
3,643 Views
3 Replies
01-16-2020, 08:31 AM
RedskyThirty
  Bug Thread: Issue with layouts renderer and sections => merge sections in one view
Post: Issue with layouts renderer and sections => merge ...

Hello, It seems that there is a problem with the layouts and I think that this is due to "ob_start / ob_flush / ..." in the renderer. It will be easier to explain my problem with an example... ...
3,643 Views
3 Replies
01-16-2020, 03:10 AM
RedskyThirty
    Thread: Controller naming PascalCase
Post: RE: Controller naming PascalCase

dave friend Wrote: (12-19-2019, 12:02 AM) -- RedskyThirty Wrote: (12-16-2019, 01:09 AM) -- No, I don't have controllers with same names, I would never do that ;-) But I don't want to have url with u...
7,332 Views
6 Replies
12-19-2019, 01:27 AM
RedskyThirty
    Thread: Controller naming PascalCase
Post: RE: Controller naming PascalCase

berendbotje91 Wrote: (12-12-2019, 11:34 PM) -- I didn't really noticed this since I'm developing on Linux. For my urls I always keep exactly the same name as I have with my controllers, so with cases...
7,332 Views
6 Replies
12-16-2019, 01:09 AM
RedskyThirty
  Sad Thread: Controller naming PascalCase
Post: Controller naming PascalCase

I've lost more than 3 hours today with this issue. I tried my project on a web server today and I didn't understand why most of my urls returned to a 404 error when I had no problem locally. I und...
7,332 Views
6 Replies
12-12-2019, 12:24 PM
RedskyThirty
    Thread: Image Manipulation: "fit()" returns bool in PHPDoc
Post: Image Manipulation: "fit()" returns bool in PHPDoc

Hello, There is a mistake in the class "Images\Handlers\BaseHandler", method "fill()". The method doesn't return a boolean but "BaseHandler" or "$this". My IDE shows an error because of that and with...
1,181 Views
0 Replies
12-11-2019, 01:45 AM
RedskyThirty
    Thread: PHP 7.4 / CI 4 / Deprecations
Post: RE: PHP 7.4 / CI 4 / Deprecations

Perfect! Thanks a lot.
4,627 Views
2 Replies
11-29-2019, 07:28 AM
RedskyThirty
  Exclamation Thread: PHP 7.4 / CI 4 / Deprecations
Post: PHP 7.4 / CI 4 / Deprecations

Hello, I tried this morning to upgrade to PHP7.4 but I encounter some issues. I don't know why but sometimes "spark serve" disconnects suddenly. Also, it seems that some pieces of codes are deprec...
4,627 Views
2 Replies
11-29-2019, 02:23 AM
RedskyThirty
    Thread: Routes supporting camelcase/snakecase/kebabcase
Post: Routes supporting camelcase/snakecase/kebabcase

It seems that the convention naming for methods is now camelCase but it would be nice if a route "/say-hello" should target the method "sayHello".
1,476 Views
0 Replies
11-27-2019, 01:54 PM
RedskyThirty
    Thread: Equivalent to "uri rsegment"?
Post: RE: Equivalent to "uri rsegment"?

XTAZ Wrote: (11-25-2019, 02:43 PM) -- RedskyThirty Wrote: (11-25-2019, 02:56 AM) -- Здравствуйте, я хотел бы знать, есть ли эквивалент в «$ this-> uri-> rsegment ()» в CI4? Я ищу в документе, ...
3,605 Views
2 Replies
11-25-2019, 10:57 PM
RedskyThirty
    Thread: Equivalent to "uri rsegment"?
Post: Equivalent to "uri rsegment"?

Hello, I would like to know if there is an equivalent to "$this->uri->rsegment()" in CI4? I'm searching in the doc but I don't find anything about that. I tried "$this->request->uri->getSegme...
3,605 Views
2 Replies
11-25-2019, 02:56 AM
RedskyThirty

Theme © iAndrew 2016 - Forum software by © MyBB