building a new fieldtype and using view files for the global settings and such… but how do I access the language variables from the view?
function display_global_settings() {
$settings = array(...);
$this->EE->lang->loadfile('my_fieldtype');
$r = $this->EE->load->view('settings', array('settings' => $settings), true);
return "<div id=\"my_fieldtype_settings\">$r</div>";
}This lets me access the $settings from inside the view, however I tried various ways of accessing the language variables without success. Am I missing something easy?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.