form improvements
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\View;
|
||||
|
||||
|
||||
class CheckboxWidget extends Widget
|
||||
{
|
||||
public function checked($condition=true)
|
||||
{
|
||||
$this->value = (bool)$condition;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user