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

(This post was last modified: 10-27-2020, 02:36 AM by shashi.)

(10-26-2020, 02:28 PM)includebeer Wrote:
PHP Code:
<?= view_cell('\App\Libraries\Product::recentPosts', ['4' '7']) ?>

You have no "recentPosts" function in you libraries. Adjust this line to call the right function.

Also, unless it's to render a block of html to display in your view, you shouldn't call a library directly from your view.


sorry sir , my bad
by mistakenly putted that : have updated properly


PHP Code:
<?= view_cell('\App\Libraries\Product::Check_operation', ['4' '7']) ?>

 still not getting

don't want to render --  just need to call above method  , then how to do .
as its getting difficult for me, to understand

thanks
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-26-2020, 09:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB