pythic
  • Member for 7 years, 6 months
  • Last seen more than 4 years ago
Havin trouble with registerCpRoutes
4 votes

Dumb ass typo : "siteadministator" instead of siteadministRator sigh ... Sorry for taking up bytes. Working method now is: public function hookRegisterCpRoutes() { return array( '...

View answer
How to add/link an entry to an object using PHP?
4 votes

Ah got it : $lNewUser->getContent()->setAttributes(array( 'companiesDropdown' => array($aUser->companyId), ));

View answer
registerCpRoutes gives 404
1 votes

Not sure why you are escaping the / right in front of the regex. Maybe thats the issue?

View answer