CodeIgniter Forums
Problem with model - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31)
+--- Thread: Problem with model (/showthread.php?tid=71841)



Problem with model - titounnes - 09-30-2018

I tried to make a fire with a model like this
PHP Code:
function getByUsername($username)
{
return 
$this
->select('id')
->
where('username',$username)
->
asObject()
->
first(); 

Running normal on localhost (linuxmint, php7.2), but in vps (centos, php7.1) error and display message 
"whoops! we seem to have hit a snag. Please try again later"
can someone explain this?


RE: Problem with model - donpwinston - 09-30-2018

set your environment to development and you won't get the Whoops page. You'll get an error message.


RE: Problem with model - titounnes - 09-30-2018

(09-30-2018, 06:09 AM)donpwinston Wrote: set your environment to development and you won't get the Whoops page. You'll get an error message.

Thanks. 
Solved. 
This App need php-mbstring.