Welcome Guest, Not a member yet? Register   Sign In
Search Results
    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...
3,134 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...
256 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: ...
839 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.
697 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...
359 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 ...
709 Views
8 Replies
10-07-2022, 01:11 AM
davis.lasis
    Thread: under maintenance
Post: RE: under maintenance

Problem: i have multiple routes files I have created app with multiple modules, therefore each module has it's own routes file I use filter for maintenance, but novadays we must echo the response ...
709 Views
8 Replies
10-06-2022, 10:49 PM
davis.lasis
    Thread: How to get data after saving the model
Post: RE: How to get data after saving the model

Seva Wrote: (01-27-2022, 07:41 AM) -- Created_at, updated_at this is what i want to get. With the use of entity these fields are - null. I see only the data that I directly transfer in the array ...
1,521 Views
6 Replies
01-28-2022, 10:53 AM
davis.lasis
    Thread: How to get data after saving the model
Post: RE: How to get data after saving the model

You should read about entities: https://codeigniter4.github.io/CodeIgniter4/models/entities.html (https://codeigniter4.github.io/CodeIgniter4/models/entities.html) database table users: id      ...
1,521 Views
6 Replies
01-27-2022, 05:15 AM
davis.lasis
    Thread: Failed to decode session object. Session has been destroyed
Post: RE: Failed to decode session object. Session has b...

I know this is more then 2 years old, but still though https://forum.codeigniter.com/thread-81111-post-393307.html (https://forum.codeigniter.com/thread-81111-post-393307.html) Use `mediumblob` ...
8,722 Views
3 Replies
01-25-2022, 07:12 AM
davis.lasis
    Thread: CI 4.1.8 session issues
Post: RE: CI 4.1.8 session issues

3 days later... Cause of the problem was that CI session could not be written into database. Simply session was too big, therefore on the next reload it could not be read. https://codeigniter.c...
1,323 Views
1 Replies
01-25-2022, 07:10 AM
davis.lasis
    Thread: can someone help me change function to run codeigniter 4 ?
Post: RE: can someone help me change function to run c...

Glad that you figured that out, but that's how i would write it PHP Code: -- public function vlDemos(int $parent_id = 429){   return $this->db->table('categories')               ->select('id, ...
630 Views
1 Replies
01-25-2022, 05:06 AM
davis.lasis
    Thread: CI 4.1.8 session issues
Post: CI 4.1.8 session issues

Hi guys, I have weird issue with CI4 session. Every 2nd page reload throws ErrorException - session_start(): Failed to decode session object. Session has been destroyed - i did upgrade to CI 4....
1,323 Views
1 Replies
01-25-2022, 04:48 AM
davis.lasis
    Thread: CodeIgniter4-translations
Post: RE: CodeIgniter4-translations

Thanks, @"kenjis" for an update.  I will jump back into LV translations till end of this year. Cheers
20,073 Views
19 Replies
12-06-2021, 11:59 PM
davis.lasis
    Thread: Make link generator
Post: RE: Make link generator

PHP Code: -- Maybe this will help you? # CONTROLLER public function linkGenerate() {     $urls = [];         $results = $this->confirmModel->select('TRACKID')->findAll();         foreach ...
4,144 Views
8 Replies
12-02-2021, 03:11 AM
davis.lasis
    Thread: Ci4 system error localization not working
Post: RE: Ci4 system error localization not working

MrWhite Wrote: (01-06-2021, 10:48 AM) -- davis.lasis Wrote: (01-06-2021, 09:55 AM) -- You need Codeigniter global language translations. It has DE language as well.  Add this in your composer or do...
3,823 Views
10 Replies
10-14-2021, 03:51 AM
davis.lasis
    Thread: How to send an email with content from a View Ci4
Post: RE: How to send an email with content from a View ...

Read this documentation, if the issue still is not resolved, then send in error message https://codeigniter4.github.io/CodeIgniter4/libraries/email.html (https://codeigniter4.github.io/CodeIgniter4/l...
3,664 Views
6 Replies
09-27-2021, 03:57 AM
davis.lasis
    Thread: Can CI accept a variable as the full join syntax? [SOLVED]
Post: RE: Can CI accept a variable as the full join synt...

PHP Code: -- $joinData = [             0 => [                 'table' => 'table AS k',                 'condition' => 'k.something = j.anotherthing',                 'type' => 'left',           ...
962 Views
2 Replies
07-30-2021, 03:54 AM
davis.lasis
    Thread: Model files in CI4
Post: RE: Model files in CI4

Your files and code should look something like this: Entities/ComuniEntity.php PHP Code: --
7,097 Views
21 Replies
07-13-2021, 03:29 AM
davis.lasis
    Thread: How to make and include different routing files inside one route file?
Post: RE: How to make and include different routing file...

I use autoload config for each module loadup and automatic routes You must have Config/Routes.php and Config/Services.php for each module Modules structure: attached image app/Config/Autoload...
2,319 Views
4 Replies
04-18-2021, 09:50 AM
davis.lasis

Theme © iAndrew 2016 - Forum software by © MyBB