]> dev.renevier.net Git - syj.git/blobdiff - application/crons/pending.php
call cron scripts with php cli
[syj.git] / application / crons / pending.php
diff --git a/application/crons/pending.php b/application/crons/pending.php
new file mode 100644 (file)
index 0000000..fc6d1ab
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+$mapper = new Syj_Model_PendingMapper();
+foreach ($mapper->fetchAll() as $pending) {
+    $pending->notify();
+}