You're right ... I just needed 'Administrator'.
I found a solution - looks like my namespaces were all wrong.
None of the MVC stuff was working, even though the list view was somehow finding the records in the underlying table. Things like $this->getMVCFactory() always returned false, the Table stuff wasn't working etc.
When I clicked on a record the URL index.php?option=com_conlucra_chat ... was being rewritten to index.php?com_chat ... and throwing a 'Component not found' exception, which suggested that nothing was really working.
I guessed that the URL was being re-written to conform to the namespacing, so I changed everything to 'Conlucra\Component\Conlucra_Chat\Administrator\xxx' throughout the component. I don't completely understand why, but then everything started to work.
I'm actually happy-ish with the outcome, as I *think* that if I'd stuck with the previous namespace I'd have had to have a component called com_chat instead of com_conlucra_chat, with the risk of a conflict with some other third-party component in the future?
I found a solution - looks like my namespaces were all wrong.
None of the MVC stuff was working, even though the list view was somehow finding the records in the underlying table. Things like $this->getMVCFactory() always returned false, the Table stuff wasn't working etc.
When I clicked on a record the URL index.php?option=com_conlucra_chat ... was being rewritten to index.php?com_chat ... and throwing a 'Component not found' exception, which suggested that nothing was really working.
I guessed that the URL was being re-written to conform to the namespacing, so I changed everything to 'Conlucra\Component\Conlucra_Chat\Administrator\xxx' throughout the component. I don't completely understand why, but then everything started to work.
I'm actually happy-ish with the outcome, as I *think* that if I'd stuck with the previous namespace I'd have had to have a component called com_chat instead of com_conlucra_chat, with the risk of a conflict with some other third-party component in the future?
Statistics: Posted by david0058 — Tue Dec 24, 2024 11:07 am