Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

INFO : Enum Changes 22 Nov 2016 14:43 #14716

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
For those of you, who like me use EXPLODED forms, you may have noticed that any view forks just exploded with enum helper errors if you built a component using 3.0.8

If you did, just find / replace on your forks with the following
YourComponentHelper::enumList('

is replaced by
YourComponentHelperEnum::_('

and you are good to go after uploading
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

INFO : Enum Changes 22 Nov 2016 14:47 #14718

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Unfortutaly that is only half the job..

You then have to replace all the entries in brackets as well...

i.e
('films', 'mpaa'),

becomes
('films_mpaa'),
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The following user(s) said Thank You: admin, vlemos

Please Log in or Create an account to join the conversation.

INFO : Enum Changes 23 Nov 2016 15:02 #14731

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
It should still works because of the legacy proxy in helper.
Don't it ?

K++
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

INFO : Enum Changes 23 Nov 2016 15:07 #14732

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Normally, the list is loaded automatically if you use the enum type in XML form.
specify the parameters :
type="enum"
enum="films_mpaa"

Then you can remove the call to the helper because the list is automatically loaded. No need to feed the list in the code everytime.

EDIT : "Condensed" or "Exploded" should not change anything.
Just remove the helper call from your forks otherwise it will override the list.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.106 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started