Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get styles in php files #266

Closed
ghost opened this issue May 15, 2015 · 3 comments
Closed

Get styles in php files #266

ghost opened this issue May 15, 2015 · 3 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented May 15, 2015

I am not sure how to name this or if is supposed to work.
adding this line will returng gantry 500 error:

<i class="<?php echo Gantry\Framework\Gantry::instance()['config']->get('styles.others.font'); ?>"></i>

as we've talked in the chat, i'll let this open as a question.

@mahagr mahagr added the bug label May 15, 2015
@mahagr
Copy link
Member

mahagr commented May 15, 2015

I think it would be great if it worked, but I'm not fully sure how it should be implemented as we do not fully know in that point which template style gets loaded.

Thanks for the report, though, I need to take a look into this at some point.

@ghost
Copy link
Author

ghost commented May 15, 2015

can't be used a helper, like joomla dose with `Jhelper' ? so just add this where you need it, i am not that good at php :))

@mahagr
Copy link
Member

mahagr commented May 15, 2015

Gantry already works in that point, but the issue is that template gets initialized after component gets rendered, so it doesn't know which template style to use at that point. No worries, I guess I just need to initialize it when needed.

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

No branches or pull requests

2 participants