Hello team!
I'm working on the script that will synchronize the special routes between my database and Taxibooking.
I'm trying to call a method "save" from the class TaxiBookingControllerRoutes, but I've got an error : Server raised fault: 'Class 'TaxiBookingController' not found'
Can you help me to call the method from inside other component?
I need to save special route data into the database.
This is the script in my component :
if (!class_exists('TaxiBookingControllerRoutes'))
require JPATH_BASE.DS.'components'.DS.'com_taxibooking'.DS.'controllers'.DS.'routes.php';
$TaxiBookingControllerRoutes = new TaxiBookingControllerRoutes;
$response=$TaxiBookingControllerRoutes->save($product);
Best regards.
I'm working on the script that will synchronize the special routes between my database and Taxibooking.
I'm trying to call a method "save" from the class TaxiBookingControllerRoutes, but I've got an error : Server raised fault: 'Class 'TaxiBookingController' not found'
Can you help me to call the method from inside other component?
I need to save special route data into the database.
This is the script in my component :
if (!class_exists('TaxiBookingControllerRoutes'))
require JPATH_BASE.DS.'components'.DS.'com_taxibooking'.DS.'controllers'.DS.'routes.php';
$TaxiBookingControllerRoutes = new TaxiBookingControllerRoutes;
$response=$TaxiBookingControllerRoutes->save($product);
Best regards.