Welcome Guest, Not a member yet? Register   Sign In
Search Results
  Thumbs Up Thread: Count model result
Post: RE: Count model result

demyr Wrote: (02-10-2022, 07:26 AM) -- Hi, Code: -- public function number_of_x_item($x_id){ $db      = \Config\Database::connect(); $builder = $db->table('your_db_table as dbt'); $query =...
3,665 Views
8 Replies
02-15-2023, 09:13 AM
yuma2020
    Thread: load Controller in Controller, CI3
Post: RE: load Controller in Controller, CI3

zeos Wrote: (05-07-2015, 06:04 AM) -- hi I can't load controller in another controller in CI3, but in CI2 i do this without problem!!! for test plz create MY_Controller in core and load a test librar...
22,348 Views
7 Replies
07-04-2022, 02:12 PM
yuma2020
    Thread: Need to apply abstract classes in Codeigniter
Post: Need to apply abstract classes in Codeigniter

How to apply abstract classes in Codeigniter within an additional library of 3rd parts, i would like to know how to apply them and know what alternatives Codeigniter has to work with. I'm also interes...
1,184 Views
1 Replies
03-30-2021, 02:30 PM
yuma2020
  Exclamation Thread: Connection to db with certificate
Post: RE: Connection to db with certificate

nilo Wrote: (03-12-2021, 01:01 AM) -- Hi everyone, I developed an application with CI4 in local environment based on MariaDB, now I need to move the application to testing environment and here the co...
3,473 Views
5 Replies
03-15-2021, 07:07 AM
yuma2020
    Thread: how to disable .env
Post: RE: how to disable .env

admin0 Wrote: (03-15-2021, 04:14 AM) -- thank you for the answer, but the need is to disable someone over-riding parameters from the .env file .. this means even if a .env file is present, CI4 should...
3,104 Views
5 Replies
03-15-2021, 06:38 AM
yuma2020
    Thread: Need apply Class in the Helper is posible?
Post: RE: Need apply Class in the Helper is posible?

InsiteFX Wrote: (03-14-2021, 08:52 PM) -- You can invoke all classes within a helper using include or new with a fully qualified namespace name. Take a look at the system/helpers/url_helper.php it u...
1,436 Views
2 Replies
03-15-2021, 06:15 AM
yuma2020
    Thread: Need apply Class in the Helper is posible?
Post: Need apply Class in the Helper is posible?

Hello it is possible to apply classes within helpers without using libraries, I would like to know if there is the possibility to apply this to require functions from classes globally of the module Ap...
1,436 Views
2 Replies
03-14-2021, 01:39 PM
yuma2020
    Thread: ErrorException #1 App\Libraries\RequestLib cannot use MercadoPago\SDK - it is not a t
Post: RE: ErrorException #1 App\Libraries\RequestLib can...

iRedds Wrote: (03-13-2021, 06:24 PM) -- PHP Code: -- use Some\Class  //
1,459 Views
2 Replies
03-13-2021, 08:48 PM
yuma2020
    Thread: ErrorException #1 App\Libraries\RequestLib cannot use MercadoPago\SDK - it is not a t
Post: ErrorException #1 App\Libraries\RequestLib cannot ...

Hi, need define in the codeigniter 4 a last version in the system  installed via composer is update ok. Quote: -- ErrorException #1 App\Libraries\RequestLib cannot use MercadoPago\SDK - it is not ...
1,459 Views
2 Replies
03-13-2021, 04:54 PM
yuma2020
    Thread: how to implement custom exception management in CodeIgniter 4?
Post: RE: how to implement custom exception management i...

InsiteFX Wrote: (02-25-2021, 09:47 PM) -- You can read about Custom Exceptions here. CodeIgniter 4 User Guide - Custom Exceptions (https://codeigniter.com/user_guide/general/errors.html#custom-exc...
4,592 Views
6 Replies
03-12-2021, 11:52 AM
yuma2020
    Thread: Hello eh found this rare variable "config(App::class)" could tell me about this
Post: Hello eh found this rare variable "config(App::cla...

I apologize for questions, it's just that I find it interesting, As you will see I have seen in the configuration of a library of codeigniter and it has caught my attention the same and I remain in th...
936 Views
1 Replies
03-12-2021, 11:24 AM
yuma2020
    Thread: Hi, need definined a service to work to use from helpers functions
Post: RE: Hi, need definined a service to work to use fr...

InsiteFX Wrote: (01-27-2021, 12:12 PM) -- Services allow you to later change the library in one place instead of making the library change in every file that you call that library in. -- It's great,...
4,009 Views
8 Replies
02-25-2021, 07:11 PM
yuma2020
    Thread: how to implement custom exception management in CodeIgniter 4?
Post: how to implement custom exception management in Co...

how to implement custom exception management in CodeIgniter 4? Function in the 200 is working all ok,  PHP Code: -- public function hx2getData($data)     {         if ($data->link_id)         {     ...
4,592 Views
6 Replies
02-25-2021, 07:03 PM
yuma2020
    Thread: spark migrate [MODULE] \ [CLASS] not reconsigned
Post: RE: spark migrate [MODULE] \ [CLASS] not reconsign...

Yes this code is good work in this case php spark migrate --all and add my windows 10 run linux work in the .env this code change database.default.hostname = localhost => database.default.host...
1,850 Views
2 Replies
02-11-2021, 10:09 AM
yuma2020
    Thread: Redefining PATH VIEWS in the CI4 and HMVC to real world
Post: Redefining PATH VIEWS in the CI4 and HMVC to real ...

Hi community, It would be great to know how to resolve this issue, not have to transfer all the data unnecessarily, simply because codeigniter's core function is partially written to operate with App/...
1,374 Views
1 Replies
02-11-2021, 09:53 AM
yuma2020
  Bug Thread: failed to open stream bootstrap.php on line 89
Post: failed to open stream bootstrap.php on line 89

Quote: -- Warning: require_once(\Common.php): failed to open stream: No such file or directory in D:\laragon\www\basicapp\vendor\codeigniter4\framework\system\bootstrap.php on line 89 Fatal error: ...
2,252 Views
2 Replies
02-10-2021, 08:57 AM
yuma2020
    Thread: spark migrate [MODULE] \ [CLASS] not reconsigned
Post: spark migrate [MODULE] \ [CLASS] not reconsigned

Hello community, as you will see I have the following problem, I have defined a class called ProxyWeb where looking for a migration from the cli codeigniter system, but as you will see I only run the ...
1,850 Views
2 Replies
02-08-2021, 02:01 PM
yuma2020
    Thread: Hi, need definined a service to work to use from helpers functions
Post: RE: Hi, need definined a service to work to use fr...

vitnibel Wrote: (01-27-2021, 05:22 AM) -- Hi To call a function of CommonLibrary class from the \App\Libraries namespace in any place of youre code, Helper or Controller or some else Library: ...
4,009 Views
8 Replies
01-27-2021, 08:49 AM
yuma2020
    Thread: Codeigniter 4 not workin PHP 8
Post: RE: Codeigniter 4 not workin PHP 8

John_Betong Wrote: (01-25-2021, 06:44 PM) -- @McGatner, I have a DigitalOcean VPS with Ubuntu 20.04 installed and “sudo apt update && sudo apt upgrade” installed PHP 8.01 much to my surprise! Fort...
13,373 Views
8 Replies
01-26-2021, 11:44 PM
yuma2020
    Thread: Hi, need definined a service to work to use from helpers functions
Post: RE: Hi, need definined a service to work to use fr...

InsiteFX Wrote: (01-26-2021, 09:55 PM) -- You can load any of CodeIgniter 4 libraries in a help by calling there service. Example: PHP Code: -- $request = Services::request(); $uri     = $request-...
4,009 Views
8 Replies
01-26-2021, 09:59 PM
yuma2020

Theme © iAndrew 2016 - Forum software by © MyBB