wardrobecms / core-archived

Wardrobe Core Files

Home Page:http://wardrobecms.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theme config not working

uyab opened this issue · comments

I have config.php file inside my folder theme, with following content:

<?php
    return array(
        'top_link_tags' => array(
            'tutorial'  => 'Tutorial',
            'showcase'  => 'Showcase'
        ),
    );

But calling {{ Config::get('theme.top_link_tags') }} from my layout.blade.php produce nothing.

Where exactly is this file? Config::get('theme.top_link_tags') would normally be looking in: app/config/theme.php

@foreach(Config::get('theme.top_link_tags') as $tag=>$title)
...html here...
@endforeach

I called those from public/themes/laraid/layout.blade.php,
but produce following error:

ErrorException
Invalid argument supplied for foreach()