Created
September 25, 2014 13:52
-
-
Save hissy/d11551ad58e5f3d0fcd4 to your computer and use it in GitHub Desktop.
#concrete5 #5.7 Example of override config values from package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'); | |
} | |
} |
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
You have to use Config::set('app.theme_paths./login', 'your_theme_handle');