我写了一个自定义的登录页面,我想将其合并到我的网站。 该网站使用Joomla作为CMS。 所以当我输入一个UTL www.mysite.com/myLandingPahe.php我得到一个404因为Joomla ruting引擎撞击并搜索文章在DB中。Joomla路由引擎
这是登陆页面的骨架基本的联系方式):
<?php
$to = "[email protected], [email protected]";
$subject = "HTML email";
$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <[email protected]>' . "\r\n";
$headers .= 'Cc: [email protected]' . "\r\n";
mail($to,$subject,$message,$headers);
?>
我可以保留一个地址来指向我的自定义PHP文件吗?
有没有另一种方法可以实现这一点?
的Joomla有默认com_contact compoent为什么使用自定义文件形式接触这个? http://docs.joomla.org/Help32:Components_Contacts_Contacts –
使用自定义文件,因为我需要自定义样式的网页.. – Mortalus
您是否需要自定义页眉和页脚,或者只是在自定义样式中使用joomla com_contact可以完成的任何方式。如果你需要自定义样式只是覆盖Joomla com_contact http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core –