use-statements for fields #1005
Replies: 4 comments
-
|
did you use the joomla JPK for this? This is the JPK you can us in place of JFolder:: and it will add the use statements automatically. Joomla___b32954a3_05c3_41a0_8238_85262ad46246___Power You can find these keys in the Joomla Powers area. |
Beta Was this translation helpful? Give feedback.
-
|
I haven't used Powers yet and must check how this works. |
Beta Was this translation helpful? Give feedback.
-
|
I can't find a documentation on how to use JPK. Can anyone please point me there? |
Beta Was this translation helpful? Give feedback.
-
|
yes here you can find information about it: https://git.vdm.dev/joomla/joomla-powers |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In my component, I have a custom field where, for J!3, I used JFolder::, which in J!5 doesn't work anymore. In order to use Folder::.... I need to insert use \Joomla\CMS\Filesystem\Folder but JCB doesn't seem to provide a spot, where I could add this in the configuration of my custom field.
Where am I to put my "use \Joomla\CMS\Filesystem\Folder" in my custom field?
Beta Was this translation helpful? Give feedback.
All reactions