Skip to content

How view file get the variable from controller?

I’m a student and new to PHP. After searching a lot i still don’t understand how the view file got the variable from controller. I got the function view() from Controller.php class. And i got a HomeController.php Extends the Controller This is inn my calc.php view file. As you can see that the cal…

how to save binary type in postgresql

this is php code to save binary data (image,3dmodeling) To store 3d modeling and textures, it was a DB created to manage them in the first place. When sending and receiving a file, the file is not converted . It seems that I have a wrong understanding of bytea that this method is not working properly now, but…

How to use class named “Case”?

I have a model class named Case in namespace App. When I try to use it I get: syntax error, unexpected ‘Case’ (T_CASE), expecting identifier (T_STRING) or ‘{‘ Source code, error is on the line with use AppCase: How to escape class name in use declaration? I’m using PHP 7.4.4 and …