Skip to content

Instantly share code, notes, and snippets.

@proweb proweb/index.php
Created Dec 10, 2011

What would you like to do?
Правильное (последовательное) подключение мета-тегов, CSS и JS.
defined('_JEXEC') or die;
/* The following line loads the MooTools JavaScript Library */
/* The following line gets the application object for things like displaying the site name */
$app = JFactory::getApplication();
/* Get the document object */
$document = JFactory::getDocument();
/* First add CSS to the document */
/* Then add JS to the document */
$document->addScript('templates/' . $this->template . '/js/jquery-1.4.4.min.js');
<?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->_charset ?>"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<!-- The following JDOC Head tag loads all the header and meta information from your site config and content. -->
<jdoc:include type="head" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.