Welcome Guest, Not a member yet? Register   Sign In
v4.3.1 released
#1

Hi all! New patch version of the framework is released. 
Reported bugs are fixed. Thank you for reporting.

Important: if you use Composer, CodeIgniter v4.3 requires Composer 2.0.14 or later.

All you need to know is in the Upgrading Guide.

ChangeLog: https://www.codeigniter.com/user_guide/c...4.3.1.html
Upgrading Guide: https://www.codeigniter.com/user_guide/i...e_431.html
Reply
#2

Thanks CI Team
I need file composer.json for update from v4.3.0 to v4.3.1
Thanks

Learning CI4 from my works, from errors and how to fix bugs in the community

Love CI & Thanks CI Teams

Reply
#3

@nc03061981 The composer.json in your project root folder is yours.
You can edit it as you like.

If you install CI appstarter, the framework version is set to ^4.0, which means 4.x.x but not 5.0.
If you run "composer update", you will get the latest version.

Code:
    "require": {
        "php": "^7.4 || ^8.0",
        "codeigniter4/framework": "^4.0"
    },

If you want to fix the version, edit like this:
Code:
    "require": {
        "php": "^7.4 || ^8.0",
        "codeigniter4/framework": "4.3.1"
    },
Reply
#4

Thanks @kenjis very much
I success upgrade to v4.3.1 with your guide

Learning CI4 from my works, from errors and how to fix bugs in the community

Love CI & Thanks CI Teams

Reply
#5

Thanks to @kenjis and the CodeIgniter Development good job.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#6

I'm very grateful to @kenjis .
And Thanks to CI4 Team.

I ask @kenjis .
When will your website in 'Zenn' be updated?
I always frefer to 'Codeigniter 4 最速マスター'.

Looking forward to your update.
I’ll be rooting for you.
Reply
#7

@oyama-pai I probably don't update in Zenn.
Please see my blog (in Japanese) http://blog.a-way-out.net/blog/tags/codeigniter4/
Reply
#8

I don't know if this is the right place to report it, however, after upgrading to version 4.3.1 I noticed that in all my forms this kind of situation doesn't work anymore where I show the error under each input, if I do the submit of the form which should show errors on the required fields for example, the result is that nothing is shown:

PHP Code:
if ($validation->hasError('username')) {
    echo $validation->getError('username');

Reply
#9

@chronic See https://codeigniter.com/user_guide/insta...ion-errors
It is a bug fix.

Now Validation service returns errors only after a validation is run.
Please update your code.
E.g., https://github.com/kenjis/ci4-validation.../form2.php
Reply
#10

(This post was last modified: 01-22-2023, 05:00 AM by chronic.)

(01-21-2023, 05:34 PM)kenjis Wrote: @chronic See https://codeigniter.com/user_guide/insta...ion-errors
It is a bug fix.

Now Validation service returns errors only after a validation is run.
Please update your code.
E.g., https://github.com/kenjis/ci4-validation.../form2.php

Thanks kenjis, but for me doesn't work this:

PHP Code:
<?= validation_show_error('email'?>

I had to do like this:

PHP Code:
if (isset($errors['email']))
{
      echo $errors['email'];



Also I saw that this is left in the documentation. Is it because it hasn't been fixed yet or because it can be used in other situations?
https://codeigniter.com/user_guide/libra...ror-exists

However this thing will involve me a lot of work on all the forms of all the sites that I have created, because I always used the error display in this way.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB