Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI4 controller error with built-in php class (intl)
Post: RE: CI4 controller error with built-in php class (...

jreklund Wrote: (07-17-2020, 02:44 AM) -- Add \ in front of it to use native PHP-functions. \NumberFormatter -- thanks a lot. as far i remember, in ci3 we dont hv to put it. *note to other: ...
2,945 Views
4 Replies
07-17-2020, 02:50 AM
nmaa3003
    Thread: CI4 controller error with built-in php class (intl)
Post: CI4 controller error with built-in php class (intl...

this my code PHP Code: -- 46    public function view_receipt($id) 47    { 48        $data['receipt'] = $this->company_model->get_receipt($id); 49        $data['receipt']->description = expl...
2,945 Views
4 Replies
07-17-2020, 02:39 AM
nmaa3003
    Thread: CI4 csrf_field not generate same value as csrf_hash
Post: CI4 csrf_field not generate same value as csrf_has...

I'm trying to implement csrf validation in my form. based on my understanding, we just compare the csrf hash from view/post with the csrf in backend/controller. so, i tried to use  Code: -- -- ...
1,895 Views
2 Replies
06-02-2020, 06:44 AM
nmaa3003
    Thread: validation custom error not working in saved rules
Post: validation custom error not working in saved rules

PHP Code: -- //-------------------------------------------------------------------- // Rules //-------------------------------------------------------------------- public $merchant_register = ...
846 Views
0 Replies
05-30-2020, 01:12 AM
nmaa3003
    Thread: update form validation
Post: RE: update form validation

i want to help, but cant understand a damn u talking about. your code also messed up for me to read.. organize it
6,455 Views
9 Replies
05-28-2020, 04:13 AM
nmaa3003
    Thread: fail to set flashdata after destroy session on logout
Post: fail to set flashdata after destroy session on log...

hi,  this is my code: PHP Code: --     public function logout()     {         $adminModel = new AdminModel();         $category = 'last_logout';         $merchant = $this->session->get('merch...
2,361 Views
3 Replies
05-26-2020, 07:13 AM
nmaa3003
    Thread: How to sanitize request->getPost in bulk/array
Post: How to sanitize request->getPost in bulk/array

Hi, So far based on documentation, it stated we can sanitize multiple field in an array but only for 1 same filter. PHP Code: -- $request->getPost(['field1', 'field2'], FILTER_SANITIZE_STRING);...
1,718 Views
1 Replies
05-25-2020, 04:47 AM
nmaa3003
    Thread: debug toolbar not showing in xampp
Post: RE: debug toolbar not showing in xampp

thx. will try.
3,252 Views
3 Replies
05-24-2020, 02:18 AM
nmaa3003
    Thread: debug toolbar not showing in xampp
Post: debug toolbar not showing in xampp

Hi, i just started play around ci4 since currently im using ci3 for live server. But i notice that after i start my ci4 via xampp, the debug toolbar not showing. however, it works fine if i s...
3,252 Views
3 Replies
05-23-2020, 10:50 PM
nmaa3003
    Thread: Session not working in basecontroller
Post: RE: Session not working in basecontroller

$this->session = \Config\Services::session(); u put wrong namespace.
2,411 Views
2 Replies
05-12-2020, 06:24 AM
nmaa3003
  Question Thread: Constructor - Assigning class variables
Post: Constructor - Assigning class variables

Code: -- class Home extends BaseController { var $cache; public function __contruct() { parent::__construct(); $this->cache = \Config\Services::cache(); } public function reset() ...
1,453 Views
1 Replies
05-11-2020, 01:38 PM
nmaa3003
    Thread: [SOLVED] upgrade 4.0.2 to 4.0.3 error
Post: [SOLVED] upgrade 4.0.2 to 4.0.3 error

Hi, currently my CI version is 4.0.2. since 4.0.3 already released, i go to my console at project root then run this cmd : composer update then i noticed the composer remove the codeigniter 4...
1,636 Views
1 Replies
05-10-2020, 05:02 PM
nmaa3003
    Thread: tracking user activity via user agent
Post: RE: tracking user activity via user agent

jreklund Wrote: (05-04-2020, 03:53 AM) -- Put it in a BaseController and extend it from your other ones, just like you are extending CI_Controller (if on CI3) -- yes. base controller. tyvm.
2,157 Views
2 Replies
05-04-2020, 04:10 AM
nmaa3003
    Thread: tracking user activity via user agent
Post: tracking user activity via user agent

Hi, I was thinking of creating a function where i able to record my user's user agent or referrer. The idea is the moment a user entered the my website no matter from which url/controller. i wan...
2,157 Views
2 Replies
05-03-2020, 04:52 PM
nmaa3003

Theme © iAndrew 2016 - Forum software by © MyBB