[eluser]omed habib[/eluser]
I have a function, addanewclient, within a controller as such:
Code:
class Home extends Controller {
function Home()
{
parent::Controller();
}
function addanewclient() {
$this->load->view('homepage');
}
}
My question is this: I have another controller called 'Clients' and within it I have a function that is IDENTICAL to the 'addanewclient' from the 'Home' controller. Is there a way to call 'addanewclient' from Home while I am stll within the 'Clients' controller?
For example:
Code:
class Clients extends Controller {
function Clients()
{
parent::Controller();
}
function addanewclient() {
// some kind of code goes here that
// calls the other function within the other controller
}
}
Thanks!!