Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Undefined Method for POST/$request->getPOST()
Post: RE: Undefined Method for POST/$request->getPOST()

don't need to redeclare $request, it already initiated in basecontroller $this->request
164 Views
2 Replies
02-07-2024, 05:32 AM
ikesela
    Thread: Remove blank line when render view in CI4
Post: RE: Remove blank line when render view in CI4

i did test it. just remove this comment line /** * @author tmtuan * @github https://github.com/tu801 * created Date: 1/24/2024 */
237 Views
5 Replies
01-24-2024, 10:54 PM
ikesela
    Thread: Where to put message file in codeigniter4?
Post: RE: Where to put message file in codeigniter4?

suggesting using language file is easier. create file in folder folder: App\Language\en\message.php File content: return [ 'add' => 'Admin Created!', 'update' => Updated Successfully!' ]; callin...
595 Views
5 Replies
06-05-2023, 08:24 AM
ikesela
    Thread: view not loaded in second function
Post: RE: view not loaded in second function

echo view('design1/template', $data); shoudl be like this (instead echo) ; return view('design1/template', $data);
854 Views
5 Replies
05-27-2023, 06:03 AM
ikesela
    Thread: Bootstrap integration issue
Post: RE: Bootstrap integration issue

copy all related file to public folder. its better.
1,467 Views
4 Replies
02-18-2023, 10:26 PM
ikesela
    Thread: Cannot access request values from controller
Post: RE: Cannot access request values from controller

Your need to set 3 part: Routes (App\Config\Routes.php) : wil be like this: http:yourdomain.com/ajax $routes->get('ajax', 'Home::viewForm', ['as' => 'ajaxform']); // to view form , need create fun...
2,830 Views
5 Replies
01-30-2023, 08:28 AM
ikesela
    Thread: ci4 log
Post: RE: ci4 log

change this variable value: public $threshold = 3; // up to this level will be logged
1,052 Views
5 Replies
01-28-2023, 08:11 AM
ikesela
    Thread: Upgrade to 4.3.1 help
Post: RE: Upgrade to 4.3.1 help

i have same problem, but solve by install kint: composer require kint-php/kint * kint-php will be remove if using composer update --no-dev * in my case, im using appstarter ( kint install under req...
5,559 Views
12 Replies
01-28-2023, 08:04 AM
ikesela
    Thread: route group, only first one works
Post: RE: route group, only first one works

remove / (backlash) $routes->get('login', [Authentication::class, 'login']);
677 Views
2 Replies
01-25-2023, 07:43 AM
ikesela
    Thread: Query Builder order by lenght
Post: RE: Query Builder order by lenght

use SELECT to get the length, then can use the sort select(' length(nome) as L') orderBy('L asc')
622 Views
1 Replies
01-17-2023, 10:34 PM
ikesela
    Thread: Happy New Year Everyone 2023
Post: RE: Happy New Year Everyone 2023

happy new year 2023
881 Views
1 Replies
01-01-2023, 08:41 AM
ikesela
    Thread: Merry Christmas & Happy New Years.
Post: RE: Merry Christmas & Happy New Years.

Merry Christmas & Happy New Years 2023
916 Views
2 Replies
12-25-2022, 03:27 AM
ikesela
    Thread: PHP error. Why?
Post: RE: PHP error. Why?

maybe the array value not exist try if(!isset($row[$i]['id'])) continue:
645 Views
2 Replies
12-16-2022, 04:17 PM
ikesela
    Thread: help getting all routes in an array in controller
Post: RE: help getting all routes in an array in control...

$r = service('routes'); $r->setHTTPVerb('post'); // verb are lowercase $r->getRoutes());
1,646 Views
5 Replies
12-12-2022, 09:16 AM
ikesela
    Thread: Change localhost:8080 to custom domain CI4
Post: RE: Change localhost:8080 to custom domain CI4

suggest using laragon (laragon.org). all out of the box (just make project under www folder, all automatic create domain each , project1.test, project2.test)
3,404 Views
8 Replies
11-27-2022, 07:51 AM
ikesela
    Thread: Model::update() is dangerous
Post: RE: Model::update() is dangerous

maybe can fix this, byass id checking if it is NULL , there should be no if($id), no checking need so WhereIn to be work Code: -- protected function doUpdate($id = null, $data = null): bool { ...
5,794 Views
21 Replies
11-16-2022, 07:32 AM
ikesela
    Thread: Model::update() is dangerous
Post: RE: Model::update() is dangerous

maybe can fix by making model update not allow null input as id. seen this complain on fb group ( id == null, will update all rows)
5,794 Views
21 Replies
11-15-2022, 07:51 AM
ikesela
    Thread: why is this always 'no'?
Post: RE: why is this always 'no'?

show your $post_array value, maybe other method more suitable for checking.
967 Views
3 Replies
11-14-2022, 08:09 PM
ikesela
    Thread: Sql Query Like by Multiple columns
Post: RE: Sql Query Like by Multiple columns

UchihaSV Wrote: (11-12-2022, 06:04 AM) -- ikesela Wrote: (11-12-2022, 12:30 AM) -- Code: -- $this->userModel->like('CONCAT(last_name,first_name)',$_GET['search']); -- -- Tnx, and if i need spa...
1,827 Views
4 Replies
11-12-2022, 08:05 AM
ikesela
    Thread: Sql Query Like by Multiple columns
Post: RE: Sql Query Like by Multiple columns

Code: -- $this->userModel->like('CONCAT(last_name,first_name)',$_GET['search']); --
1,827 Views
4 Replies
11-12-2022, 12:30 AM
ikesela

Theme © iAndrew 2016 - Forum software by © MyBB