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:

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

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support