Welcome Guest, Not a member yet? Register   Sign In
Reach Class method locally
#1

[eluser]asylmottaket[/eluser]
Is that even possible?

It's for use with CRON execution.
#2

[eluser]TheFuzzy0ne[/eluser]
http://www.larrykagan.com/blog/view/Code...mmand-Line. (This page doesn't display correctly in Google's Chrome Web browser.)
#3

[eluser]asylmottaket[/eluser]
Sweet. Thanks!
#4

[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?
#5

[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.
#6

[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




Theme © iAndrew 2016 - Forum software by © MyBB