Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Valida uniq data
Post: Valida uniq data

I use validation is_unique[users.email] rule: select count(*) from users where email = $value but tell me plase if i need get guery like this select count(*) from users where email = $value a...
56 Views
1 Replies
12-06-2022, 02:49 PM
motoroller
    Thread: Problem with delete session
Post: Problem with delete session

i Have logout controller like this, my sessions stored in Redis helper('cookie'); set_cookie([ 'name' => 'country', 'value' => '', 'expire' => -25800, ...
150 Views
2 Replies
12-03-2022, 06:32 AM
motoroller
    Thread: SQL с Union and order
Post: SQL с Union and order

I have 2 queries than i Union, but how can i order united data? not each, i need order total result SELECT *( SELECT CONCAT(firstName,' ',lastName) fullname FROM employees UNION SELE...
72 Views
0 Replies
11-27-2022, 07:10 AM
motoroller
    Thread: Possible change POST before validation?
Post: Possible change POST before validation?

Possible change data POST before validation? I did change in POST, after that make validaion but it comes with old data Or how can i pass new Data to validation? $validation->withRequest($_POST)->r...
327 Views
2 Replies
11-26-2022, 10:35 AM
motoroller
    Thread: How make one route
Post: RE: How make one route

iRedds Wrote: (11-24-2022, 09:25 AM) -- $routes->get('owner(?:\/calendar)?', [Calendar::class, 'Index']); -- can i simplify? $routes->get('owner(/calendar)?', [Calendar::class, 'Index']);
597 Views
3 Replies
11-24-2022, 03:08 PM
motoroller
    Thread: How make one route
Post: How make one route

$routes->get('owner', [Calendar::class, 'Index']); $routes->get('owner/calendar', [Calendar::class, 'Index']); same touters how make one?
597 Views
3 Replies
11-24-2022, 06:50 AM
motoroller
    Thread: SMTP fails on localhost
Post: RE: SMTP fails on localhost

I have same problem
3,541 Views
11 Replies
11-23-2022, 02:26 PM
motoroller
    Thread: Before filters with main page redirect when I call a controller with ajax
Post: RE: Before filters with main page redirect when I ...

Try exit
290 Views
6 Replies
11-23-2022, 02:23 PM
motoroller
    Thread: Second base in ENV
Post: Second base in ENV

i have settins in ERV for the first database is ok default group but when i added second one and try to connect i got next "second is not a valid database connection group." if i add to config empt...
98 Views
0 Replies
11-23-2022, 02:22 PM
motoroller
    Thread: Sent email via SMTP
Post: Sent email via SMTP

hello everyone, can г help me i have a project in CI3, and send email via SMTP, chanhe to CI4, same settings, but get error can`t send email with php_smtp() from same pc, but with CI3 send it properl...
119 Views
1 Replies
11-23-2022, 01:50 AM
motoroller
    Thread: Can i combine ruoters?
Post: Can i combine ruoters?

$routes->get('/', [Share::class, 'History']); $routes->get('history', [Share::class, 'History']); Can i combine to one?
116 Views
1 Replies
11-20-2022, 05:07 AM
motoroller
    Thread: Validation Form
Post: RE: Validation Form

permit_empty
78 Views
1 Replies
11-19-2022, 01:02 PM
motoroller
    Thread: Validation Form
Post: Validation Form

I post data via AJAX on the server i get it like [ name => '' sex=> '' ] My validation 'name' => [             'label' => ' ',             'rules' => 'required'         ],       ...
78 Views
1 Replies
11-19-2022, 11:50 AM
motoroller
    Thread: Change data in Form Validation
Post: Change data in Form Validation

In CI3 this works fine // Function change first letter to capital public function setUpperLetter ($str): string { return mb_convert_case($str, MB_CASE_TITLE, 'UTF-8'); } //...
163 Views
2 Replies
11-18-2022, 02:21 PM
motoroller
    Thread: Change POST data
Post: Change POST data

Hello, everyone, i send data by post for example phone = 1234567 var_dump($_POST['phone']); // 1234567 var_dump($this->request->getPost('phone')); // 1234567 then chage it value to 123456 ...
124 Views
0 Replies
11-18-2022, 02:03 PM
motoroller
    Thread: Problem with AJAX request
Post: Problem with AJAX request

I did simple request $.ajax({ url: "/go/", method: "POST", data: { value: "test" }, headers: {'X-Requested-With': 'XMLHttpRequest'}, }); Made router $routes->post('go', [Owners...
124 Views
1 Replies
11-17-2022, 06:24 AM
motoroller
    Thread: Where place render page code?
Post: RE: Where place render page code?

Like a sad before, i dont want make copy past in each controller, i wanna make code dry
172 Views
4 Replies
11-17-2022, 02:52 AM
motoroller
    Thread: Where place render page code?
Post: Where place render page code?

Hello everyone, i need render page, but before i have a lot ruotine code, like set variables for template, get notifications for users choose template mobile or desktop, tell me please shopuld i pu...
172 Views
4 Replies
11-17-2022, 12:51 AM
motoroller
    Thread: Pass data to filter
Post: RE: Pass data to filter

// Get Name of controller $router = service('router'); $controller = $router->controllerName(); // Load Contoller $controller = new $controller; var_dump(contr...
150 Views
2 Replies
11-17-2022, 12:48 AM
motoroller
    Thread: Pass data to filter
Post: Pass data to filter

Hello, tell me please can i pass some data (from controller) to filter before? For example i have some data in controller like name, type, acceess and i need it pass to filter, to undestand this user...
150 Views
2 Replies
11-16-2022, 01:26 PM
motoroller

Theme © iAndrew 2016 - Forum software by © MyBB