Pobierz i zainstaluj Hubleto
Pobierz i zainstaluj
Dowiedz się, jak tworzyć aplikacje
https://developer.hubleto.eu/create-first-app
Z łatwością opisuj swoje struktury danych.
public function columns(array $columns = []): array {
return [
'name' => [ 'type' => 'varchar', 'title' => 'Name' ],
'id_owner' => [ 'type' => 'lookup', 'title' => Owner, 'model' => User::class ],
]));
}
Przygotuj parametry dla widoku.
public function prepareView(): void {
parent::prepareView();
$this->setView('@app/MyApp/Views/Contacts.twig');
}
Zadbaj o atrakcyjny wygląd swojej aplikacji.
<app-table
string:model="Hubleto/App/External/MyApp/Models/Contact"
int:id="{{ viewParams.recordId }}"
></app-table>
Opublikuj swoją pracę.
public function init(): void {
$this->router()->get([
'/^my-app\/contacts\/?$/' => Controllers\Contacts::class
]);
}
Rozszerz swoje możliwości na cały świat.
<a href="{{ rootUrl }}/invoice/send" class="btn btn-primary">
<span class="icon"><i class="fas fa-share"></i></span>
<span class="text">{{ translate('Send invoice') }}</span>
</a>
Twórz aplikacje wysokiej jakości.
class RenderAllRoutes extends \Hubleto\Erp\Core\AppTest {
public function run(): void {
$this->cli->cyan("Rendering route 'customers/companies'.\n");
$this->main->render('customers/companies');
}
}
Dodaj aplikację do pulpitu Hubleto.
php hubleto app install \Hubleto\App\External\MyApp\Loader