Seri писал(а):
У Form_Controller_Show есть свойства from
Попытался использовать свойство from, в итоге ничего не вышло
$phone_number_from = strval(Core_Array::getPost('fb_phone')) + '@mydomen.su';
if (!is_null(Core_Array::getPost($oForm->button_name)))
{
$Form_Controller_Show
->values($_POST + $_FILES)
// 0 - html, 1- plain text
->mailType(Core_Array::get(Core_Page::instance()->libParams, 'mailType'))
->mailXsl(
Core_Entity::factory('Xsl')->getByName(Core_Array::get(Core_Page::instance()->libParams, 'notificationMailXsl'))
)
->mailFromFieldName(Core_Array::get(Core_Page::instance()->libParams, 'emailFieldName'))
->from($phone_number_from)
->process();
}
Получаю ошибку
Exception: The method 'from' does not exist in 'Form_Controller_Show'
35 modules/core/exception.php
176 modules/core/servant/properties.php
23 hostcmsfiles/lib/lib_18/lib_18.php
23 hostcmsfiles/lib/lib_18/lib_18.php
271 modules/lib/model.php
138 modules/core/page.php
59 templates/template23/template.htm
86 modules/template/model.php
138 modules/core/page.php
180 templates/template1/template.htm
86 modules/template/model.php
138 modules/core/page.php
453 modules/core/command/controller/default.php
190 modules/core/router/route.php
245 index.php