feat(ui): create ViewComponents library to enable building class and view files components

- replace some helper components and forms with class components in the ui
- create viewcomponents
service and load the component function to be used in views
This commit is contained in:
Yassine Doghri 2021-08-19 14:00:14 +00:00
commit 94872f2338
41 changed files with 1326 additions and 695 deletions

View file

@ -0,0 +1,16 @@
<?php
declare(strict_types=1);
namespace ViewComponents\Config;
use CodeIgniter\Config\BaseConfig;
class ViewComponents extends BaseConfig
{
public string $classComponentsNamespace = APP_NAMESPACE . '\View\Components';
public string $classComponentsPath = APPPATH . 'View/Components';
public string $componentsViewPath = APPPATH . 'Views/components';
}