Welcome to Viewi Discussions! #12
ivanvoitovych
announced in
Announcements
Replies: 1 comment 14 replies
-
|
Good day to all. <h2>{$heroedit->Name}</h2>
<div>Your name is: $heroedit->Name</div>
<div><span>id: </span>{$heroedit->Id}</div>
<div>
<label for="name">Hero name: </label>
<input id="name" model="$heroedit->Name"/></div><?php
namespace Components\Views\Heroesedit;
use Components\Models\HeroModel;
use Viewi\BaseComponent;
class Heroesedit extends BaseComponent
{
public HeroModel $heroedit;
public function __construct()
{
$this->heroedit = new HeroModel();
$this->heroedit->Id = 1;
$this->heroedit->Name = 'Mastermind';
}
} |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions