Add Custom PHP Class #32
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#32
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I know you are holiday, but I wanted to ask this what it is still "fresh" in my mind.
I have a couple of custom PHP classes to my frontend views (hard coded in the php files themselves). I would like to add those to component builder to compile those automatically, in the correct locations. I have tried adding the code to the dynamic get, and to the admin view Add PHP (getItem method), but they aren't quite putting the code in the correct location. In my code, the custom classes are in the footer of the code, underneath (after) everything that component builder automatically generates. That is where it would be ideal to put it, as it doesn't generate errors there.
What area would I put those custom classes to generate that code in the correct location?
to find out where what location is, simply add identifiable note to each PHP fields available in any area. Then compile the component, and in an IDE search for those notes in the code, this is the best way to identify placement of custom code.