Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: set exception 400 to 404
Post: set exception 400 to 404

I have error BadRequest with code 400 how to handle it to force show as 404? can you help? CodeIgniter\HTTP\Exceptions\BadRequestException
37 Views
0 Replies
Yesterday, 06:54 PM
mylastof
    Thread: 4.4.1 to 4.4.8 base_url php spark closes..
Post: RE: 4.4.1 to 4.4.8 base_url php spark closes..

this works for me PHP Code: -- $HTTPHOST = 'http://localhost:' . (PHP_SAPI === 'cli' ? '8080' : $_SERVER['SERVER_PORT'])); if (! empty($_SERVER['HTTP_HOST'])) {     $HTTPHOST = $_SERVER['HTTP_...
306 Views
6 Replies
05-11-2024, 05:49 AM
mylastof
    Thread: Controller or its method is not found
Post: RE: Controller or its method is not found

kenjis Wrote: (03-23-2024, 07:21 PM) -- Show the output of `php spark routes`, and the routing settings. -- here the result `php spark routes` https://blogger.googleusercontent.com/img/b/R29vZ2xl/...
368 Views
6 Replies
03-23-2024, 08:08 PM
mylastof
    Thread: Controller or its method is not found
Post: RE: Controller or its method is not found

bring up my post
368 Views
6 Replies
03-23-2024, 07:44 AM
mylastof
    Thread: Controller or its method is not found
Post: RE: Controller or its method is not found

why PHP Code: -- \App\ControllersMember\Dashboard::index -- not PHP Code: -- \App\Controllers\Member\Dashboard::index --
368 Views
6 Replies
03-21-2024, 06:15 PM
mylastof
    Thread: Controller or its method is not found
Post: Controller or its method is not found

I’ve recently upgraded CodeIgniter from v4.3.8 to v4.4.0 and encountered an issue with routing. My controller is located at app/Controllers/Member/Dashboard.php and is set up for auto-routing. Ho...
368 Views
6 Replies
03-21-2024, 04:17 PM
mylastof
    Thread: CLI load first in route?
Post: RE: CLI load first in route?

kenjis Wrote: (02-13-2024, 02:54 AM) -- Check your routes: Code: -- $ php spark routes -- -- kenjis Wrote: (02-15-2024, 07:41 PM) -- Run step debugging with your IDE, and find out the cause. -- ...
527 Views
5 Replies
03-10-2024, 11:34 PM
mylastof
    Thread: CLI load first in route?
Post: RE: CLI load first in route?

kenjis Wrote: (02-13-2024, 02:54 AM) -- Check your routes: Code: -- $ php spark routes -- -- kenjis Wrote: (02-13-2024, 03:05 AM) -- This bug? https://forum.codeigniter.com/showthread.php?tid=8...
527 Views
5 Replies
02-15-2024, 07:20 PM
mylastof
    Thread: CLI load first in route?
Post: CLI load first in route?

I have a member page, and this is autoroute, Besides that, I added a CLI route with the prefix name "cron/function", it is located in app/Cron/*. However, my auto route with the member/dashboard ur...
527 Views
5 Replies
02-13-2024, 01:28 AM
mylastof
    Thread: validation file upload
Post: RE: validation file upload

no one can help?
602 Views
2 Replies
04-07-2023, 11:57 PM
mylastof
    Thread: validation file upload
Post: validation file upload

How to pass upload file with "array"? no value returned. PHP Code: -- // In the HTML // In the controller $this->validate([ 'file.image.*' => 'uploaded[file.image]', ]); --
602 Views
2 Replies
04-07-2023, 01:56 AM
mylastof
    Thread: Error when try to upload empty file
Post: RE: Error when try to upload empty file

no option "permit_empty" for files validation
1,257 Views
2 Replies
03-29-2023, 10:25 PM
mylastof
    Thread: Model builder timestamp
Post: Model builder timestamp

Just ask, when using insert/save data by model, timestamp inserted automatically ex: PHP Code: -- $model->insert($data); -- but, when insert by builder like PHP Code: -- $builder = $model->bui...
694 Views
1 Replies
05-30-2022, 10:42 PM
mylastof
    Thread: BAGAIMANA CARA MENGAMBIL DATA DARI HALAMAN SEBELUMNYA
Post: RE: BAGAIMANA CARA MENGAMBIL DATA DARI HALAMAN SEB...

iuran.php itu dari controller apa?
4,551 Views
1 Replies
02-04-2022, 09:49 PM
mylastof
    Thread: Route not work with regex
Post: RE: Route not work with regex

iRedds Wrote: (01-27-2022, 11:43 PM) -- PHP Code: -- $routes->addPlaceholder('unique', '[a-z0-9]{40}|all'); $routes->addPlaceholder('tab', 'done|in-progress'); $routes->get('(:unique)', 'Pages...
1,903 Views
3 Replies
01-28-2022, 06:51 PM
mylastof
    Thread: Route not work with regex
Post: Route not work with regex

I have reoutes with custom placeholder like: Code: -- // route $routes->addPlaceholder('unique', '([a-z0-9]{40}|all)$'); $routes->addPlaceholder('tab', '(?:^|done|in-progress)$'); $routes->...
1,903 Views
3 Replies
01-27-2022, 09:10 PM
mylastof
    Thread: Time() not same?
Post: Time() not same?

Code: -- $now = Time::now(); $new_now = Time::createFromTimestamp($now->timestamp); -- $new_now create from $now->timestamp but $new_now not showing the same Time with $now even I add timeZo...
1,372 Views
2 Replies
01-17-2022, 05:22 AM
mylastof
    Thread: How to return count from findAll() function?
Post: How to return count from findAll() function?

I'm using findAll($limit, $offset) for pagination, besides that I also want to display the count of all of them without $limit, is there any special function? whereas read https://codeigniter.com/u...
990 Views
1 Replies
01-07-2022, 10:02 PM
mylastof
    Thread: No way to permit empty on file upload
Post: RE: No way to permit empty on file upload

i have same issue [hr] Im forgot to use : ` if ($files->hasFile('file_')) {`
2,693 Views
3 Replies
12-24-2021, 08:27 AM
mylastof
    Thread: vendor/autoload.php not execute with multiple applications?
Post: RE: vendor/autoload.php not execute with multiple ...

FYI: I Just edit COMPOSER_PATH to Code: -- __DIR__ . '../../../../vendor/autoload.php' -- but it goes HTTP ERROR 500
2,241 Views
2 Replies
12-10-2021, 08:30 AM
mylastof

Theme © iAndrew 2016 - Forum software by © MyBB