[RSS Feed/News] $this->service('XF:Post\Editor', $post) return unexpected result

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I tried to extend the XF\Pub\Controller\Post and XF\Service\Post\Editor, in the second extended class I add a function called checkContent, but when I run the code the content $editor is not the expected one:

PHP:

Code:
<?php

namespace TSK\newTest\XF\Pub\Controller;
use XF\Mvc\ParameterBag;

class Post extends XFCP_Post
{
    protected function setupPostEdit(\XF\Entity\Post $post)
    {
        $editor = parent::setupPostEdit($post)...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom