Answer the question
In order to leave comments, you need to log in
Link joomla site to app?
There is a site on joomla. I want to create a mobile application based on this site.
therefore, I chose the apache cordova framework, but cordova does not support php,
I found out that you can link the site using the rest api, exchange data in json format ,
but I didn’t find normal examples of how to implement this, there
is information about how to exchange individual elements and components, but so that the entire site, I can’t find it,
well, in general, help in any way you can, how to implement it,
and by the way, the site-catalog of paid files
Answer the question
In order to leave comments, you need to log in
there is a site on joomla
What version of Joomla? In the four, native REST was brought up.
https://docs.joomla.org/J4.x:Joomla_Core_APIs
The Joomla Extensions Directory has solutions for implementing REST. And so. if you can do it yourself - write an ajax or system group plugin and do whatever you want there.
Documentation for creating Joomla 3 ajax plugin
Next:
use Joomla\CMS\Factory;
$app = Factory::getApplication();
$action = $app->input->get('action');
if($action == 'any_action'){
// Делаем что-нибудь
} elseif ($action == 'another_action'){
// Делаем ещё что-то
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question