Skip to content

Commit

Permalink
added menu items and some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danrwalker committed Apr 12, 2016
1 parent 51bd6bf commit ecf62a3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions dist/twist/Core/Controllers/Manager.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Manager extends BaseUser{
public function __construct(){
\Twist::Route()->setDirectory(sprintf('%smanager/',TWIST_FRAMEWORK_VIEWS));
$this->_aliasURI('update-setting','GETupdatesetting');
$this->_aliasURI('scheduled-tasks','GETscheduledtasks');
}

/**
Expand Down
9 changes: 8 additions & 1 deletion dist/twist/Core/Data/manager/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,18 @@
"order": 5,
"sections": []
},
{
"name": "ScheduledTasks",
"uri": "scheduled-tasks",
"icon": "fa-puzzle-piece",
"order": 6,
"sections": []
},
{
"name": "Logout",
"uri": "logout",
"icon": "fa-sign-out",
"order": 6,
"order": 7,
"sections": []
}
]
6 changes: 3 additions & 3 deletions dist/twist/Core/Views/manager/pages/scheduled-tasks.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h2 class="no-top-padding">Scheduled Tasks</h2>
<p>All scheduled tasks setup through TwistPHP are listed below. An indication of when the scheduler was last run can be found below.</p>
<div>
<dl>
<dl class="inline">
<dt>Status</dt><dd>Inactive</dd>
<dt>Last Run</dt><dd>1 Minute Ago</dd>
<dt>Frequency</dt><dd><select name="frequency">
Expand All @@ -16,9 +16,9 @@
<option value="60">Every hour</option>
</select></dd>
</dl>
<h3>Setup Scheduled Tasks</h3>
<h3>Getting Started</h3>
<p>To get up and running with TwistPHP's Scheduled Tasks you will need to setup a CronJob that runs once every minute. Why once a minute? TwistPHP will then run the scripts if any that need to be run at that time, this gives the complete freedom for you to run tasks periodically at any interval or time.</p>
<dl>
<dl class="inline">
<dt>Command</dt><dd>php /path/to/my/file.php</dd>
<dt>Time</dt><dd>"* * * * *" Every Minute</dd>
</dl>
Expand Down

0 comments on commit ecf62a3

Please sign in to comment.