Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Filters order
Post: Filters order

Hi I have CorsFilter global filter set in Config/Filters and custom AuthFilter set in Config/Routes PHP Code: -- $routes->post('uri', 'SomeConroller::index', ['filter' => 'authFilter']); -- ...
1,085 Views
2 Replies
02-05-2023, 08:07 AM
ruslan
    Thread: Entity object attribute update problem
Post: RE: Entity object attribute update problem

iRedds Wrote: (01-24-2023, 11:28 PM) -- PHP Code: -- class Jsonable -- PHP Code: -- -- -- Thank you! Nice hack Although only works with the first level properties of the json object
3,817 Views
6 Replies
01-24-2023, 11:36 PM
ruslan
    Thread: Entity object attribute update problem
Post: RE: Entity object attribute update problem

kenjis Wrote: (01-24-2023, 01:39 AM) -- See https://codeigniter.com/user_guide/models/entities.html#array-json-casting -- yes, the same technique in the docs PHP Code: -- $user    = $userModel-...
3,817 Views
6 Replies
01-24-2023, 01:42 AM
ruslan
    Thread: Entity object attribute update problem
Post: RE: Entity object attribute update problem

InsiteFX Wrote: (01-24-2023, 01:20 AM) -- Did you create a getUser and setUser methods in your Entity Class? -- You mean setData and getData? User class extends Entity class No. How will that h...
3,817 Views
6 Replies
01-24-2023, 01:22 AM
ruslan
    Thread: Entity object attribute update problem
Post: Entity object attribute update problem

Currently if i have JSON column `data` in the database and use Entity's i can not do this (i want to update a `role` property of `data` object of `user` entity): PHP Code: -- $user->data->role = "...
3,817 Views
6 Replies
01-24-2023, 01:07 AM
ruslan
    Thread: How to make it a "Framework with a small footprint" again?
Post: RE: How to make it a "Framework with a small footp...

kenjis Wrote: (01-22-2023, 05:07 PM) -- ruslan Wrote: (01-22-2023, 06:43 AM) -- My 'vendors' folder has got 50 times thinner This is partly in the documentation, but perhaps it can be emphasized --...
4,869 Views
11 Replies
01-23-2023, 03:03 AM
ruslan
    Thread: JSON-RPC in CodeIgniter
Post: JSON-RPC in CodeIgniter

Hi I implemented JSON-RPC in CodeIgniter 4 and wrote two articles about it (more from architectural point of view, not detailed) May be it will be interesting for someone: part 1 (https://hab...
889 Views
0 Replies
01-22-2023, 08:45 AM
ruslan
    Thread: How to make it a "Framework with a small footprint" again?
Post: RE: How to make it a "Framework with a small footp...

kenjis Wrote: (11-04-2022, 04:19 PM) -- v4.2.9 has 24MB right after installation by composer appstarter. If you remove  Composer packages only for development; Code: -- $ composer install --no...
4,869 Views
11 Replies
01-22-2023, 06:43 AM
ruslan
    Thread: Appache mod_rewrite and CI routing
Post: Appache mod_rewrite and CI routing

I have this line in my .htaccess file: Code: -- RewriteRule  "^rpc/(.+)"  "/rpc"  [PT] -- It redirects all `/rpc/something` requests to `/rpc` And it really does, but when CI Router processes the...
1,424 Views
1 Replies
01-02-2023, 01:19 PM
ruslan
    Thread: getVar() behavior on Windows and Linux
Post: RE: getVar() behavior on Windows and Linux

kenjis Wrote: (12-30-2022, 01:40 AM) -- Please try this: https://stackoverflow.com/questions/21622563/get-filled-but-request-is-empty -- No, i don't want my code to depend on any server environmen...
3,843 Views
9 Replies
12-30-2022, 03:43 AM
ruslan
    Thread: getVar() behavior on Windows and Linux
Post: RE: getVar() behavior on Windows and Linux

kenjis Wrote: (12-30-2022, 12:06 AM) -- Quote: -- request_order string     This directive describes the order in which PHP registers GET, POST and Cookie variables into the _REQUEST array. Regis...
3,843 Views
9 Replies
12-30-2022, 12:31 AM
ruslan
    Thread: getVar() behavior on Windows and Linux
Post: RE: getVar() behavior on Windows and Linux

$_REUEST is empty Code: -- "id-get": "22", "id-var": null, "GET": { "id": "22" }, "REQUEST": [], --  I guess the documentation should say that not only `request_order` affects getVar()/...
3,843 Views
9 Replies
12-29-2022, 11:57 PM
ruslan
    Thread: getVar() behavior on Windows and Linux
Post: RE: getVar() behavior on Windows and Linux

request_order GP
3,843 Views
9 Replies
12-29-2022, 09:21 AM
ruslan
    Thread: getVar() behavior on Windows and Linux
Post: getVar() behavior on Windows and Linux

$this->request->getVar("id")  in a controller works for GET request parameters only on my local env - Windows 10 / Apache / PHP8 On Ubuntu 20 / Nginx / PHP8 i get `undefined` for the same request ...
3,843 Views
9 Replies
12-29-2022, 02:33 AM
ruslan
    Thread: CI as a backend API framework
Post: RE: CI as a backend API framework

I agree with you @"viewfromthenorth" that exactly as a backend API framework CI outperforms other PHP alternatives the most - both in result and in DX (developer experience). And i think that improvem...
1,814 Views
3 Replies
12-27-2022, 11:59 AM
ruslan
    Thread: Routing issue
Post: RE: Routing issue

acewithacase Wrote: (12-26-2022, 01:19 PM) -- PHP Code: -- $route['posts/create'] = 'PostApi/create'; $route['posts/(:any)'] = 'PostApi/view/$1'; $route['posts'] = 'PostApi/index'; $route['defaul...
1,065 Views
3 Replies
12-27-2022, 03:27 AM
ruslan
    Thread: Long-living PHP support (Swoole/RoadRunner etc)
Post: RE: Long-living PHP support (Swoole/RoadRunner etc...

kenjis Wrote: (12-27-2022, 12:24 AM) -- I don't know what do you exactly mean by "a big lazy monster", -- If you throw an Exception at the very start of some Controller in CI you will see stack tra...
5,442 Views
14 Replies
12-27-2022, 12:49 AM
ruslan
    Thread: CI as a backend API framework
Post: CI as a backend API framework

I wonder if it makes sense to have a version/flavour of CI for API based backends (RESTful, JSON-RPC, just json etc) The web dev world is moving to SPA for the last decade and CI is very good as a fr...
1,814 Views
3 Replies
12-26-2022, 11:54 PM
ruslan
    Thread: Convert array structure for ul() codeigniter helper
Post: RE: Convert array structure for ul() codeigniter h...

DaveenDomsiline Wrote: (12-25-2022, 10:19 PM) -- I want to ask how to convert an array like below: there are element 'parent' id which can tell the parent array ( 0 = root) and there are also elem...
2,737 Views
7 Replies
12-26-2022, 11:37 AM
ruslan
    Thread: Types in data models
Post: RE: Types in data models

luckmoshy Wrote: (12-25-2022, 10:11 AM) -- it is a good idea  and of cause @"Ruslan"  even i certain days stuck on the same issue but unfortunately, CI has no this way unless you PR  to it -- I do ...
2,610 Views
8 Replies
12-25-2022, 10:16 AM
ruslan

Theme © iAndrew 2016 - Forum software by © MyBB