// Get language and direction $doc = JFactory::getDocument(); $app = JFactory::getApplication(); $this->language = $doc->language; $this->direction = $doc->direction; ?> 403 - Access forbidden. Error: Call to a member function get() on null: Access forbidden.