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:
parent
bd9be091f3
commit
105661d598
|
@ -11,7 +11,7 @@ class Controller_Course extends Controller_Layout {
|
|||
'title' => 'input',
|
||||
'description' => 'textarea',
|
||||
'period' => 'input',
|
||||
// 'price' => 'input'
|
||||
'price' => 'input'
|
||||
);
|
||||
|
||||
public function action_index()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue