Parse Error on Adding PHP Dashboard Methods #23
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#23
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?
Hey there, so I want to add a custom dashboard but am getting an error:
In the above file, the line is this:
When I comment it out, the dashboard appears with no parse errors.
Thank-you,
Paola
Hi Poala
So in the component view under the "script" tab there is a switch to add PHP to the Dashboard Method. When this is set to yes you have two new fields. The first is to add the PHP Dashboard Methods, read the note in the field very carefully. That is what is missing.
If you don't want to add any PHP you still at this time need to add a empty method like this
This will fix your error, and not that the method must start with get and have camel case naming like the example above.
To really help you more I would need to see the code... reality is that these features or for adding more tabs to the dashboard not replace it.