PHP code example of signalwow / configurationpage

1. Go to this page and download the library: Download signalwow/configurationpage library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

signalwow / configurationpage example snippets




    if (file_exists(__DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php')) {
        

    public function getContent()
    {
        return \SignalWow\ConfigurationPage\ConfigurationPage::getInstance()
            ->setOptionPrefix('test_')
            ->setOptionTable($this->table)
            ->setOptionIdentifier($this->identifier)
            ->addForm($this->getConfigForm())
            ->processAndRender($this);
    }

    public function install()
    {
        //...
        $isInitialized = ConfigurationPage::getInstance()
            ->setOptionPrefix('test_')
            ->initDefaults(
                ['TESTMODULE_LIVE_MODE' => false],
                $this
            );
        //...
    }

    public function uninstall()
    {
        //...
        $isDeleted = \SignalWow\ConfigurationPage\ConfigurationPage::getInstance()
            ->setOptionPrefix('test_')
            ->setOptionTable($this->table)
            ->setOptionIdentifier($this->identifier)
            ->addForm($this->getConfigForm())
            ->deleteConfigurations();
        //...
    }