If you want to do it with a plugin you should set the hook to ajax.
Call it like this:
PHP
1 2 3 4 5 6 7 8 9 10 11 |
<?php defined( 'COT_CODE' ) or die ( 'Wrong URL' );
$t = new XTemplate(cot_tplfile( 'sidepanel' , 'plug' ));
$t ->parse();
$t ->out();
|
XML/XHTML
1 2 |
< div id = "extruderRight" class = "{title:'User Control Panel', url:'index.php?r=sidepanel'}" ></ div >
|
Note the index.php?r=sidepanel