In SilverStripe, you can access any route that is accessible via HTTP by also running cli- script.php on the command line
Also exists sake, which is just a bash shell around cli- script.php (but you need to install sake)
, ( dev/build):
php framework/cli-script.php dev/build
sake dev/build
. ussage of silverstripe: http://doc.silverstripe.org/framework/en/topics/commandline
( ) silverstripe , (cronjob)
, Page_Controller ( SiteTree Model), ( URL- CMS).
, URLSegment about:
class Page_Controller extends ContentController {
private static $allowed_actions = array('something');
public function init() {
}
public function index() {
return $this;
}
public function something() {
return $this;
}
}
run index():
php framework/cli-script.php about
something():
php framework/cli-script.php about/something
: init URL-, "", |
: , index(), $allowed_actions ( , $allowed_actions = flush = 1, )
: , :
, , $Action , something()