Download & install your Hubleto
Download & install
Learn how to create apps
https://developer.hubleto.com/create-first-app
Easily describe your data structures.
public function columns(array $columns = []): array {
return [
'name' => [ 'type' => 'varchar', 'title' => 'Name' ],
'id_owner' => [ 'type' => 'lookup', 'title' => Owner, 'model' => User::class ],
]));
}
Prepare parameters for the view.
public function prepareView(): void {
parent::prepareView();
$this->setView('@app/MyApp/Views/Contacts.twig');
}
Make your app pretty looking.
<app-table
string:model="HubletoApp/External/MyApp/Models/Contact"
int:id="{{ viewParams.recordId }}"
></app-table>
Publish your work.
public function init(): void {
$this->main->router->httpGet([
'/^my-app\/contacts\/?$/' => Controllers\Contacts::class
]);
}
Expand your opportunities world-wide.
<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>
Develop good quality apps.
class RenderAllRoutes extends \HubletoMain\Core\AppTest {
public function run(): void {
$this->cli->cyan("Rendering route 'customers/companies'.\n");
$this->main->render('customers/companies');
}
}
Add your app to your Hubleto desktop.
php hubleto app install \HubletoApp\External\MyApp\Loader