controller

  1. CMTV

    Fixed actionDialog() silently removes underscores "_"

    Not a bug but unexpected and weird. In XF\Pub\Controller\Editor class there is a actionDialog() method which loads a dialog in popup when clicking on dialog-buttons in Froala editor: public function actionDialog() { $dialog = preg_replace('/[^a-zA-Z0-9]/', '', $this->filter('dialog'...
  2. CMTV

    XF 2.0 Call methods of extended entity

    I extended Thread entity and added custom method canSolve(). Then I extended Thread controller with actionSolve(ParameterBug $pb) method: public function actionSolve(ParameterBag $pb) { $thread = $this->assertViewableThread($pb->thread_id); /* There is no such a method in...
Top