Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Working with Configuration Files
Post: RE: Working with Configuration Files

That's why you push env file to repo as placeholder, without real secret info filled in, just for main reference and use .env in local through .gitignore, with all info filled in. I can't understa...
6,006 Views
9 Replies
03-07-2024, 11:09 AM
davis.lasis
    Thread: Codeigniter 4 - How to connect to two or multiple databases
Post: RE: Codeigniter 4 - How to connect to two or multi...

https://codeigniter.com/user_guide/database/configuration.html (https://codeigniter.com/user_guide/database/configuration.html) 1. make new DB config in App/Config/Database.php PHP Code: --
510 Views
3 Replies
01-28-2024, 07:37 AM
davis.lasis
    Thread: Migration Foreign key problem
Post: RE: Migration Foreign key problem

GruppoDpiTable id_gruppo and id_dpi must have 'unsigned' => true, PHP Code: -- class GruppoDpiTable extends Migration {     public function up()     {         $this->forge->addField([    ...
268 Views
1 Replies
01-17-2024, 11:53 AM
davis.lasis
    Thread: Error view exception is not showing the source code in PHP8.3 - Codeigniter v4.4.4
Post: RE: Error view exception is not showing the source...

Same here. CodeIgniter 4.4.4 PHP 8.3.1 ErrorException has empty Although i have no issues with dev or prod mode. https://ibb.co/fnPD6Kp Not sure whats about attaching images, bet there ...
446 Views
6 Replies
01-05-2024, 01:42 AM
davis.lasis
  Smile Thread: SMTP EMail sending issue
Post: RE: SMTP EMail sending issue

cycyx Wrote: (12-08-2023, 08:52 AM) -- ffs, haha. In CI3 the smtp host was ssl://mail.domain.com, but in CI4 it needs to be mail.domain.com That was an embarrassingly easy fix...   Thanks for savin...
308 Views
4 Replies
12-08-2023, 12:12 PM
davis.lasis
    Thread: How to link to Ci modules
Post: RE: How to link to Ci modules

1. Modules folder is `modules` or `Modules`? 2. Modules folder is located next to `app` folder or inside `app` folder? app/Config/Autoload.php if next lowercase: PHP Code: -- 'Modules\Core' => ROOTP...
575 Views
5 Replies
10-16-2023, 07:13 AM
davis.lasis
    Thread: CI 4.4.0 modules shared services not working
Post: RE: CI 4.4.0 modules shared services not working

Issue solved! As i told previously Registrar failed to laod model which is located in module which is not loaded at that time. Services does work fine. I had to remove module autoloading modificati...
931 Views
8 Replies
08-31-2023, 06:48 AM
davis.lasis
    Thread: CI 4.4.0 modules shared services not working
Post: RE: CI 4.4.0 modules shared services not working

kenjis Wrote: (08-31-2023, 12:36 AM) -- I assumed your modules are like these: Code: -- Modules/Foo/ ... Module Foo Modules/Bar/ ... Module Bar -- But if you also use `Modules/` as one modul...
931 Views
8 Replies
08-31-2023, 04:06 AM
davis.lasis
    Thread: CI 4.4.0 modules shared services not working
Post: RE: CI 4.4.0 modules shared services not working

kenjis Wrote: (08-30-2023, 02:26 PM) -- You customized the autoloading, so it seems there is something wrong. and the line "'Modules'    => ROOTPATH . 'Modules', // my custom modules" in $psr4 shoul...
931 Views
8 Replies
08-30-2023, 10:45 PM
davis.lasis
    Thread: CI 4.4.0 modules shared services not working
Post: RE: CI 4.4.0 modules shared services not working

ozornick Wrote: (08-30-2023, 04:27 AM) -- In Services: ... return static::getSharedInstance('Alert'); ... Remove ?? new Alert() service('Alert') to lowercase service('alert') -- Did you repl...
931 Views
8 Replies
08-30-2023, 04:41 AM
davis.lasis
    Thread: CI 4.4.0 modules shared services not working
Post: CI 4.4.0 modules shared services not working

Hi guys, Long story short: I have multiple modules. Base module has Alert class which collects all system messages while loading through Controller, Models, logic etc. That is why i need shared ins...
931 Views
8 Replies
08-30-2023, 02:39 AM
davis.lasis
    Thread: optional parameters in route definition
Post: RE: optional parameters in route definition

I would manage like this routes.php PHP Code: -- $routes->get('docs/(:any)/(:any)', 'DocsController::show/$1/$2'); -- Controller method PHP Code: -- public function show(string $version, stri...
674 Views
3 Replies
08-29-2023, 10:27 AM
davis.lasis
    Thread: DataException: There is no data to update after using save()
Post: RE: DataException: There is no data to update afte...

I hate this exception. In most of cases i just want to grab data, fill entity and update the DB row. From UX point of view - really often users just click around form fields, actually changes noth...
2,354 Views
10 Replies
06-01-2023, 01:10 PM
davis.lasis
    Thread: The Inequitable Reality of Being a Programmer: Exploring the Unfair Advantage It isn’
Post: RE: The Inequitable Reality of Being a Programmer:...

I read it. I liked it. Thanks
812 Views
2 Replies
03-22-2023, 01:40 PM
davis.lasis
    Thread: Very slow if $data is big
Post: RE: Very slow if $data is big

Huge bottle neck is DateTime class auto convertion - If you are using models with timestamps (updated_at and created_at) PHP Code: -- protected $useTimestamps = true; -- - if you are pulli...
5,570 Views
15 Replies
01-20-2023, 02:46 AM
davis.lasis
    Thread: Where place render page code?
Post: RE: Where place render page code?

First of all, you should read CI manual / documentation and from that understand what you can do / make hand-in-hand with what you need to achieve. This forum is not meant for teaching you understand...
540 Views
4 Replies
11-17-2022, 05:18 AM
davis.lasis
    Thread: Table short name and queries
Post: RE: Table short name and queries

As far as i can see (without testing my-self), you have a syntax error in your example code. You have `n` not `news` and order_by must have those tables in-front of table columns as well PHP Code: ...
3,124 Views
12 Replies
11-09-2022, 12:30 AM
davis.lasis
    Thread: Time class big bug
Post: RE: Time class big bug

Yes Bug must be fixed, even if the fix makes breaking changes. Others, all affected will must adapt to that.
1,631 Views
7 Replies
10-30-2022, 08:17 AM
davis.lasis
    Thread: Optimize db query
Post: RE: Optimize db query

Hi, Not sure what much to optimize here $this->db - is basically a service, so real DB connection is called only once. Many queries will not make multiple DB connections I can't see unions and joins...
869 Views
2 Replies
10-20-2022, 01:16 PM
davis.lasis
    Thread: under maintenance
Post: RE: under maintenance

ikesela Wrote: (10-06-2022, 11:38 PM) -- use existing package, very convenience:  arashsaffari/maintenancemode just modify the maintenancemode  controller to choose which to set in maintenance ...
2,425 Views
8 Replies
10-07-2022, 01:11 AM
davis.lasis

Theme © iAndrew 2016 - Forum software by © MyBB