R
R
ravlex2016-06-29 12:33:09
PHP
ravlex, 2016-06-29 12:33:09

How to connect your scripts to Joomla?

The question is in the thread title..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxt888, 2016-06-29
@maxt888

Как то так:

$document = JFactory::getDocument();
$document ->addScript('/templates/'.$this->template.'/js/your_script.js');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question