GithubHelp home page GithubHelp logo

cake-scheduler's People

Contributors

dilab avatar stonfute avatar watchowl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cake-scheduler's Issues

expose loadCakeBootstrapFile function publicly

Having this function available makes is very convenient to have access to Cake parts imported with bootstrap. In my case access to Configure::read to determinate if a scheduled task should be enabled or not.

Right now I need to search for bootstrap within the tasks.php file, use case would be as follows:

<?php
$schedule = new \WatchOwl\CakeScheduler\Schedule\CakeSchedule();

$schedule->loadCakeBootstrapFile();

if (\Cake\Core\Configure::read('PeriodicTasks.digestEmails'))
{
	$schedule
	    ->shell('notify sendGoalReminders')
	    ->daily();;
}
return $schedule;
?>

Plugin not found

I'm using CakePhp 3.5.6 and installed this plugin with Composer.
I have added 'Plugin::load('Watchowl/CakeScheduler');' to my config/bootstrap.php file.

I get this error:

Error: The application is trying to load a file from the Watchowl/CakeScheduler plugin.
Make sure your plugin Watchowl/CakeScheduler is in the /var/www/intranet/cakephp/plugins/ directory and was loaded.

I have found the plugin in the 'vendor' folder, not 'plugins', where CakePhp is looking for it.

Commands Not Work

I have a OS windows, and I trying to use from console the comand

bin\cake cake_sheduler run shedule:run

Captura

I have my Task.php in directory shedule/ in the root of the proyect:
image

if only write in the console:

bin\cake cake_sheduler 

work

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.