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

XF 2.0 Sample question

XenConcept

Formerly Rémi C
#1
Hi,

How do I remove this error?

Code:
Template admin:rd_support_ticket_departments_members_list: Accessed unknown getter 'depatment_title' on RemiDev\SupportTicket:Department[2] (src/XF/Mvc/Entity/Entity.php:181)
Php Code :

PHP:
public function actionMembers(ParameterBag $params)
    {

        $departmentId = $params->department_id;

        $department   = $this->_departmentFinder()->where('department_id', $departmentId)->fetchOne();

        \XF::dump($department);
        $viewParams = [

            'department' => $department

        ];

        return $this->view('', 'rd_support_ticket_departments_members_list', $viewParams);

    }
@Chris D

Thanks