V
V
Vladimir2017-02-22 10:09:31
PHP
Vladimir, 2017-02-22 10:09:31

How to add php code to Joomla?

There is such a Joomla
hostingkartinok.com/show-image.php?id=318b12c7dbb0...
I need to generate a date
I write:
2015 - <?php echo(date("Y"));?>
and nothing.
Why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Goryachev, 2017-02-22
Bolotov @VladimirBolotov

This thing needs to be implemented through /templates/your_template/index.php (or any other php).
If you really want to use the module/material editor, then you need a plugin.
https://extensions.joomla.org/extensions/extension...
https://joomla-secrets.ru/drugoe/125-kak-vstavit-l...
In the material it will look something like this.
2015 - {source}<?php echo(date("Y"));?>{/source}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question