listAction example



    /** * Override of the application controller * to trigger the theme and template registration when the * list should be displayed. */
    public function listAction()
    {
        $this->container->get(Installer::class)->synchronize();

        parent::listAction();
    }

    /** * Used for the configuration window. * Returns all configuration sets for the passed * template id. * * @return void */
    public function getConfigSetsAction()
    {
        
parent::detailAction();
    }

    /** * {@inheritdoc} */
    public function listAction()
    {
        if (!$this->_isAllowed('read', 'customer')) {
            throw new Enlight_Controller_Exception('You do not have sufficient rights to view the list of customers.', 401);
        }
        parent::listAction();
    }

    /** * {@inheritdoc} */
    public function delete($id)
    {
        $this->get(Connection::class)->executeQuery(
            'DELETE FROM s_customer_streams_mapping WHERE customer_id = :id',
            [':id' => $id]
        );

        
Home | Imprint | This part of the site doesn't use cookies.