Call method in helper on click of a button in Joomla template component - Joomla! Forum - community, help and support
i creating component edit , customize themes. component kind of light weight framework. free give me come you. designer.
i want call less compile function - on click of button - "recompile less"
my helper file:
my entry file:
in components entry file, want call helper on click of button.
this how calling on page load:
how can make above call (replicate above line) on button click ?
note: admin component
i want call less compile function - on click of button - "recompile less"
my helper file:
code: select all
<?php
// no direct access
defined('_jexec') or die;
class starclasshelper {
public static function mymethod($compiledcss)
{
$csspath = jpath_site . '/templates/protostar/theme.css';
jfile::write($csspath, $compiledcss);
}
}
?>
my entry file:
in components entry file, want call helper on click of button.
this how calling on page load:
code: select all
starclasshelper::mymethod($compiledcss);
how can make above call (replicate above line) on button click ?
note: admin component
Comments
Post a Comment