Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Custom error exception like PageNotFoundException
Post: Custom error exception like PageNotFoundException

Hello! I need function to show 403 error in CI like throw \CodeIgniter\Exceptions\ForbiddenException::forbidden(); I created own exception handler, but if I replace protected $code = 404; to protect...
1,959 Views
1 Replies
01-16-2020, 04:23 AM
XTAZ
    Thread: Parameter to database select function
Post: Parameter to database select function

Hello! In my opinion, function select must have a parameter for reset last select data PHP Code: -- public function select($select = '*', bool $escape = null, bool $reset = false) ... if ($reset) {...
2,098 Views
1 Replies
01-08-2020, 08:48 AM
XTAZ
    Thread: How I can extend CodeIgniter\HTTP\Response::statusCodes
Post: How I can extend CodeIgniter\HTTP\Response::status...

Hello! How I can extend CodeIgniter\HTTP\Response:: statusCodes? I work with https://github.com/smi2/phpClickHouse (https://github.com/smi2/phpClickHouse) and https://clickhouse.yandex/docs/en/ ...
3,152 Views
2 Replies
12-16-2019, 01:53 PM
XTAZ
    Thread: Bug: Double use where and etc
Post: Bug: Double use where and etc

Hello! Model have paginate method, I needs extends it in my model. I extends countAllResults() and findAll() PHP Code: -- public function paginateByUser($user_id = null, int $perPage = 20, st...
1,152 Views
0 Replies
12-08-2019, 11:21 AM
XTAZ
    Thread: Cookie and other headers not send
Post: Cookie and other headers not send

Hello! Code: PHP Code: -- set_cookie([     'name'  => 'cookie',     'value'  => 'value' ]); return redirect()->to('/'); -- Cookies not send. For send cookie I must add before redirect $this->resp...
1,038 Views
0 Replies
12-08-2019, 09:56 AM
XTAZ
    Thread: Detect redirect
Post: Detect redirect

Hello! IonAuth controller after user login execute "return redirect()->to('/');" and if fail execute "return redirect()->back()->withInput();". I in my controllers extends IonAuth controller and...
2,471 Views
2 Replies
12-07-2019, 08:16 AM
XTAZ
    Thread: Do support extends language files?
Post: Do support extends language files?

Hello! If I install module, which use languages, do I extends it with my lines? Module language: /vendor/developer/package/Language/en/Package.php My language (example): /app/Language/en/Packag...
1,089 Views
0 Replies
12-04-2019, 12:43 PM
XTAZ
    Thread: Standart for form_input and etc
Post: Standart for form_input and etc

Hello! In my opinion, we must have standart for form_input. I want add class form-control to all inputs, I write this code: PHP Code: -- $defaults = [ 'type'  => $type, 'name'  => is_array($d...
1,159 Views
0 Replies
12-04-2019, 12:28 PM
XTAZ
    Thread: How modules need load Config?
Post: How modules need load Config?

Hello! I install https://github.com/benedmunds/CodeIgniter-Ion-Auth/tree/4/ (https://github.com/benedmunds/CodeIgniter-Ion-Auth/blob/4/) with composer, now I want edit IonAuth config file, but i no...
1,829 Views
1 Replies
12-04-2019, 12:10 PM
XTAZ
    Thread: How I can show 404 if locale invalid?
Post: RE: How I can show 404 if locale invalid?

XTAZ Wrote: (11-24-2019, 11:58 AM) -- How I can show 404 if locale invalid? My route: $routes->add('{locale}', 'App\Controllers\Home::index'); But if I try open mysite.com/asdasdasd, or mysite...
2,535 Views
2 Replies
11-25-2019, 04:04 PM
XTAZ
    Thread: Equivalent to "uri rsegment"?
Post: RE: Equivalent to "uri rsegment"?

RedskyThirty Wrote: (11-25-2019, 02:56 AM) -- Здравствуйте, я хотел бы знать, есть ли эквивалент в «$ this-> uri-> rsegment ()» в CI4? Я ищу в документе, но ничего об этом не нахожу. Я по...
3,116 Views
2 Replies
11-25-2019, 02:43 PM
XTAZ
    Thread: CI4.0rc3 + calling model->save() on unchanged entity causes critical error
Post: RE: CI4.0rc3 + calling model->save() on unchanged ...

This error appears then you save empty object/array, CI thinks that you forgot set data. $myModel->save([]) - shoud give same error
2,864 Views
2 Replies
11-24-2019, 12:03 PM
XTAZ
    Thread: How I can show 404 if locale invalid?
Post: How I can show 404 if locale invalid?

How I can show 404 if locale invalid? My route: $routes->add('{locale}', 'App\Controllers\Home::index'); But if I try open mysite.com/asdasdasd, or mysite.com/dad2da ... - I get HTTP code 200, I wan...
2,535 Views
2 Replies
11-24-2019, 11:58 AM
XTAZ
    Thread: About IonAuth 4 auth System
Post: RE: About IonAuth 4 auth System

I try create full support with CI4: https://github.com/benedmunds/CodeIgniter-Ion-Auth/pull/1384
12,662 Views
5 Replies
11-12-2019, 01:16 PM
XTAZ
    Thread: [split] Ion-Auth with CI4
Post: RE: [split] Ion-Auth with CI4

How work IonAuth in CI4?? WTF?? I https://github.com/benedmunds/CodeIgniter-Ion-Auth/blob/4/Models/IonAuthModel.php I see $this->db->select(... ->get($this->tables['users']);... $query->numRows()... ...
27,629 Views
14 Replies
11-12-2019, 12:51 PM
XTAZ

Theme © iAndrew 2016 - Forum software by © MyBB