教程栏目

joomla中文网出品的官方教程

Contact events are triggered during the contact form submitting process.

onValidateContact

Description

This event is triggered after a contact form has been submitted. An example use case would be validating a captcha. If you return an Exception object form submission will be terminated.

Parameters

  • contact A reference to the person who will receive the form.
  • data A reference to the data in the $_POST variable.

Return Value

None on success or Exception on failure.

Called in files

  • components/com_contact/controllers/contact.php

onSubmitContact

Description

This event is triggered after a contact form has been submitted. You can use this for sending additional emails etc.

Parameters

  • contact A reference to the person who will receive the form.
  • data A reference to the data in the $_POST variable.

Return Value

None. Called in files

  • components/com_contact/controllers/contact.php

作者: 樱木花道

Joomla程序员,从J1.5到J4.x始终都在做Joomla相关开发定制工作,有超过10年行业经验,国内Joomla扩展开发商ZMAX团队的核心成员

作者网站:ZMAX程序人

评论 (0)

  • 最新在前
  • 最佳在前

第3章 处理URL请求参数

第5章 日志

第6章 错误和调试

第10章 缓存

第14章 路由系统