Re: 自作外部フォームが動作しない
acliss 様
ご指摘ありがとうございます。
application/mail/reserve_form_complete.php:36
のエラーについては
reserve_form_complete.php の
36行目:", $r_name, $content); 2つを
reserve_form.phpで設定している引数
36行目:", $r_name, $r_email,$r_post,$r_addressj,$r_tel
,$r_data,$r_time,$r_pelple,$r_massage); 9つに
設定することによりエラー表示が無くなりました。
まだ 15個 エラー表示があるのですが お気付きの部分があれば
引き続きご指摘いただければ助かります。
エラー内容は 全て同じで
内容:Zend\Mail\Message::addTo expects a string, AddressInterface, array, AddressList, or Traversable as its first argument; received "NULL"
場所:/concrete/vendor/zendframework/zend-mail/src/Message.php
場所:/concrete/src/Mail/Service.php
場所:/application/blocks/external_form/form/controller/reserve_form.php
場所:<#unknown>
場所:/concrete/src/Controller/AbstractController.php
場所:/concrete/blocks/external_form/controller.php
場所:/concrete/src/Page/Controller/PageController.php
場所:/concrete/src/Routing/DispatcherRouteCallback.php
場所:/concrete/src/Routing/DispatcherRouteCallback.php
場所:/concrete/src/Application/Application.php
場所:/concrete/bootstrap/start.php
場所:/concrete/dispatcher.php場所:/concrete/bootstrap/configure.php
場所:/concrete/dispatcher.php
場所:/index.php
"NULL" 受け渡しできるデータが無いという意味?
reserve_form.php 43行目:
<form method ="post" action="<?php echo $this->action('reserve_form_submit')?>">
とか あまり意味がわからず ('reserve_form_submit') と
しているのですが 問題ないでしょうか?
よろしくお願いします。
acliss
Re: 自作外部フォームが動作しない
http://gist.github.com/itacts/9393fb72369c10028128#file-3-php-L48
$mh->to($this->post('r_mail')); -> $mh->to($this->post('r_email'));