Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How rewite this
Post: How rewite this

$file = @fopen($localFilePath, 'w');                 $ch = curl_init($FileDetails['href']);                 curl_setopt($ch, CURLOPT_FILE, $file);                 curl_setopt($ch, CURLOPT_HTTPHEADER, ...
150 Views
0 Replies
12-26-2024, 07:21 AM
motoroller
    Thread: Rules validation
Post: Rules validation

'id' => [     'label' => ' ',     'rules' => 'required|is_natural_no_zero|validMyOwn[]' ] When i validate form, if id is empty, anyway validMyOwn validation is executing, how prevent it?
267 Views
0 Replies
12-19-2024, 07:56 AM
motoroller
    Thread: Safery request
Post: Safery request

How can i do use $search - safety? $builder->where("c.Data->>'$.name' LIKE '%$search%'", null, false); I have triesd loke this way, but i got SQL error $builder->like("c.Data->>'$.name'", $sea...
253 Views
0 Replies
12-12-2024, 02:43 AM
motoroller
    Thread: Problem with sessions
Post: RE: Problem with sessions

InsiteFX Wrote: (12-02-2024, 09:50 PM) -- app\Config\Session.php PHP Code: -- public string $savePath = WRITEPATH . 'session'; -- -- I use Redis!
605 Views
4 Replies
12-03-2024, 03:31 PM
motoroller
    Thread: Problem with sessions
Post: RE: Problem with sessions

ozornick Wrote: (12-01-2024, 09:30 PM) -- Set session path as /writable/session -- public string $savePath = 'tcp://localhost:6379';
605 Views
4 Replies
12-02-2024, 05:06 AM
motoroller
    Thread: Problem with sessions
Post: Problem with sessions

CRITICAL - 22:25:34 01-12-2024 --> ErrorException: session_start(): Failed to read session data: user (path: /var/www/www-root/data/mod-tmp) [Method: GET, Route: /] in SYSTEMPATH/Session/Session.php o...
605 Views
4 Replies
12-01-2024, 12:34 PM
motoroller
    Thread: Error Logs
Post: RE: Error Logs

I need get full array values, not levels of error
363 Views
2 Replies
11-20-2024, 01:00 AM
motoroller
    Thread: Error Logs
Post: Error Logs

2 SYSTEMPATH/Validation/Validation.php(339): App\Validations\Validations->Test('784520', '', [...], null, 'service') How can i get Data instead [...] in my logs file
363 Views
2 Replies
11-16-2024, 01:01 PM
motoroller
    Thread: Except in Filters
Post: RE: Except in Filters

kenjis Wrote: (06-06-2022, 11:21 PM) -- $filters does not have `except`. If you use $filters, you must list all URI patterns to be protected. -- But why we can add exept in public array $filters, l...
3,293 Views
6 Replies
07-17-2024, 11:50 AM
motoroller
    Thread: How do except in filters
Post: How do except in filters

/** * List of filter aliases that should run on any * before or after URI patterns. * * Example: * 'isLoggedIn' => ['before' => ['account/*', 'profiles/*']] * ...
361 Views
1 Replies
07-17-2024, 10:59 AM
motoroller
    Thread: Like with Json field
Post: Like with Json field

I can use where $builder->where("c.Owner->>'$.id'='$owner'", null, false); how do same with like?
409 Views
1 Replies
04-29-2024, 03:26 AM
motoroller
    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...
1,160 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...
1,160 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') ?
331 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...
1,160 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 &&...
1,160 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
641 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...
641 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 ...
301 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...
457 Views
1 Replies
01-11-2024, 01:32 AM
motoroller

Theme © iAndrew 2016 - Forum software by © MyBB