Jtoolbar::custom button / controller / model help - Joomla! Forum - community, help and support


hello everyone,

i make simple "custom" jtoolbar button.

in view have this

code: select all

$this->addtoolbar();

protected function addtoolbar()
{
jtoolbarhelper::custom('sync','loop','loop','sync',false);
}


the button appears on backend page, not of yet.
where put "sync" function?

this button take no user input. fire sunc function in other file.

i not have enough knowledge debug how toolbar class works. have tried return values , var_dump($_request); , echo messages screen , have failed.


side-note: joomla 2.5 tutorial jtoolbar works fine in joomla 2.5 not function joomla 3.0. there tutorial called "ola'" supposedly converted 2.5 tutorial 3.0, toolbar buttons within 3.0 tutorial don't work either. once link button function have enough knowledge finish process.

solved - after searching web weeks found error of ways.

there "reserved function" sync when call on function so

code: select all

jtoolbarhelper::custom('config.sync','loop', 'loop', 'sync', false);


nothing happens

if change sync syncapi or other word , match in controller works fine.





Comments