Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Shield's autoloading performance
Post: RE: Shield's autoloading performance

As the Shield is not final yet, it should be considered, if Auth library should be autoloaded and if Shield should requesting database, if Settings library is unused (probably not using Settings libra...
215 Views
4 Replies
09-29-2023, 02:22 AM
Muzikant
    Thread: Shield's autoloading performance
Post: RE: Shield's autoloading performance

Thank you for your reply. I am convinced now, it is rather the conceptual question than the performance one, but I am still prefer load it by myself, not automatically. With Settings library database...
215 Views
4 Replies
09-26-2023, 02:59 AM
Muzikant
    Thread: Shield's autoloading performance
Post: Shield's autoloading performance

I am starting with Shield. After successful installation (Composer and Spark) I realized, that Auth helper (https://codeigniter4.github.io/shield/authentication/#auth-helper)is autoloaded everywhere....
215 Views
4 Replies
09-25-2023, 11:57 PM
Muzikant
    Thread: CodeIgniter v4.3.8 and v4.4.0 Released!
Post: RE: CodeIgniter v4.3.8 and v4.4.0 Released!

Thank you Loonie for hot realoading support! I was just thinking about how I could implement it by myself and now I have it with almost no configuration. It is really helping me with frontend, but I a...
2,914 Views
35 Replies
09-01-2023, 07:36 AM
Muzikant
    Thread: Can't create a working CI4 project after 4.3.8 and 4.4
Post: RE: Can't create a working CI4 project after 4.3.8...

I had the same problem. At the beginning, create a backup of your web application folder (root)! Now work with your development folder and run Composer update on it. On your composer.json file you s...
792 Views
5 Replies
09-01-2023, 04:23 AM
Muzikant
  Question Thread: Where to put data logic not related with database?
Post: Where to put data logic not related with database?

I am retrieving data from files (with library), then parsing it (with ?) and then saving parsed data into database (with model). I want this three steps separated. Where should I put parser? Models...
333 Views
1 Replies
07-12-2023, 04:17 AM
Muzikant
    Thread: Update and select a row in one database request
Post: RE: Update and select a row in one database reques...

Mni.day Wrote: (06-20-2023, 06:33 PM) -- I'm sure the selection by primary key will take you about 0 ms. And you don't have to worry about two request -- It is two different things. There is a data...
691 Views
7 Replies
06-22-2023, 03:00 AM
Muzikant
    Thread: Update and select a row in one database request
Post: RE: Update and select a row in one database reques...

JustJohnQ Wrote: (06-18-2023, 03:52 AM) -- Did you run benchmarks? -- Not yet. But one minor advantage is saved bandwidth between servers. Mni.day Wrote: (06-18-2023, 05:56 PM) -- You run this ...
691 Views
7 Replies
06-20-2023, 05:58 AM
Muzikant
    Thread: Update and select a row in one database request
Post: RE: Update and select a row in one database reques...

So far I achieved it by MySQL procedures. At first I needed to create a procedure on MySQL server. I ran this query on the database server: Code: -- DELIMITER // CREATE PROCEDURE add_points(IN...
691 Views
7 Replies
06-17-2023, 03:09 AM
Muzikant
  Question Thread: Update and select a row in one database request
Post: Update and select a row in one database request

Hi. I have a MySQL database table players with columns id, name and points. I want to update points by incrementing them and select the affected row in one database request. Example: Code: -- UPD...
691 Views
7 Replies
06-16-2023, 09:38 AM
Muzikant
    Thread: Upsert
Post: RE: Upsert

This MySQL's InnoDB behaviour is because of concurrency. It allows to use auto incrementing with multiple threads at once, which should have positive impact on performance, because auto incrementing d...
2,869 Views
3 Replies
06-14-2023, 02:05 AM
Muzikant
    Thread: Can we process multiple urls at once in curlrequest
Post: RE: Can we process multiple urls at once in curlre...

You can download files parallelly directly from PHP CURL with multi CURL. If I can ask you, what type of project do you making?
301 Views
2 Replies
06-13-2023, 02:36 AM
Muzikant
    Thread: Surprised to see codeigniter 3.x running successfull with PHP 8.0 as well.
Post: RE: Surprised to see codeigniter 3.x running succe...

kenjis Wrote: (06-10-2023, 04:10 PM) -- CI3 does not support PHP 8.2 yet. -- Is there an estimation when CodeIgniter 3 will support PHP 8.2 and above?
26,785 Views
15 Replies
06-13-2023, 02:01 AM
Muzikant
    Thread: Where to put message file in codeigniter4?
Post: RE: Where to put message file in codeigniter4?

Hi. For simple messages like this you can use config file dedicated to messages. Create: App/Config/CustomMessages.php PHP Code: --
383 Views
5 Replies
06-05-2023, 12:24 AM
Muzikant
    Thread: Upsert
Post: RE: Upsert

Hi. The issue with ID's jumping is on MySQL with default InnoDB tables. When upserting a lot of data with duplicate entries, there is a possibility to reach the maximum unsigned INT value (4_294_967_2...
2,869 Views
3 Replies
05-31-2023, 01:32 AM
Muzikant
    Thread: How to properly disable session cookies (EU cookies law, GDPR)
Post: RE: How to properly disable session cookies (EU co...

As nobody reacted, I presumed there is no common solution. I dived into a problem and realized what was setting the session cookie. On the page I have a contact form, but this was not the problem by i...
443 Views
3 Replies
05-05-2023, 11:55 PM
Muzikant
  Question Thread: How to properly disable session cookies (EU cookies law, GDPR)
Post: How to properly disable session cookies (EU cookie...

I made a really simple page and I want to disable session cookies ("ci_session"). Unfortunately, my country :heart: is a part of the European Union :( and if I set any cookies, I am forced to inform u...
443 Views
3 Replies
05-05-2023, 03:29 AM
Muzikant
    Thread: Redirecting does not remove anchor from the URL
Post: RE: Redirecting does not remove anchor from the UR...

kenjis Wrote: (04-23-2023, 05:30 PM) -- You say it should not. But why should not? At least major browsers do so. -- There is a small chance, or at least not certain, that in the new location will b...
1,203 Views
9 Replies
04-24-2023, 07:59 AM
Muzikant
    Thread: Redirecting does not remove anchor from the URL
Post: RE: Redirecting does not remove anchor from the UR...

kenjis Wrote: (04-21-2023, 05:12 AM) -- This is not a bug. The browser keeps the fragment. So we can't fix. -- What about refreshing by default? If it is not a good way to solve it, then your solu...
1,203 Views
9 Replies
04-23-2023, 08:09 AM
Muzikant
    Thread: Redirecting does not remove anchor from the URL
Post: RE: Redirecting does not remove anchor from the UR...

kenjis Wrote: (04-19-2023, 04:37 AM) -- Workarount: return redirect()->to('to', null, 'refresh'); -- Thank you, it works. I hope there will be a bug fix in the upcoming versions if it will be poss...
1,203 Views
9 Replies
04-20-2023, 01:04 AM
Muzikant

Theme © iAndrew 2016 - Forum software by © MyBB