Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: CURL error: The requested URL returned error: 403
Post: CURL error: The requested URL returned error: 403

It's my code to send curl: PHP Code:$data = array(    "foo" => "bar");$curl_options = array(    'query' => $data,   ...
ciddict CodeIgniter 4 Support 1 156 04-29-2021, 12:05 AM
    Thread: How to load a model in Autoload file
Post: RE: How to load a model in Autoload file

@iRedds, Can you please let me know how could I do that?
ciddict CodeIgniter 4 Support 10 890 04-15-2021, 09:13 AM
    Thread: How to load a model in Autoload file
Post: RE: How to load a model in Autoload file

@iRedds, OK. Thanks.
ciddict CodeIgniter 4 Support 10 890 04-14-2021, 02:35 PM
    Thread: How to load a model in Autoload file
Post: RE: How to load a model in Autoload file

I want to push some data to $psr4 variable dynamically. And I've to get that data from model. How could I do that?
ciddict CodeIgniter 4 Support 10 890 04-13-2021, 11:49 PM
    Thread: How to load a model in Autoload file
Post: RE: How to load a model in Autoload file

@iRedds, so there has no way to get a model in autoload class?
ciddict CodeIgniter 4 Support 10 890 04-13-2021, 08:19 AM
    Thread: How to load a model in Autoload file
Post: RE: How to load a model in Autoload file

@InsiteFX, I didn't get it from your answer. Can you please be more specific?
ciddict CodeIgniter 4 Support 10 890 04-11-2021, 01:52 PM
    Thread: How to load a model in Autoload file
Post: How to load a model in Autoload file

How can I load a model in ...\app\Config\Autoload.php? PHP Code:namespace Config;use CodeIgniter\Config\AutoloadConfig;class Autoload extends AutoloadConfig { ...
ciddict CodeIgniter 4 Support 10 890 04-11-2021, 11:59 AM
    Thread: Module view file showing invalid
Post: RE: Module view file showing invalid

@paulbalandan, it worked. Thank you so much.
ciddict CodeIgniter 4 Support 3 312 04-10-2021, 01:54 PM
    Thread: Module view file showing invalid
Post: Module view file showing invalid

I've added the module folder in ...\app\Config\Autoload.php Quote:public $psr4 = [           APP_NAMESPACE => APPPATH, // For custom app namespace           'Config'      => APPPATH . 'Con...
ciddict CodeIgniter 4 Support 3 312 04-10-2021, 08:12 AM
    Thread: How to update value by Events in CodeIgniter 4
Post: RE: How to update value by Events in CodeIgniter 4

OK. I'll check that. Thanks @iRedds and @InsiteFX.
ciddict CodeIgniter 4 Support 17 914 04-09-2021, 01:04 PM
    Thread: How to update value by Events in CodeIgniter 4
Post: RE: How to update value by Events in CodeIgniter 4

Not working :(
ciddict CodeIgniter 4 Support 17 914 04-09-2021, 06:37 AM
    Thread: How to update value by Events in CodeIgniter 4
Post: RE: How to update value by Events in CodeIgniter 4

@InsiteFX, I don't understand from there. Can you please give me the code for my case?
ciddict CodeIgniter 4 Support 17 914 04-09-2021, 04:03 AM
    Thread: How to update value by Events in CodeIgniter 4
Post: RE: How to update value by Events in CodeIgniter 4

@iRedds, Should I use function(&$array) here in my code? PHP Code:use CodeIgniter\Events\Events;Events::on('add_value_to_array', function(&$array) {   &...
ciddict CodeIgniter 4 Support 17 914 04-09-2021, 03:37 AM
    Thread: How to update value by Events in CodeIgniter 4
Post: RE: How to update value by Events in CodeIgniter 4

It was giving error too :(
ciddict CodeIgniter 4 Support 17 914 04-08-2021, 12:21 AM
    Thread: How to update value by Events in CodeIgniter 4
Post: RE: How to update value by Events in CodeIgniter 4

It's giving another error  :( Code:syntax error, unexpected '&', expecting ')'
ciddict CodeIgniter 4 Support 17 914 04-05-2021, 02:21 PM
    Thread: How to update value by Events in CodeIgniter 4
Post: RE: How to update value by Events in CodeIgniter 4

@InsiteFX, Thanks. With your code, I'm getting this error: Code:Parameter 1 to App\Controllers\My_controller::{closure}() expected to be a reference, value given This is heading to this line...
ciddict CodeIgniter 4 Support 17 914 04-05-2021, 11:54 AM
    Thread: How to update value by Events in CodeIgniter 4
Post: How to update value by Events in CodeIgniter 4

Here is my code: \app\Controllers\My_controller.php PHP Code:namespace App\Controllers;use CodeIgniter\Events\Events;class My_controller extends App_Controlle...
ciddict CodeIgniter 4 Support 17 914 04-05-2021, 09:36 AM
    Thread: Parse HTML content in CodeIgniter 4
Post: RE: Parse HTML content in CodeIgniter 4

@demyr, So there is no way to do that like CI3?
ciddict CodeIgniter 4 Support 4 640 03-21-2021, 02:09 AM
    Thread: Parse HTML content in CodeIgniter 4
Post: Parse HTML content in CodeIgniter 4

I'm using Codeigniter 4. PHP Code:$template = 'Hello, {firstname} {lastname}';$data = [    'title' => 'Mr',    'firstname' ...
ciddict CodeIgniter 4 Support 4 640 03-20-2021, 11:50 PM
    Thread: Validate multiple input in CI 4
Post: RE: Validate multiple input in CI 4

@kenjis, it worked. Thank you so much.
ciddict CodeIgniter 4 Support 8 798 03-13-2021, 02:15 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.