Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Theme config not working #60

Open
uyab opened this issue Oct 6, 2013 · 2 comments
Open

Theme config not working #60

uyab opened this issue Oct 6, 2013 · 2 comments

Comments

@uyab
Copy link

uyab commented Oct 6, 2013

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.

@ericlbarnes
Copy link
Contributor

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

@uyab
Copy link
Author

uyab commented Oct 7, 2013

@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()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants