Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CTE with Query Builder
Post: RE: CTE with Query Builder

Thanks for the comments. I think extending the BaseModel is more within my grasp. Simply using the QB getCompiledSelect and prefixing my WITH clauses should work.
396 Views
3 Replies
01-08-2024, 01:54 PM
ltarrant
    Thread: CTE with Query Builder
Post: CTE with Query Builder

Hi, I have some quite complex queries to which I would like to introduce some Common Table Expressions to improve performance and simplify. The existing queries are already written using the query b...
396 Views
3 Replies
01-08-2024, 03:53 AM
ltarrant
    Thread: Config caching
Post: RE: Config caching

We don't but I was just testing this on the development server to see what performance increase it offers and if it worth looking at introducing to the production server. kenjis Wrote: (12-28-2023, ...
802 Views
8 Replies
01-08-2024, 03:27 AM
ltarrant
    Thread: Config caching
Post: RE: Config caching

I'm getting the error: Fatal error: Uncaught Error: Class "Kint\Renderer\AbstractRenderer" not found in /home/***********/vendor/codeigniter4/framework/system/Config/BaseConfig.php on line 64 Erro...
802 Views
8 Replies
12-28-2023, 04:30 AM
ltarrant
    Thread: Config caching
Post: RE: Config caching

Frederik Wrote: (12-18-2023, 09:59 AM) -- ltarrant Wrote: (12-18-2023, 08:58 AM) -- Hi, I am in process of trying to optimise performance of a CI4 project. I have been watching a few PRs on Github...
802 Views
8 Replies
12-27-2023, 04:40 AM
ltarrant
    Thread: Config caching
Post: Config caching

Hi, I am in process of trying to optimise performance of a CI4 project. I have been watching a few PRs on Github over the last few months and followed the Config Caching with interest. (https://git...
802 Views
8 Replies
12-18-2023, 08:58 AM
ltarrant
    Thread: Trailing Forward Slash Added to some routes
Post: RE: Trailing Forward Slash Added to some routes

I figured this out in the end. Those routes happen to have actual directories in the public folder which store images used. It turns out the default behaviour of Apache is to automatically add t...
391 Views
2 Replies
11-29-2023, 12:46 AM
ltarrant
    Thread: Custom Exception Handler Response Status Code
Post: RE: Custom Exception Handler Response Status Code

I may have spoken to soon.  I get the correct 404 response when throw: Code: -- throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound(); -- However, if I throw any other Except...
420 Views
3 Replies
11-28-2023, 07:40 PM
ltarrant
    Thread: Custom Exception Handler Response Status Code
Post: RE: Custom Exception Handler Response Status Code

Hi Kenjis, I did but it doesn't seem to show how to handle providing the response code. I ended up looking at the system CodeIgniter\Debug\ExceptionHandler and lift some of the code from that. ...
420 Views
3 Replies
11-28-2023, 06:05 PM
ltarrant
    Thread: Custom Exception Handler Response Status Code
Post: Custom Exception Handler Response Status Code

Hi, I'm trying to implement a Custom Exception Handler to allow me to use a custom twig based template error page. This is really just for production side so all the front UI can stick with the same...
420 Views
3 Replies
11-28-2023, 10:06 AM
ltarrant
    Thread: Trailing Forward Slash Added to some routes
Post: Trailing Forward Slash Added to some routes

I am experiencing an issue where CI4 framework seems to be adding a trailing forward slash to some routes. However, my htaccess file is setup to redirect and remove trailing slashes. Its then getting ...
391 Views
2 Replies
11-25-2023, 12:48 AM
ltarrant
    Thread: Parser - Conditions in Loop
Post: RE: Parser - Conditions in Loop

To resolve my issues I ended up using Kenjis CI4 Twig Library and using Twig as a Template engine rather than the built in Parser. https://github.com/kenjis/codeigniter-ss-twig
614 Views
3 Replies
09-29-2023, 11:00 PM
ltarrant
    Thread: Session Flashdata Persisting Like Normal Session Data
Post: RE: Session Flashdata Persisting Like Normal Sessi...

Got there in the end. I tried to switch back to using the File Handler rather than Database Handler session driver to see if that helped. However, I then started getting an error message from CI f...
527 Views
4 Replies
09-29-2023, 10:56 PM
ltarrant
    Thread: Session Flashdata Persisting Like Normal Session Data
Post: Session Flashdata Persisting Like Normal Session D...

Hi, I currently have an issue with Flashdata persisting and behaving like normal session data. This occurs with direct use of Flash data like: Code: -- $session->setFlashdata('item', 'value'); -- ...
527 Views
4 Replies
09-28-2023, 05:41 AM
ltarrant
    Thread: Parser - Conditions in Loop
Post: RE: Parser - Conditions in Loop

ltarrant Wrote: (09-04-2023, 08:31 AM) -- I may not have explained the issue very well. I am unable to use conditional logic against pseudo-variables associative array values inside variable pair lo...
614 Views
3 Replies
09-04-2023, 11:35 AM
ltarrant
    Thread: Parser - Conditions in Loop
Post: Parser - Conditions in Loop

Hi, Is it possible to use the basic allowed conditions in the parser within loops? If doesn't seem to be working for me. Code: -- {% if !empty($products) %} -- works fine outside the loop. ...
614 Views
3 Replies
09-01-2023, 09:51 AM
ltarrant
    Thread: Parser Plugins - Open & Closing Tag Usage
Post: RE: Parser Plugins - Open & Closing Tag Usage

I am loading plugins using my modules Config\Registrar.php: Code: -- class Registrar {     public static function View(): array     {         return [             'plugins' => [             ...
548 Views
2 Replies
04-20-2023, 01:38 AM
ltarrant
    Thread: Parser Plugins - Open & Closing Tag Usage
Post: Parser Plugins - Open & Closing Tag Usage

Hi, I am trying to create some custom parser plugins within a module I am working on. I have single tag plugins with or without parameters functioning fine. However, when I try to use opening and c...
548 Views
2 Replies
04-17-2023, 08:26 AM
ltarrant
    Thread: CSP Issues with Debug Bar
Post: RE: CSP Issues with Debug Bar

I don't really have much experience with CSP so possibly its just an oversight on my part. My usage in my CI4 application is pretty simple and limited. CSP enabled in .env file and config file. The...
881 Views
2 Replies
01-02-2023, 03:32 AM
ltarrant
    Thread: CSP Issues with Debug Bar
Post: CSP Issues with Debug Bar

I have enabled CSP on one of my CI4 (latest 4.2.11) applications. I am adding allowed sources at runtime from my base controller using the approriate $this->response->CSP->{function}. I have also adde...
881 Views
2 Replies
12-30-2022, 05:49 AM
ltarrant

Theme © iAndrew 2016 - Forum software by © MyBB