Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How can get Response from API when status is 4xx using Curl library
Post: RE: How can get Response from API when status is 4...

SonzoXide Wrote: (06-07-2024, 09:46 AM) -- PHP Code: -- $response = $client->request('GET', '/api-endpoint', ['http_errors' => false]); dd($response); -- you may try add http_errors => false, lik...
1,810 Views
4 Replies
06-08-2024, 08:18 AM
mylastof
    Thread: How can get Response from API when status is 4xx using Curl library
Post: RE: How can get Response from API when status is 4...

kenjis Wrote: (06-06-2024, 08:55 PM) -- Are you talking about CURLRequest? See https://codeigniter.com/user_guide/libraries/curlrequest.html#http-errors -- yes, its about it. but how to get respo...
1,810 Views
4 Replies
06-07-2024, 01:52 AM
mylastof
    Thread: How can get Response from API when status is 4xx using Curl library
Post: How can get Response from API when status is 4xx u...

some API has set 400, 401 etc if have error in username or other param in CI4 (v4.4.8) I cant get response for this. any idea?
1,810 Views
4 Replies
06-06-2024, 07:53 PM
mylastof
    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
822 Views
1 Replies
05-21-2024, 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_...
2,055 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/...
5,112 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
5,112 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 --
5,112 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...
5,112 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. -- ...
1,764 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...
1,764 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...
1,764 Views
5 Replies
02-13-2024, 01:28 AM
mylastof
    Thread: validation file upload
Post: RE: validation file upload

no one can help?
1,253 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]', ]); --
1,253 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
2,474 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...
1,092 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?
6,502 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...
2,801 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->...
2,801 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...
2,143 Views
2 Replies
01-17-2022, 05:22 AM
mylastof

Theme © iAndrew 2016 - Forum software by © MyBB