XF 2.0 Sample question

XenConcept

Well-known member
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
 
Back
Top Bottom