Astrid Posted November 5, 2023 Share Posted November 5, 2023 Bonjour, J'essaye de migrer un de mes modules custo dans un prestashop 8 mais je me retrouve face à un problème au moment de la création d'une route. MOn module s'appelle gb_infopress. Constructeur : public function __construct() { $this->name = 'gb_infopress'; $this->tab = 'administration'; $this->version = '1.0.0'; $this->author = 'XX'; $this->need_instance = 0; parent::__construct(); $this->displayName = $this->l('Infopress'); $this->description = $this->l('Infopress'); $this->ps_versions_compliancy = array('min' => '1.7', 'max' => _PS_VERSION_); } Hook : public function hookActionOrderGridDefinitionModifier(array $params) { $params['definition']->getBulkActions()->add( (new SubmitBulkAction('export_infopress')) ->setName('Export Infopress') ->setOptions([ // in most cases submit action should be implemented by module 'submit_route' => 'admin_infopress_orders_bulk_export', ]) ); } Dans config/routes.yml admin_infopress_orders_bulk_export: path: /infopress/export methods: [GET] defaults: _controller: 'PrestaShop\Module\gb_infopress\Controller\Admin\InfopressController::exportAction' Je pensais avoir bien enregistré ma route mais quand je charge la grid order, j'obtiens cette erreur : Unable to generate a URL for the named route "admin_infopress_orders_bulk_export" as such route does not exist. Auriez-vous une idée de la cause de cette erreur? Merci de votre aide. Link to comment Share on other sites More sharing options...
Astrid Posted November 12, 2023 Author Share Posted November 12, 2023 Je me permets un UP. Personne pour m'aider svp? Merci! 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