Welcome Guest, Not a member yet? Register   Sign In
HELP | calling functions from controller
#2

You are mixing everything. If you want to go to another page, you won't load a function from the view. You will click on a link (href) that will take you to that other page. Everything starts from the controller. It will load what it needs (models, libraries, helpers...), then load a view. If you can't load the page by entering its URL in the browser address bar, then something is wrong with your controller or the routes configuration. Do you have any error message? If you have 404, your controller or route config is wrong. If you have 500, your code is crashing. Check the log files for more details about the crash.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
RE: HELP | calling functions from controller - by includebeer - 04-15-2021, 04:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB