php - Call method in helper on click of a button in Joomla component -


i developing component.

my helper.php

<?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);    } } ?> 

in components entry file, want call helper on click of button.

this how calling on page load:

starclasshelper::mymethod($compiledcss); 

how can make above call (replicate above line) on button click ?

this ad administrator component. trying write css file on button click in admin area.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -