Extension Helper File - class redeclared if editor FieldsButton published - Joomla! Forum - community, help and support


this rough locate, here's gist of it...

i have custom extension site helper , admin helper file (2 separate files - same name)

eg.

site/components/myextension/helper/myextension.php
site/administrator/components/myextension/helper/myextension.php

same helper class in each file - 1 frontent 1 admin side - jhtmlmyextension

here's part i'm having troubles understanding, , perhaps should have single helper file used both site , admin - don't, there's that.

on front-end, when i'm displaying editor , field button published, following re-action:

cannot redeclare class jhtmlmyextension in /myjoomlaroot/administrator/components/com_myextension/helpers/myextension.php

this happens when field button editor plugin gets called, when hits fieldhelper class calling extract() method - fieldhelper::extract($context) - found in file: com_fields/helpers/fields.php called file: plugins/editors-xtd/fields/fields.php

i'd love understand why admin helper file custom extension getting jloader::register-ed? me not following convention should following? feel is. components structure originates j! v1.5.x , there update... can't 1 having happen? anyone? anyone?

and, regards custom fields, maybe i'd take advantage of what's happening here - need extension's helper file on admin side - there use in file? (links tutorials awesome!).

happy joomla!-ing.
flapjacksc - out.






Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support