3 votes

How to create an instance of the Joomla CMS from the browser or the command line

A complete working example is below if you just want to cut and paste it. There are four possible flavours of Joomla that can be created based on the applications of Site, Administrator, API and CLI ...
Irata's user avatar
  • 3,927
2 votes
Accepted

Language Constant Not Displaying in External Script

Hard to say without seeing the complete code but my guess is you don't initialize the application and the language file in question does not get loaded. You can load it manually: $language->load('...
Sharky's user avatar
  • 11.2k
2 votes
Accepted

External Login Script and getDbo()

Create a simple ajax plugin that handles your user login logic and returns a message for your users. The following 2 files should be zipped together and installed on your site. userlogin.php <?...
Terry Carter's user avatar
  • 1,812
2 votes

Using external PHP library and defined('_JEXEC') or die;

It’s a good question and a bad question at the same time. Why? Good, because the question sounds ‘exotic’ for many many Joomla users/superusers. Why this small line of code is there everywhere like ...
Zollie's user avatar
  • 2,936
2 votes

Getting current language in Joomla 3 in external script seems difficult.. but works fine in J2.5

I use the default Joomla multilingual management, no falang, no third-party plugin. Same problem, and I spent 1 hour to find the solution. The key is, don't try to use JFactory::getLanguage(). ...
user11516's user avatar
1 vote

Is there anything wrong with setting Joomla session variables consecutively in an external php script?

OK, the problem is that we got to use the same session. In order to do that. We had to call $session->getId() to get current seeeion_id then send it to the client side, when we create the session ...
Jack Ting's user avatar
  • 111
1 vote

Using external PHP library and defined('_JEXEC') or die;

There is a good video from Joomla World Conference 2016 on a presentation of Namespaces by Jisse Reitsma that around the 23 minute mark goes into an example that eventually describes a situation where ...
Irata's user avatar
  • 3,927

Only top scored, non community-wiki answers of a minimum length are eligible