PHP code example of luyadev / luya-module-contactform
1. Go to this page and download the library: Download luyadev/luya-module-contactform 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/ */
luyadev / luya-module-contactform example snippets
'modules' => [
// ...
'contactform' => [
'class' => 'luya\contactform\Module',
'useAppViewPath' => true, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used.
'mailTitle' => 'Contact Form',
'attributes' => [
'name', 'email', 'street', 'city', 'tel', 'message',
],
'rules' => [
[['name', 'email', 'street', 'city', 'message'], '
'attributeLabels' => [
'email' => 'E-Mail',
],
use yii\widgets\ActiveForm;
use yii\helpers\Html;
/** @var \yii\base\Model $model Contains the model object based on DynamicModel yii class. */
/** @var \luya\web\View $this The current View object */
/** @var ActiveForm $form The ActiveForm Object */