1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Found function linked to a button click

Discussion in 'XenForo Development Discussions' started by caino79, Jul 18, 2014.

  1. caino79

    caino79 Member

    Hi guys,

    how can i find a function linked to a button click. For example the "Save template modification" button on click redirect to link "/forum/admin.php?template-modifications/1/save". How can i find the function on php code called by this link?
  2. Chris D

    Chris D XenForo Developer Staff Member

    It's a controller action, so you'd expect to see that in library/XenForo/ControllerAdmin.

    It's a public template modification so you would be looking for TemplateModification.php.

    That class extends TemplateModificationAbstract.php.

    The specific code for saving a template modification would be public function actionSave() (because of /save/ in the url) and may appear in TemplateModification.php and/or TemplateModificationAbstract.php.
    Kintaro likes this.
  3. caino79

    caino79 Member

    Ok, I just solved my problem.
    Thank you very much for you help.

Share This Page