public function editActivity(string $config)
    {
        $file = (array) JL::open(FEnv::get("framework.config").'smarty_config/smarty.json');
        foreach ($file as $one => $val) {
            if ($one == $config) {
                return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => $val)));
            }
        }

        return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => array())));
    }
public function editActivity(string $config)
    {
        $file = (array) JL::open(FEnv::get("framework.config").'smarty_config/smarty.json');
        foreach ($file as $one => $val) {
            if ($one == $config) {
                return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => $val)));
            }
        }

        return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => array())));
    }
public function editActivity ( string $ config ) { $ file = ( array ) JL :: open ( FEnv :: get ( "framework.config" ) . 'smarty_config/smarty.json' ) ; foreach ( $ file as $ one => $ val ) { if ( $ one == $ config ) { return ( ( new Renderer ( ) ) -> jsonRenderer ( array ( "code" => 200 , "results" => $ val ) ) ) ; } } return ( ( new Renderer ( ) ) -> jsonRenderer ( array ( "code" => 200 , "results" => array ( ) ) ) ) ; }
Get one smarty config
@param string $config Config environement name
@return Renderer
@throws
Get one smarty config