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.085 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started