Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Segment length in uri problem
Post: RE: Segment length in uri problem

InsiteFX Wrote: (09-08-2023, 09:07 PM) -- Try using urlencode. -- added urlencode in the above shared functions and working great! Thanks
1,094 Views
7 Replies
09-11-2023, 03:43 PM
kabeza
    Thread: Segment length in uri problem
Post: RE: Segment length in uri problem

kenjis Wrote: (09-07-2023, 02:53 PM) -- Base64 string can contain "/". If your string contains "/", it is not a single segment. Try "(:any)". But a controller parameter only gets one segment. You ne...
1,094 Views
7 Replies
09-08-2023, 04:44 AM
kabeza
    Thread: Segment length in uri problem
Post: RE: Segment length in uri problem

What ? Don't you get 404 when throwing segments of 500 char long? Ouch .. then how could I debug the 404 error I'm getting? I've enabled debug, debugbar etc. but cannot get anything useful about ...
1,094 Views
7 Replies
09-07-2023, 09:12 AM
kabeza
    Thread: Segment length in uri problem
Post: Segment length in uri problem

Hi I've defined a new route as Code: -- $routes->get('/opendata/(:segment)', 'Tools::openData/$1'); -- This Tools/openData controller/fuction receives 1 parameter, which is a base64 encoded str...
1,094 Views
7 Replies
09-07-2023, 08:40 AM
kabeza
    Thread: Session destroyed when returning from external link
Post: RE: Session destroyed when returning from external...

EDIT: I could finally solve the issue. There was a f.... line hidden in some apache config file which looks like I've commented previously. Commented it again and now it is working Code: -- Head...
1,183 Views
5 Replies
06-27-2023, 04:56 AM
kabeza
    Thread: Session destroyed when returning from external link
Post: RE: Session destroyed when returning from external...

kenjis Wrote: (06-22-2023, 02:58 PM) -- Investigate "samesite cookie". -- Hi I've done the research, but cannot make the cookie to be set to None in the browser I've set the following into my ....
1,183 Views
5 Replies
06-23-2023, 05:06 AM
kabeza
    Thread: Session data lost after redirect randomly (CI4.1.5)
Post: RE: Session data lost after redirect randomly (CI4...

Hi pJenkiss / tipitjafar Could you solve this issue? If so, how?
5,889 Views
19 Replies
06-22-2023, 11:09 AM
kabeza
    Thread: Session destroyed when returning from external link
Post: Session destroyed when returning from external lin...

Hi I have a CI4 app where I use a very basic auth system This ci4 application is located in a subdomain I login the user and store some vars in session, etc. https://i.imgur.com/xmOvuq6.jpg S...
1,183 Views
5 Replies
06-22-2023, 09:09 AM
kabeza
    Thread: Creation of dynamic property Config\Cache::$file is deprecated
Post: RE: Creation of dynamic property Config\Cache::$fi...

kenjis Wrote: (04-26-2023, 04:43 AM) -- If you don't want to update your project files manually, Tatter\Patches does it automatically. https://github.com/tattersoftware/codeigniter4-patches -- Wow...
3,144 Views
8 Replies
04-26-2023, 05:04 AM
kabeza
    Thread: Creation of dynamic property Config\Cache::$file is deprecated
Post: RE: Creation of dynamic property Config\Cache::$fi...

kenjis Wrote: (04-25-2023, 05:38 PM) -- `composer update` does not change any your project files. It only updates files under vendor/. If you created your app with older version of CI4, the config f...
3,144 Views
8 Replies
04-26-2023, 04:29 AM
kabeza
    Thread: Creation of dynamic property Config\Cache::$file is deprecated
Post: RE: Creation of dynamic property Config\Cache::$fi...

captain-sensible Wrote: (04-24-2023, 12:00 PM) -- it looks like your on Linux  Code: -- rm -rf  vendor -- So you removed  dir vendor and contents. I don't do that when i update ; out o...
3,144 Views
8 Replies
04-25-2023, 04:12 AM
kabeza
    Thread: Creation of dynamic property Config\Cache::$file is deprecated
Post: Creation of dynamic property Config\Cache::$file i...

Hi I'm having some problems after upgrading PHP in a server I'm getting an exception Code: -- Creation of dynamic property Config\Cache::$file is deprecated -- I've also upgraded CodeIgniter a...
3,144 Views
8 Replies
04-24-2023, 08:40 AM
kabeza
    Thread: Library to generate API tokens without database
Post: RE: Library to generate API tokens without databas...

grimpirate Wrote: (04-19-2023, 03:59 PM) -- You might not have access to a full-fledged database but you could always try using a sqlite backend. Store all of your tokens inside a table in the sqlite...
639 Views
2 Replies
04-20-2023, 04:11 AM
kabeza
    Thread: Library to generate API tokens without database
Post: Library to generate API tokens without database

Hi I have a CI 4.3.x application that consists only of API calls to some server. Later I was requested to add some REST Api endpoints to this web application using ResourceController class etc. ...
639 Views
2 Replies
04-19-2023, 05:21 AM
kabeza
    Thread: Deploy CodeIgniter and VueJS applications under same virtualhost/hostname
Post: Deploy CodeIgniter and VueJS applications under sa...

Hi I've a VueJS application that consumes a REST API built with CodeIgniter This is the folder structure (d = folder) d - ciapp (codeIgniter) d - dist d - node_modules d - public d - src bab...
1,398 Views
1 Replies
08-19-2022, 05:59 AM
kabeza
    Thread: Access form-data parameters from a ResourceController method
Post: Access form-data parameters from a ResourceControl...

Hi I've the following route group configured Code: -- $routes->group('api/project', ['namespace' => 'App\Controllers\Api', 'filter' => 'apikey'], function ($routes) {     $routes->get('/', 'Proj...
2,161 Views
2 Replies
08-09-2022, 11:36 AM
kabeza
    Thread: Trait 'CodeIgniter\View\ViewDecoratorTrait' not found
Post: RE: Trait 'CodeIgniter\View\ViewDecoratorTrait' no...

kenjis Wrote: (06-22-2022, 02:23 PM) -- It is strange. Is there system/View/ViewDecoratorTrait.php in vendor/codeigniter4/framework/ ? -- Indeed It was very strange. Never seen it Solution: ...
2,850 Views
4 Replies
07-01-2022, 01:11 PM
kabeza
    Thread: Trait 'CodeIgniter\View\ViewDecoratorTrait' not found
Post: Trait 'CodeIgniter\View\ViewDecoratorTrait' not fo...

Hi I'm getting an error after updating CodeIgniter (through composer) I've went through upgrading process, copying public/index.php and spark files from vendor\codeigniter4\framework to my app folde...
2,850 Views
4 Replies
06-22-2022, 01:20 PM
kabeza
    Thread: Upgrading from 4.1.8 to 4.2.0
Post: Upgrading from 4.1.8 to 4.2.0

Hi I went through the process of upgrading codeigniter from 4.1.8 to 4.2.0 I've the framework installed through composer I executed the following commands Code: -- rm public/index.php rm ./s...
2,115 Views
3 Replies
06-09-2022, 07:49 AM
kabeza
    Thread: How should I implement x-api-key and api rate limit in CodeIgniter 4 ?
Post: RE: How should I implement x-api-key and api rate ...

Thanks @"iRedds" @"kenjis"
1,870 Views
3 Replies
05-26-2022, 05:41 AM
kabeza

Theme © iAndrew 2016 - Forum software by © MyBB