this is cli-bootstrap.php
<?php
/**
error_reporting(E_ALL);
set_time_limit(0);
/**
- Read the configuration
*/
$config = include DIR . "/../app/config/config.php";
$loader = new Phalcon\Loader();
/**
- Include the loader
*/
require DIR . "/../app/config/loader.php";
$loader->register();
/**
- The FactoryDefault Dependency Injector automatically register the right services providing a full stack framework
*/
$di = new Phalcon\DI\FactoryDefault();
/**
- Include the application services
*/
require DIR . "/../app/config/services.php";
and this is script i run
<?php
require 'cli-bootstrap.php';
define('FEEDURL', '<link>');
define('DAYS', 7);
try {
$league = League::find();
var_dump($league);
} catch(Exception $e) {
echo $e->getMessage();
echo $e->getTraceAsString();
}
League is model created through DevTools