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

Hiya all,
I have worked with codegniter previously and just came back to it now and I guess im a bit rusty.

I can't figure out the following problem:
What is the best solution to call functions from a view (lets say I want to move to a new page from page X, which is a PHP page that uses SQL queries that I have on controller X)? 

From my homepage I want to move to the 'Library' page (which uses a custom SQL script).
When I use href it won't load the script.
The controller function that calls for the model function with the SQL query is there but it wont load (also with  [font=Menlo, Monaco,]window.location.href="<?php echo site_url ) [/font]

So how do I do it?


Messages In This Thread
HELP | calling functions from controller - by Kizumaru - 04-11-2021, 10:33 AM

Theme © iAndrew 2016 - Forum software by © MyBB