10-05-2016, 09:56 AM
Hi,
I've added a contact form to the UserSpice navigation bar and wanted to use the UserSpice functions like email and email_body from the helpers.php. However, the function email_body requires an email template:Should I place my template in users/views ?
Or makes it sense to put it in usersc/views and add something like:
<pre></pre>
<pre></pre>
?
Thanks,
Sebastian
I've added a contact form to the UserSpice navigation bar and wanted to use the UserSpice functions like email and email_body from the helpers.php. However, the function email_body requires an email template:
Code:
require $abs_us_root.$us_url_root.'users/views/'.$template;
Or makes it sense to put it in usersc/views and add something like:
<pre>
Code:
if (file_exists($abs_us_root.$us_url_root.'users/views/'.$template)) {
require $abs_us_root.$us_url_root.'users/views/'.$template;
}
<pre>
Code:
if (file_exists($abs_us_root.$us_url_root.'usersc/views/'.$template)) {
require $abs_us_root.$us_url_root.'usersc/views/'.$template;
}
?
Thanks,
Sebastian