Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Strange 404 routes when having a specific file in /public/
Post: RE: Strange 404 routes when having a specific file...

Quote: -- Many thanks for your accurate reply --
183 Views
2 Replies
03-19-2023, 04:27 AM
b126
    Thread: Strange 404 routes when having a specific file in /public/
Post: Strange 404 routes when having a specific file in ...

Here's a problem that's easy to cope with but still strange to me. Say I have a presenter route defined as follows in /Config/Routes.php PHP Code: -- $routes->presenter('products', ['controller...
183 Views
2 Replies
03-10-2023, 04:32 AM
b126
    Thread: Different values from current_url and service('uri')
Post: Different values from current_url and service('uri...

I came across some strange behavior between two similar functions. Why isn't base_url returned with the second call (current_url)? service('uri') Code: -- $uri = service('uri'); dump($uri); ...
97 Views
2 Replies
02-22-2023, 04:14 PM
b126
    Thread: Oracle OCI8 support for CI 4
Post: RE: Oracle OCI8 support for CI 4

kenjis Wrote: (06-08-2022, 05:23 PM) -- Codeigniter v4.2.0 was released on June 3, 2022. https://codeigniter4.github.io/CodeIgniter4/changelogs/v4.2.0.html -- Would it be possible to add the stand...
12,670 Views
21 Replies
02-21-2023, 09:32 AM
b126
    Thread: Automatic Project Updating
Post: RE: Automatic Project Updating

kenjis Wrote: (02-20-2023, 05:51 PM) -- @"b126" You need to merge "tatter/patches" branch, not "tatter/scratch". -- Unfortunately, I only see my master branch + the new tatter/scratch Is there a c...
4,096 Views
6 Replies
02-21-2023, 03:23 AM
b126
    Thread: ErrorException #1 reported
Post: RE: ErrorException #1 reported

kenjis Wrote: (02-01-2023, 09:33 PM) -- I sent a PR. https://github.com/codeigniter4/CodeIgniter4/pull/7212 -- This is great! Thank you.
344 Views
5 Replies
02-02-2023, 01:05 AM
b126
    Thread: ErrorException #1 reported
Post: RE: ErrorException #1 reported

kenjis Wrote: (01-31-2023, 07:06 PM) -- Quote: -- Allowed memory size of 134217728 bytes exhausted (tried to allocate 65015808 bytes) APPPATH\Views\errors\html\error_exception.php at line 96 -- ...
344 Views
5 Replies
02-01-2023, 03:03 PM
b126
    Thread: ErrorException #1 reported
Post: ErrorException #1 reported

Dear All, I have a problem with CI4 that I didn't have in CI3. Occasionally, the details of some of my errors are not properly propagated/escalated to CI, and only a generic ErrorException is displa...
344 Views
5 Replies
01-31-2023, 09:33 AM
b126
    Thread: APCu in CI 4.x missing?
Post: RE: APCu in CI 4.x missing?

InsiteFX Wrote: (11-12-2022, 12:29 AM) -- NOTE: APC has been discontinued. Updated: 11/134/2023 APC is not discontinued thanks to @"kenji" -- Just for clarification: APCu is still official and...
4,528 Views
7 Replies
11-17-2022, 12:09 AM
b126
    Thread: APCu in CI 4.x missing?
Post: RE: APCu in CI 4.x missing?

drguiom Wrote: (05-20-2020, 09:49 AM) -- Cache_apc was available as a driver in the Cache library in CI3. It worked with APCu also -- I confirm APC & APCu was super fast and so easy to use. Does a...
4,528 Views
7 Replies
11-11-2022, 09:56 AM
b126
    Thread: Memory Exception with Debugbar and Doctrine
Post: RE: Memory Exception with Debugbar and Doctrine

troturier Wrote: (12-18-2019, 01:35 AM) -- Hi! I was working on a project using CI 4 (in "development" environment) and Doctrine. All was working fine (creating new Entities, adding data to DB via...
1,655 Views
2 Replies
07-06-2022, 08:17 AM
b126
    Thread: "Hidden" Fields for Models
Post: RE: "Hidden" Fields for Models

christianitis Wrote: (06-14-2022, 08:56 AM) -- Supposing I have a database model representing a user. If I set up a REST controller for the User model, I don't want the password field to be returned ...
2,030 Views
4 Replies
06-30-2022, 08:05 AM
b126
    Thread: RESTFul route + search terms via querystring
Post: RE: RESTFul route + search terms via querystring

iRedds Wrote: (06-29-2022, 09:55 AM) -- In the index() method, check for the presence of values. And there you can already call the method or not call it. Routes only work with a path. -- Well, ro...
492 Views
3 Replies
06-30-2022, 07:53 AM
b126
    Thread: RESTFul route + search terms via querystring
Post: RESTFul route + search terms via querystring

Dear all, I would like to add a search method to my restful resource controller. Currently I have this line in my Config\Routes.php: PHP Code: -- $routes->resource('api/products', ['control...
492 Views
3 Replies
06-29-2022, 08:51 AM
b126
    Thread: Display a partial view based on the current view name
Post: RE: Display a partial view based on the current vi...

kenjis Wrote: (06-22-2022, 04:16 PM) -- See https://codeigniter4.github.io/CodeIgniter4/outgoing/views.html#adding-dynamic-data-to-the-view -- I see no direct relation to the question. I don't want...
1,639 Views
4 Replies
06-24-2022, 12:04 AM
b126
    Thread: Display a partial view based on the current view name
Post: Display a partial view based on the current view n...

Dear all, I would like to display a header and menu on every view on my app BUT the logout. I am using layouts already. Let's take a quick example from the internet : PHP Code: --        ...
1,639 Views
4 Replies
06-22-2022, 09:20 AM
b126
    Thread: Serializing Doctrine objects to proper JSON content type using ResponseTrait
Post: RE: JSON content type is missing when using respon...

Well, I think I get a workaround. Using Serializer.toArray(); instead of Serializer.serialize(); will do the trick.         PHP Code: -- $res = $serializer->toArray(getEmployeeRepo()->findAll...
1,117 Views
2 Replies
06-21-2022, 07:36 AM
b126
    Thread: Serializing Doctrine objects to proper JSON content type using ResponseTrait
Post: Serializing Doctrine objects to proper JSON conten...

Dear all,  I'm trying to return Doctrine serialized objects (thanks to JMS Serializer) as JSON. I am extending the ResourceController (and then using ResponseTrait) The problem is that the retu...
1,117 Views
2 Replies
06-21-2022, 06:27 AM
b126
    Thread: Cannot update from 4.1.9 to 4.2.0
Post: RE: Cannot update from 4.1.9 to 4.2.0

iRedds Wrote: (06-16-2022, 08:04 AM) -- CI 4.2.x requires php >= 7.4 -- Thank you. Sorry, I should have checked first.
1,161 Views
2 Replies
06-21-2022, 05:56 AM
b126
    Thread: Cannot update from 4.1.9 to 4.2.0
Post: Cannot update from 4.1.9 to 4.2.0

Dear support, I am running CI 4.1.9 on PHP 7.3.33 Is it possible to upgrade to 4.2.0? composer update does nothing... Thank you.
1,161 Views
2 Replies
06-16-2022, 05:59 AM
b126

Theme © iAndrew 2016 - Forum software by © MyBB