Jump to content

Recommended Posts

Posted

Hi

I need to access the following label in another language. How could I call a specific language?

$fieldTitle = wire('fields')->get($fields_id)->label;

your help is much appreciated!

Posted

soma thanks

sorry made a mess on install now getting an error on installation. 

Cannot redeclare class HelperFieldsLanguageLabel (line 2 of /site/modules/HelperFieldsLanguageLabel.module)
 
any idea?
Posted

soma thanks

sorry made a mess on install now getting an error on installation. 

Cannot redeclare class HelperFieldsLanguageLabel (line 2 of /site/modules/HelperFieldsLanguageLabel.module)
 
any idea?

Cannot redeclare class HelperFieldsLanguageLabel  

Means you have the module two times installed or put in modules folder... like the class already exists.

Posted

soma thanks

 

sorry made a mess on install now getting an error on installation. 

 

Cannot redeclare class HelperFieldsLanguageLabel (line 2 of /site/modules/HelperFieldsLanguageLabel.module)

 

any idea?

 

Bbeer, you have asked a similar question about a month ago and got a similar answer from me as Soma's...PHP errors are consistent....If it says Cannot redeclare class....it means exactly that whatever the module, or code you are using....

http://processwire.com/talk/topic/5504-urgent-help-needed/

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...