Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: dynamic rule set creation and execution with php
Post: RE: dynamic rule set creation and execution with p...

kenjis Wrote: (04-12-2024, 12:38 AM) -- I assume you just want to implement a class or classes that does the following: 1. retrieve rules from the database 2. perform checks based on the rules T...
274 Views
5 Replies
04-12-2024, 12:49 AM
mywebmanavgat
    Thread: dynamic rule set creation and execution with php
Post: RE: dynamic rule set creation and execution with p...

kenjis Wrote: (04-10-2024, 07:24 PM) -- Do you want to create WAF functionality? Create a controller filter. See https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html Throttler cod...
274 Views
5 Replies
04-12-2024, 12:28 AM
mywebmanavgat
    Thread: dynamic rule set creation and execution with php
Post: dynamic rule set creation and execution with php

I didn't know which category to put this topic under. I apologize if I'm in the wrong category. Hello, I have a form exactly like when adding waf rules in cloudflare. Here the user chooses what...
274 Views
5 Replies
04-09-2024, 03:40 PM
mywebmanavgat
    Thread: Enforce the Where parameter for Query Builder
Post: RE: Enforce the Where parameter for Query Builder

When the Where condition is not specified, we do not want to take this risk because the entire table will be updated or deleted. So we don't want a query without a where condition to go to the databas...
137 Views
4 Replies
04-04-2024, 08:53 PM
mywebmanavgat
    Thread: Enforce the Where parameter for Query Builder
Post: Enforce the Where parameter for Query Builder

When using the update and delete methods with Builder, how do I ensure that the operation fails if where is not specified? Which files do we need to check?
137 Views
4 Replies
04-04-2024, 02:24 PM
mywebmanavgat
    Thread: Connect to more than one database in a single connection
Post: RE: Connect to more than one database in a single ...

I thought this was the most practical and radical solution. With the minimal and ineffective fix in the kernel, I implemented the following \Database\SQLSRV\Builder.php I included the following c...
304 Views
6 Replies
04-01-2024, 10:08 AM
mywebmanavgat
    Thread: Connect to more than one database in a single connection
Post: RE: Connect to more than one database in a single ...

To summarize the result, I will not use builder when I will use left join innerjoin etc. features between two databases. I will continue to use $db->query('TSQL'). I will not need too many such spec...
304 Views
6 Replies
04-01-2024, 07:39 AM
mywebmanavgat
    Thread: Connect to more than one database in a single connection
Post: RE: Connect to more than one database in a single ...

PHP Code: -- $this->db = \Config\Database::connect('default'); //Default Database = ACCOUNT_DB; $querydb1 = $this->db->query('select * from users')->getRow(); $querydb2 = $this->db->query('sele...
304 Views
6 Replies
04-01-2024, 06:38 AM
mywebmanavgat
    Thread: Connect to more than one database in a single connection
Post: Connect to more than one database in a single conn...

When you open a connection to a mssql database, you can jump to other databases if you have permissions. Let's imagine that there are DATABASE_NAME_1 and DATABASE_NAME_2 databases. For example, ...
304 Views
6 Replies
03-31-2024, 08:02 PM
mywebmanavgat
    Thread: Cache Dynamic Driver Load
Post: RE: Cache Dynamic Driver Load

This solved my problem PHP Code: -- $config = config('Cache'); $config->handler = 'file'; $cache = \Config\Services::cache($config,false); if(! $foo = $cache->get('foox')) { $cache->save...
141 Views
2 Replies
03-30-2024, 09:06 AM
mywebmanavgat
    Thread: Cache Dynamic Driver Load
Post: Cache Dynamic Driver Load

I want to use sometimes file and sometimes redis for cache. What is the way to activate sometimes redis cache and sometimes filecache according to the need in a controls?
141 Views
2 Replies
03-30-2024, 07:55 AM
mywebmanavgat
    Thread: Undefined Variable 500 Error
Post: RE: Undefined Variable 500 Error

Which one do you think is right? In Ci3, the project continues to run and logs these errors, you can debug by examining the logs. In ci4, this error stops the script with a 500 error. and logs it....
975 Views
13 Replies
12-19-2023, 11:50 PM
mywebmanavgat
    Thread: Can't you continue to develop the Ci3 framework? (Ci3 Lovers gather)
Post: RE: Can't you continue to develop the Ci3 framewor...

Did a completely separate team develop ci4? Why did this team develop ci4? Is it not aware of the impact of ci 3? People preferred ci3 to not use heavy frameworks like Laravel, Senfony, to not ma...
450 Views
2 Replies
12-19-2023, 09:31 PM
mywebmanavgat
    Thread: Undefined Variable 500 Error
Post: RE: Undefined Variable 500 Error

I appreciate your interest and response. thank you. but as in the video. If ci3 log is activated, it logs regardless of the environment. but if I do the error_logs(0) you told me, even if ...
975 Views
13 Replies
12-19-2023, 07:12 AM
mywebmanavgat
    Thread: Undefined Variable 500 Error
Post: RE: Undefined Variable 500 Error

doing this solves the problem in the output. however, ci4 never logs this error. Thank you for your help. I think I need to think a little and decide whether I will continue with ci3 or laravel. th...
975 Views
13 Replies
12-19-2023, 03:37 AM
mywebmanavgat
    Thread: Can't you continue to develop the Ci3 framework? (Ci3 Lovers gather)
Post: Can't you continue to develop the Ci3 framework? (...

Ci3 is a very simple and great performing roof. You can get a project off the ground quickly, avoiding rigid psr rules. Everything is very simple and easy thanks to its great performance and easy ...
450 Views
2 Replies
12-19-2023, 02:58 AM
mywebmanavgat
    Thread: Undefined Variable 500 Error
Post: RE: Undefined Variable 500 Error

Php Version : 8.3.3 and 8.1.1 use Even if you remove the string return of the function, the problem is not solved. Yes, it is a strict rule that there should be no undefined variables in advanced p...
975 Views
13 Replies
12-19-2023, 02:55 AM
mywebmanavgat
    Thread: Undefined Variable 500 Error
Post: Undefined Variable 500 Error

PHP Code: --
975 Views
13 Replies
12-18-2023, 09:06 AM
mywebmanavgat
    Thread: does not automatically redirect for the use of modules.
Post: RE: does not automatically redirect for the use of...

This makes sense but isn't it ridiculous to make it mandatory? Ci3 was really great with everything, but I have to switch to ci4 because I'm not sure if there will be updates for the new php versions....
463 Views
5 Replies
12-18-2023, 03:35 AM
mywebmanavgat
    Thread: does not automatically redirect for the use of modules.
Post: RE: does not automatically redirect for the use of...

kenjis Wrote: (12-17-2023, 04:15 AM) -- Try this: https://github.com/kenjis/ci4-modules-test/commit/b2d6230aa1d9bcd58b73dbfa34b0efe51aa45eb1 -- I applied the changes but I keep getting the erro...
463 Views
5 Replies
12-18-2023, 12:58 AM
mywebmanavgat

Theme © iAndrew 2016 - Forum software by © MyBB