1
0
Fork 0
mirror of https://github.com/Oreolek/kangana.git synced 2024-06-26 03:40:56 +03:00

DAR-17: course price

This commit is contained in:
Alexander Yakovlev 2014-02-15 10:53:52 +07:00
parent bd9be091f3
commit 105661d598
2 changed files with 5 additions and 1 deletions

View file

@ -11,7 +11,7 @@ class Controller_Course extends Controller_Layout {
'title' => 'input',
'description' => 'textarea',
'period' => 'input',
// 'price' => 'input'
'price' => 'input'
);
public function action_index()

View file

@ -58,6 +58,10 @@ class Model_Course extends ORM {
{
$this->period = 1;
}
if (empty($this->price))
{
$this->price = 0;
}
}
public static function count_letters($id)