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

TOPIC:

integrityRestrict, initialize editLink with null 08 Jul 2018 11:22 #15602

Hi admin,

In the model/item class there is a function integrityRestrict.
This function will give a warning when the $editlink (variable 5) is not initialized.
Possible solutions: init the function parameter with null or use isset() in the function itself.

I was running into this when I was using a table for prices, which were used as FK on two other tables.
In the model, one FK model integrityRestrict was called with an editlink, and one without (I do not know why)
I forked a controller and then called delete on the price model, this caused the warning to be seen.
Maybe not very visible, but I use an ajax call, causing the warning message to disrupt page processing.

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

  • Page:
  • 1
Time to create page: 0.085 seconds

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started