Add Custom PHP Class #32

Closed
opened 2017-01-01 23:19:15 +00:00 by mwweb · 1 comment
mwweb commented 2017-01-01 23:19:15 +00:00 (Migrated from github.com)

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?

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.

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.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#32
No description provided.