Welcome Guest, Not a member yet? Register   Sign In
Helper - Call to undefined function
#6

(This post was last modified: 02-28-2021, 01:14 PM by Corsari.)

(02-28-2021, 12:38 PM)includebeer Wrote: You need to load the file in your controller before you can use its functions in a view

the "Call to undefined function" problem is solved

but ...

for the above code,

Code:
$uriSegment = $uri->getPath();

used inside the helper returns always "" , an empty string ( tested with dd() )

while used inside the view, it actually returns the path at right of the site_url
Reply


Messages In This Thread
Helper - Call to undefined function - by sjender - 10-16-2020, 03:09 AM
RE: Helper - Call to undefined function - by Corsari - 02-28-2021, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB