Welcome Guest, Not a member yet? Register   Sign In
Run another function in controller class - Background process
#1

[eluser]cinewbie81[/eluser]
Hi all,

In my "Main" Controller index function, i want to call the index() function from "SendSMS" controller class. How can i do it ?
I know it can be done using redirect("SendSMS") statement, but I don't want it to be this way. Instead, i want the SendSms index() function to be running as background process(using the '&' symbol). How can i do it ? Anyone ??

Thanks.

Code:
<?php

class Main extends Controller {
    
    function index()
    {
        // I want to run mybackground_function() here from Runbackground controller
    }
}
?>


Code:
<?php
class SendSMS extends Controller {
    
    function index()
    {
        // sending thousands of SMS here
    }
}
?>


Messages In This Thread
Run another function in controller class - Background process - by El Forum - 12-06-2007, 11:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB