Skip to content

Instantly share code, notes, and snippets.

@hissy
Created September 25, 2014 13:52
Show Gist options
  • Save hissy/d11551ad58e5f3d0fcd4 to your computer and use it in GitHub Desktop.
Save hissy/d11551ad58e5f3d0fcd4 to your computer and use it in GitHub Desktop.
#concrete5 #5.7 Example of override config values from package
<?php
namespace Concrete\Package\JapaneseCommunity;
use Config;
defined('C5_EXECUTE') or die('Access Denied.');
class Controller extends \Concrete\Core\Package\Package {
protected $pkgHandle = 'japanese_community';
protected $appVersionRequired = '5.7.0';
protected $pkgVersion = '0.0.1';
public function getPackageDescription()
{
return t('Japanese Community Package');
}
public function getPackageName()
{
return t('Japanese Community Package');
}
public function on_start()
{
Config::set('concrete.urls.newsflow', 'http://concrete5-japan.org');
}
}
@midhun1993
Copy link

Do you have any idea about clear whole value inside a config file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment