Are views safe to have other people editing them? |
I have encountered a similar concern on our new CMF, written in CI4.
I have ended with creating FetchApi class to query tiers (every resource act like as a tier). - API endpoints use this FetchApi with allowed fields and criterias. - AdminControllers use this FetchApi with allowed fields and criterias. - View files can access to $fetchApi object and can query any resource with API manner. It's a lot of work but it decouples backoffice itself, api, frontend all together. However, you are still on PHP. So yes almost all CI can be retrieved. But in views if you use Twig templates and not allow php inside, it might be the solution |
Messages In This Thread |
Are views safe to have other people editing them? - by sjender - 12-21-2021, 06:44 AM
RE: Are views safe to have other people editing them? - by php_rocs - 12-21-2021, 07:22 AM
RE: Are views safe to have other people editing them? - by sjender - 12-21-2021, 09:53 AM
RE: Are views safe to have other people editing them? - by yahyaerturan - 12-26-2021, 05:37 AM
RE: Are views safe to have other people editing them? - by kenjis - 12-21-2021, 04:06 PM
|