You have successfully created your Nette Web project.
+ +
+ If you are exploring Nette for the first time, you should read the
+ Quick Start, documentation,
+ tutorials and forum.
We're sorry! The server encountered an internal error and + was unable to complete your request. Please try again later.
+ +error 500
+
+You do not have permission to view this page. Please try contact the web + site administrator if you believe you should be able to view this page.
+ +error 403
diff --git a/app/modules/Front/Error4xx/templates/404.latte b/app/modules/Front/Error4xx/templates/404.latte new file mode 100755 index 0000000..b905f00 --- /dev/null +++ b/app/modules/Front/Error4xx/templates/404.latte @@ -0,0 +1,8 @@ +{block #content} +The page you requested could not be found. It is possible that the address is + incorrect, or that the page no longer exists. Please use a search engine to find + what you are looking for.
+ +error 404
diff --git a/app/modules/Front/Error4xx/templates/405.latte b/app/modules/Front/Error4xx/templates/405.latte new file mode 100755 index 0000000..a3abb85 --- /dev/null +++ b/app/modules/Front/Error4xx/templates/405.latte @@ -0,0 +1,6 @@ +{block #content} +The requested method is not allowed for the URL.
+ +error 405
diff --git a/app/modules/Front/Error4xx/templates/410.latte b/app/modules/Front/Error4xx/templates/410.latte new file mode 100755 index 0000000..c82c2e1 --- /dev/null +++ b/app/modules/Front/Error4xx/templates/410.latte @@ -0,0 +1,6 @@ +{block #content} +The page you requested has been taken off the site. We apologize for the inconvenience.
+ +error 410
diff --git a/app/modules/Front/Error4xx/templates/4xx.latte b/app/modules/Front/Error4xx/templates/4xx.latte new file mode 100755 index 0000000..0660a8d --- /dev/null +++ b/app/modules/Front/Error4xx/templates/4xx.latte @@ -0,0 +1,4 @@ +{block #content} +Your browser sent a request that this server could not understand or process.
diff --git a/app/modules/Front/Home/HomePresenter.php b/app/modules/Front/Home/HomePresenter.php new file mode 100755 index 0000000..0d4e83e --- /dev/null +++ b/app/modules/Front/Home/HomePresenter.php @@ -0,0 +1,10 @@ +mailBuilderFactory = $mailBuilderFactory; + } + + public function actionDefault(): void + { + $mail = $this->mailBuilderFactory->create(); + $mail->setSubject('Example'); + $mail->addTo('foo@example.com'); + + $mail->setTemplateFile(__DIR__ . '/templates/Emails/email.latte'); + $mail->setParameters([ + 'title' => 'Title', + 'content' => 'Lorem ipsum dolor sit amet', + ]); + + $mail->send(); + } + +} diff --git a/app/modules/Mailing/Home/templates/@layout.latte b/app/modules/Mailing/Home/templates/@layout.latte new file mode 100755 index 0000000..ebae0fe --- /dev/null +++ b/app/modules/Mailing/Home/templates/@layout.latte @@ -0,0 +1,19 @@ + + + + + + +
+ If you are exploring Nette for the first time, you should read the
+ Quick Start, documentation,
+ tutorials and forum.