Welcome Guest, Not a member yet? Register   Sign In
CI4 libaries function call in VIEW
#7

(10-27-2020, 02:47 PM)includebeer Wrote: I have an error in my example, remove the ] at the end:

PHP Code:
<?= view_cell('\App\Libraries\Product::Check_operation''final=4, operation=7'?>

Sorry sir,
my bad again

but still

getting below message


ArgumentCountError

Too few arguments to function App\Libraries\Product::__construct(), 0 passed in H:\xampp749\htdocs\aks\system\View\Cell.php on line 123 and exactly 2 expected

after reading  

Quote:The only restriction is that the class can not have any constructor parameters. This is intended to be used within views, and is a great aid to modularizing your code.

is that what error ???
Reply


Messages In This Thread
CI4 libaries function call in VIEW - by shashi - 10-26-2020, 06:15 AM
RE: CI4 libaries function call in VIEW - by shashi - 10-27-2020, 11:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB