karpoj23 Posted May 6, 2020 Share Posted May 6, 2020 Buenas!! tengo un problema para usar la funcionalidad de Prestashop dentro de mi funcionalidad de PHP. He hecho una extension de AdminImagesControllerCore y quiero poder usarlo en mi PHP. Si tengo mi fichero en /folder/fichero.php <?php require_once "../override/controllers/admin/AdminImagesController.php"; ?> pero esto no me funciona... como puedo utilizar un override? gracias!! Quote Link to comment Share on other sites More sharing options...
idnovate.com Posted May 6, 2020 Share Posted May 6, 2020 Pon la siguiente línea (con la ruta correcta) require(dirname(__FILE__).'/config/config.inc.php'); Y ya tendrás acceso a todas las funciones de PS. Link to comment Share on other sites More sharing options...
karpoj23 Posted May 6, 2020 Author Share Posted May 6, 2020 Perfecto, muchas gracias. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now