PHP code example of lyrasoft / contact

1. Go to this page and download the library: Download lyrasoft/contact library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lyrasoft / contact example snippets


$this->lang->loadAllFromVendor(\Lyrasoft\Contact\ContactPackage::class, 'ini');

// Contact
$menu->link('聯絡單')
    ->to($nav->to('contact_list', ['type' => 'main']))
    ->icon('fal fa-phone-volume');

$nav->to('contact_list', ['type' => '{type}']);

    $controller->prepareSave(
        function (PrepareSaveEvent $event) {
            $data = &$event->getData();

            $data['type'] = 'foo';
        }
    );
shell
php windwalker g controller Admin/FooContact
php windwalker g view Admin/FooContact
php windwalker g form Admin/FooContact/Form/EditForm