CodeIgniter Forums
CodeIgniter v4.0.4 released - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: News & Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=2)
+--- Thread: CodeIgniter v4.0.4 released (/showthread.php?tid=77054)

Pages: 1 2 3 4 5


fail in entity->fill($data) - intvictor - 09-05-2020

Fail when entity->fill($data) from Array

CodeIgniter v4.0.4

Entity fill



$data = $this->request->getPost();

$user = new App\Entities\User();

$user->fill($data);







Original CodeIgniter v4.0.4

vendor/codeigniter4/framework/system/Entity.php

Line: 118



/**

* Takes an array of key/value pairs and sets them as

* class properties, using any `setCamelCasedProperty()` methods

* that may or may not exist.

*

* @param array $data

*

* @return \CodeIgniter\Entity

*/

public function fill(array $data = null)

{

if (! is_array($data))

{

return $this;

}



foreach ($data as $key => $value)

{

$this->$key = $value;

}



return $this;

}





------------

Es:

Estoy muy agradecido, muy contento de trabajar con CI desde hace mucho tiempo, esto es un trabajo fantastico. Gracias.

En:

I am very grateful, very happy to work with CI for a long time, this is a fantastic job. Thank you


RE: CodeIgniter v4.0.4 released - nc03061981 - 09-28-2020

Thanks CI Teams
Only Use CI4 for my works


RE: CodeIgniter v4.0.4 released - nhantam - 11-14-2020

Great work
Thanks CI teams


RE: CodeIgniter v4.0.4 released - decorarcongusto - 11-16-2020

Amazing work team!

Cheers


RE: CodeIgniter v4.0.4 released - ouiouioui - 04-11-2021

Thanks for your work! Big thanks!


RE: CodeIgniter v4.0.4 released - real_divine - 04-16-2021

Good to hear this.

Please, can anyone guide me how to update my AppĀ  to be compatible with PHP 7 and above. It is presently on PHP 5.6

Thanks so much.


RE: CodeIgniter v4.0.4 released - parvez1487 - 05-22-2021

any docs for migration from CI 3 to CI 4.?


RE: CodeIgniter v4.0.4 released - includebeer - 05-22-2021

http://codeigniter.com/user_guide/installation/upgrade_4xx.html


RE: CodeIgniter v4.0.4 released - rameshbabu772 - 07-15-2021

Great work CI Team !! Keep helping the community with Amazing work!!


RE: CodeIgniter v4.0.4 released - Newforce - 11-16-2021

I am familiar with WordPress and Laravel, but when it comes to CodeIgniter, I start behaving like a newbie. I might get accustomed to it within a few days.