Welcome Guest, Not a member yet? Register   Sign In
Call function from "views"
#4

[eluser]Mareshal[/eluser]
I want simply to use that function in a "views" file without a form. I want to pass some post variables to the controller form view file without putting them into url or sessions.

P.S. Function calling inside that class is easy. But how to call it in another controller/class or in another model? I know I can call a model inside a controller like: $this->load->model('mod'); $this->mod->my_function(); . Does this apply in the other way in the model ? $this->load->controller('controller_name') . Or I have to write the function twice ?

Edit: Or I didn't understand fully the concept of MVC...


Messages In This Thread
Call function from "views" - by El Forum - 06-18-2009, 07:14 PM
Call function from "views" - by El Forum - 06-18-2009, 07:23 PM
Call function from "views" - by El Forum - 06-18-2009, 07:24 PM
Call function from "views" - by El Forum - 06-19-2009, 02:14 AM
Call function from "views" - by El Forum - 06-19-2009, 02:17 AM
Call function from "views" - by El Forum - 06-19-2009, 02:19 AM
Call function from "views" - by El Forum - 06-19-2009, 02:23 AM
Call function from "views" - by El Forum - 06-19-2009, 02:25 AM
Call function from "views" - by El Forum - 06-19-2009, 02:35 AM
Call function from "views" - by El Forum - 06-19-2009, 02:44 AM
Call function from "views" - by El Forum - 06-19-2009, 02:47 AM
Call function from "views" - by El Forum - 06-19-2009, 02:54 AM
Call function from "views" - by El Forum - 06-19-2009, 02:56 AM
Call function from "views" - by El Forum - 06-19-2009, 03:42 AM
Call function from "views" - by El Forum - 06-19-2009, 04:09 AM
Call function from "views" - by El Forum - 06-19-2009, 05:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB