0

I have create a custom admin grid for my blog module but "Add New Post" get a 404 page I have 2 grids, 1st - Slider, 2nd- Slide. But "Slider" works, and the second is not

  • di.xml https://codeshare.io/ay3gQq
  • view/adminhtml/ui_component/mycompany_slider_slide_listing.xml https://codeshare.io/21BJZ0
  • Controller/Adminhtml/Slide/NewAction

    class NewAction extends \Magento\Backend\App\Action
    {
    
        protected $resultForwardFactory;
    
        public function __construct(
            Action\Context $context,
            \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
        )
        {
            $this->resultForwardFactory = $resultForwardFactory;
            parent::__construct($context);
        }
    
        protected function _isAllowed()
        {
            return $this->_authorization->isAllowed('MyCompany_Slider:slide_save');
        }
    
        public function execute()
        {
            $resultForward = $this->resultForwardFactory->create();
            return $resultForward->forward('edit');
        }
    }
            php?>
    

what i am wrong?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.