Jump to content

Recommended Posts

Posted
foreach ($languages as $language) {
 echo $language->title;
}

I have a strange problem. I want to use this code to create a language switcher, but for the current selected language the title is alway empty.

  •  /en/ -->  "", "de", "es"
  • /de/ --> "en", "", "es"
  • /es/ --> "en", "de", ""

It also doesn't work with using $user->language->title

But it works with "id" and "name" instead of "title"

Any ideas?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...