Jump to content

StephenK

Members
  • Posts

    2
  • Joined

  • Last visited

StephenK's Achievements

Newbie

Newbie (2/6)

2

Reputation

  1. Hi, I think I found out the problem. The method processInput in ListerProConfig has a redirect at the end of the method, so it never properly completes. I changed the addHook method to addHookBefore and it seems to be working now.
  2. Hello, I am still learning ProcessWire. I am trying to hook a method in ListProConfig.php. After the processInput method is called I would like to know the user id of the person that called the method, the page name that was involved in changed lister settings, and then get the new settings. I am having problems getting my hook to work. In the init of my module I have the following code: wire()->addHook("ListerProConfig::processInput", function($event){ $this->wire('log')->save('stephen_ext',"Someone called processInput"); }); Even though I know that processInput is called I never get anything written to my log.
×
×
  • Create New...