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

The j-cook project is one of the best of its kind and it is nice that we all try to contribute in little ways to make life easy for each other.

vlemos (Forum)  

Get Started