Reach Class method locally |
[eluser]asylmottaket[/eluser]
Is that even possible? It's for use with CRON execution.
[eluser]TheFuzzy0ne[/eluser]
http://www.larrykagan.com/blog/view/Code...mmand-Line. (This page doesn't display correctly in Google's Chrome Web browser.)
[eluser]asylmottaket[/eluser]
The solution works nice, but I seems to have some issues when the class method uses the email and db class. mail($recipient, $subject, $mail_body, $header); ..worked fine, but not when using the CI email class. Database queries didnt fire either. What am I overlooking?
[eluser]TheFuzzy0ne[/eluser]
Perhaps they use super globals that are specified only when it's run as a server. I'd suggest doing a: Code: echo '<pre>',print_r(),'</pre>'; in each of your apps, and seeing what's missing.
[eluser]asylmottaket[/eluser]
But isnt it quite strange anyways? The only thing I need for the email/db-stuff to work, is for the CRON to just visit the spesified URL. /newsletter/process_queue |
Welcome Guest, Not a member yet? Register Sign In |