Is it possible for me to put some php code inside of a .html template file?
I am creating a new page for my Rules/About Us etc for my website using a guide in the KnowledgeBase. I want to add this code:
Code: Select all
if ($user->data['user_id'] == ANONYMOUS)
echo 'Please login!';
echo 'Thanks for logging in, ' . $user->data['username_clean'];
Maybe not exactly that, I mightput something different but along the lines of that code, can I add it to my rules_body.html file?? When I add it under the Include overall_header bit at the top, it doesn't work for me. Any ideas how I can get this to work?