SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/admin/cron_job_manual_run.php

  1. <?php
  2. use Sprout\Helpers\Csrf;
  3. use Sprout\Helpers\Form;
  4. ?>
  5.  
  6.  
  7. <div class="info">
  8. This tool will manually run a cron job manually from within a browser request.
  9. Note that as they're running in a browser, the jobs may run out of ram or execution time.
  10. </div>
  11.  
  12.  
  13. <form action="admin/call/cron_job/manualRunAction" method="post">
  14. <?= Csrf::token(); ?>
  15.  
  16. <?php
  17. Form::nextFieldDetails('Job', true);
  18. echo Form::dropdown('job', [], $jobs);
  19. ?>
  20.  
  21.  
  22. <div class="action-log">
  23. <button class="button" type="submit">Run cron job</button>
  24. </div>
  25. </form>