src/Slashworks/BackendBundle/Helper/InstallHelper.php
private static function _saveControlUrl()
        {


            $oStatement = self::$_connection->prepare('INSERT INTO  `system_settings` (`key` ,`value`)VALUES (:key,  :value);');
            $oResult    = $oStatement->execute(array(
                                                   ":key"   => "control_url",
                                                   ":value" => self::$_data['controlUrl'],
                                               ));

            if ($oResult !== true) {
                throw new Exception("Error while inserting control url");
            }

            $oStatement = self::$_connection->prepare('INSERT INTO `license` (`id`, `max_clients`, `domain`, `serial`, `valid_until`) VALUES (null, 0, :control_url , \'\', 0);');
            $oResult    = $oStatement->execute(array(
                                                   ":control_url" => self::$_data['controlUrl'],
                                               ));


        }
private static function _saveControlUrl()
        {


            $oStatement = self::$_connection->prepare('INSERT INTO  `system_settings` (`key` ,`value`)VALUES (:key,  :value);');
            $oResult    = $oStatement->execute(array(
                                                   ":key"   => "control_url",
                                                   ":value" => self::$_data['controlUrl'],
                                               ));

            if ($oResult !== true) {
                throw new Exception("Error while inserting control url");
            }

            $oStatement = self::$_connection->prepare('INSERT INTO `license` (`id`, `max_clients`, `domain`, `serial`, `valid_until`) VALUES (null, 0, :control_url , \'\', 0);');
            $oResult    = $oStatement->execute(array(
                                                   ":control_url" => self::$_data['controlUrl'],
                                               ));


        }
private static function _saveControlUrl ( ) { $ oStatement = self :: $ _connection -> prepare ( 'INSERT INTO  `system_settings` (`key` ,`value`)VALUES (:key,  :value);' ) ; $ oResult = $ oStatement -> execute ( array ( ":key" => "control_url" , ":value" => self :: $ _data [ 'controlUrl' ] , ) ) ; if ( $ oResult !== true ) { throw new Exception ( "Error while inserting control url" ) ; } $ oStatement = self :: $ _connection -> prepare ( 'INSERT INTO `license` (`id`, `max_clients`, `domain`, `serial`, `valid_until`) VALUES (null, 0, :control_url , \'\', 0);' ) ; $ oResult = $ oStatement -> execute ( array ( ":control_url" => self :: $ _data [ 'controlUrl' ] , ) ) ; }
save control-url to database
save control - url to database