cross-solution / YAWIK

YAWIK is a web application. It can be used as an ATS applicant tracking system or as a jobboard.
https://yawik.org
MIT License
125 stars 67 forks source link

Switched off languages are still shown on on startpage #158

Closed blu-IT closed 9 years ago

blu-IT commented 9 years ago

Hello,

I enabled only the german language in module.core.options.local.php, but on the startpage still all other languages are shown. I've noticed this behavior in v0.19-1 to v0.21-2

Regards, Ivan

cbleek commented 9 years ago

Hi Ivan,

here you can see how you can access options within a view.

https://github.com/cross-solution/YAWIK/blob/develop/module/Core/view/layout/layout.phtml#L15

$languages should contain the value configured in " supportedLanguages" in autoload/module.core.options.local.php.

If this is not the case, your configuration is propably cached. Remove the cached configuration.

rm cache/module-classmap-cache.module_map.php rm cache/module-config-cache.production.php

Or add

SetEnv APPLICATION_ENV "development"

to the apache VirtualHost Section.

Regards,

Carsten

blu-IT commented 9 years ago

If this is not the case, your configuration is propably cached. Remove the cached configuration. rm cache/module-classmap-cache.module_map.php rm cache/module-config-cache.production.php

Yes, this was the solution - thanks a lot!

Regards, Ivan