controller

  1. CStrategies

    XF 2.2 Help routing to XFCP extension

    I get most things in XenForo but routes drive me mad. I have added a custom action method to my extension of the XFRM resourceitem public controller. Here is the format of the extension: <?php namespace My\Addon\XFRM\Pub\Controller; use XF\Mvc\ParameterBag; use...
  2. DKGE

    XF 2.2 Returning a File to the User and Implementing AJAX Form Action

    Hey I was wondering and struggling all day on how to make XenForo return a file to the user after a request. I managed to get it working on direct url access. /xxxx/download public function actionDownload(ParameterBag $params) { $visitor = \XF::visitor(); // Check if the...
  3. kmecpp

    XF 2.2 Page works regularly but not in modal from data-xf-click="overlay"

    Trying to make a custom registration form but its not working in a modal (A modal does pop up but it says "Oops! We ran into some problems. Please try again later. More error details may be in the browser console.") The error displayed in the browser's console is just "PHP: (Followed by the...
  4. Earl

    XF 2.2 Call to protected method in controller A from Controller B?

    For an instance, I'm extending the public Thread controller, and I have this new action actionAppendReply in it. I want to call setupPostEdit and assertViewablePost protected methods in the public Post controller from the thread controller actionAppendReply as opposed to duplicating the code...
  5. 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'...
  6. 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 Bottom