html submit button
<input type="submit" value="Submit">
buttons in php
class StargazerButton extends \atk4\ui\Button {
public $model;
public $label;
function init() {
parent::init();
$this->add(new Button(['Stars', 'basic blue', 'icon'=>'star']));
$this->label = $this->add(new Label($model['stars'], ['basic blue left pointing']));
$this->on('click', function() {
$this->model['stars']++;
$this->model->save();
return $this->reload();
});
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us