Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Problem with POST data types
Post: RE: Problem with POST data types

kenjis Wrote: (04-08-2024, 01:55 PM) -- First of all, you need to define what values are really valid in this case. Then validate user input (string value if it is POSTed). If it is valid, then con...
241 Views
6 Replies
04-10-2024, 01:18 AM
motoroller
    Thread: Problem with POST data types
Post: RE: Problem with POST data types

kenjis Wrote: (04-08-2024, 01:47 AM) -- It was converted to int implicitly by PHP. But in 4.5.0 "declare(strict_types=1);" has been added to most of the framework codebase. See https://www.php.net/ma...
241 Views
6 Replies
04-08-2024, 08:55 AM
motoroller
    Thread: How can POST Data
Post: How can POST Data

If i send POST with "Content-Type": "application/json" I can get data $json = $request->getJSON(); Inside JSON i have id (int) can i get via $this->request->getPost('id') ?
79 Views
1 Replies
04-08-2024, 01:25 AM
motoroller
    Thread: Problem with POST data types
Post: RE: Problem with POST data types

kenjis Wrote: (04-07-2024, 07:23 PM) -- Sorry this is not a bug, but an intended behavior of PHP. Because you specify int to $number, and "7" is not an int value. Quick workaround is just remove the...
241 Views
6 Replies
04-08-2024, 12:20 AM
motoroller
    Thread: Problem with POST data types
Post: Problem with POST data types

After update from 4.4.7 to 4.5 i got erros when i POSST data via AJAX, and validate data with custom function like public function validateRange (int $number): bool { return ($number > 5 &&...
241 Views
6 Replies
04-07-2024, 05:39 PM
motoroller
    Thread: Full Logs text
Post: RE: Full Logs text

JustJohnQ Wrote: (03-17-2024, 02:39 PM) -- https://codeigniter4.github.io/userguide/database/helpers.html#db-getlastquery -- It conntents of logs file, i need full query in logs
222 Views
3 Replies
03-18-2024, 01:27 AM
motoroller
    Thread: Full Logs text
Post: Full Logs text

Stack trace: #0 /var/www/www-root/data/www/vetaf.ru/vendor/codeigniter4/framework/system/Database/MySQLi/Connection.php(306): mysqli->query('INSERT INTO `or...', 0) #1 /var/www/www-root/data/www/vet...
222 Views
3 Replies
03-17-2024, 12:30 PM
motoroller
    Thread: How validate form like this ...
Post: How validate form like this ...

I have form with two types: 1) id, kind (worker), comment 2) id, kind (manager), comment, salary, action I have list workers and managers in this form, how i can validate all of them, but when ...
135 Views
0 Replies
02-14-2024, 12:35 AM
motoroller
    Thread: Full Logs text
Post: Full Logs text

#0 vendor/codeigniter4/framework/system/Database/MySQLi/Connection.php(306): mysqli->query('INSERT INTO `of...', 0) #1 vendor/codeigniter4/framework/system/Database/BaseConnection.php(693): CodeIgnit...
189 Views
1 Replies
01-11-2024, 01:32 AM
motoroller
    Thread: How validate this rules
Post: How validate this rules

I have form, if checkbox in my form (print) is checked (has value 'yes') i need validate email, if not dont validate My rules like that 'print' => [ 'label' => ' ', ...
122 Views
0 Replies
12-26-2023, 01:06 AM
motoroller
    Thread: Return Data From Form Validation
Post: Return Data From Form Validation

Hello everybody, i have o lot routines task, like check id element in Database in form validation i can use is_unique or is_not_unique depeneds on my tasks But most of the times after validation i nee...
151 Views
0 Replies
12-17-2023, 12:32 AM
motoroller
    Thread: Got error ERROR - 16:13:22 09-12-2023 --> Session: Error while trying to free lock fo
Post: RE: Got error ERROR - 16:13:22 09-12-2023 --> Sess...

kenjis Wrote: (12-09-2023, 04:44 PM) -- It may be this bug. https://github.com/codeigniter4/CodeIgniter4/issues/4391 Can you fix it? -- I can`t any way i will create request
325 Views
3 Replies
12-11-2023, 12:29 AM
motoroller
    Thread: Got error ERROR - 16:13:22 09-12-2023 --> Session: Error while trying to free lock fo
Post: Got error ERROR - 16:13:22 09-12-2023 --> Session:...

Sometimes i got ERROR - 16:13:22 09-12-2023 --> Session: Error while trying to free lock for ci_session:ci_session:b3f0b64cfb4da08dad6bc2227864e0c86626e858:lock I use redis for storage session, how...
325 Views
3 Replies
12-09-2023, 09:19 AM
motoroller
    Thread: Problem with filters
Post: Problem with filters

Hello everyone, i use few filters in project, one global and one in some routers In Config/Filters i have global PHP Code: -- public array $globals = [         'before' => [             '...
268 Views
1 Replies
09-14-2023, 02:21 PM
motoroller
    Thread: How rules works?
Post: How rules works?

please explain how its works if_exist? What difference permit_empty?
251 Views
1 Replies
08-25-2023, 01:13 AM
motoroller
    Thread: Get data in type from DB
Post: RE: Get data in type from DB

iRedds Wrote: (03-24-2023, 02:58 AM) -- Type conversion depends on the capabilities of the DBMS driver. As far as I know, only mysql native driver (mysqlnd) can provide data types from the database....
1,855 Views
3 Replies
03-24-2023, 11:31 AM
motoroller
    Thread: Get data in type from DB
Post: Get data in type from DB

class Wages { protected BaseConnection $db; public function __construct() { $this->db = Database::connect(); } public function get (): array { return $thi...
1,855 Views
3 Replies
03-24-2023, 01:40 AM
motoroller
    Thread: CI save Errors
Post: CI save Errors

On my server i have production mode, while i get error, it comes to logs, but most of all details of array is very poor (instead array i have ... etc) is any way to save extended logs with errors?
285 Views
0 Replies
03-24-2023, 12:54 AM
motoroller
    Thread: Get data in type from DB
Post: Get data in type from DB

+-------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------+--------------+------+-----+---------+----------------+ | ...
430 Views
1 Replies
01-26-2023, 01:27 PM
motoroller
    Thread: Active Record Full text search
Post: Active Record Full text search

How implement full text search?
360 Views
0 Replies
01-18-2023, 05:30 AM
motoroller

Theme © iAndrew 2016 - Forum software by © MyBB