public function append($section, array $config)
    {
        $config = array_merge([
            'config' => null,
            'view' => null,
            'script' => null,
            'menu' => null,
            'style' => null,
            'form' => null,
            'meta' => null,
            'position' => 0
        ], $config);

        if($html = $this->renderByType($config)){

            $this->inject($section, $html);

        }
    }
public function append($section, array $config)
    {
        $config = array_merge([
            'config' => null,
            'view' => null,
            'script' => null,
            'menu' => null,
            'style' => null,
            'form' => null,
            'meta' => null,
            'position' => 0
        ], $config);

        if($html = $this->renderByType($config)){

            $this->inject($section, $html);

        }
    }
public function append ( $ section , array $ config ) { $ config = array_merge ( [ 'config' => null , 'view' => null , 'script' => null , 'menu' => null , 'style' => null , 'form' => null , 'meta' => null , 'position' => 0 ] , $ config ) ; if ( $ html = $ this -> renderByType ( $ config ) ) { $ this -> inject ( $ section , $ html ) ; } }
Inject views into layouts

@param $section
@param array $config
Inject views into layouts