Welcome Guest, Not a member yet? Register   Sign In
Issue with undefined function
#1

I am having a problem calling a function. There seems to be two kinds of modules in my project. A) module that has functions that extend ci_model . These functions allow you to use this->. Typical CI stuff. B) module that is just straight php code. These functions don't extend the ci_model. 

I have a need to call a function in a A module from a B module. This won't work and I get an undefined function error when I run the call. What must I add to module B to tell it to look in Module A for the missing function?

I hope I explained this ok?
proof that an old dog can learn new tricks
Reply
#2

You can implement your B module as library, put it in application/folder and load it in your A model, that extends CI_model
Reply
#3

(This post was last modified: 06-29-2018, 03:30 AM by richb201.)

I think the original code was written to use php mail. Is there anything I need to do to enable php mail to work in my CI app?
proof that an old dog can learn new tricks
Reply
#4

CI has email library, you can check it documentation
Reply




Theme © iAndrew 2016 - Forum software by © MyBB