Question

I'm adding a new column to my MySQL table in a controller in CakePHP. I then redirect to a page which displays the information contained in every column in the table. However, I'm receiving an undefined index error on the new column when redirected. Upon refreshing, the page recognizes the column properly.

I'm using the following code to retrieve column names from the table: SHOW COLUMNS IN entries

My "index" controller executes this query, sends the column names to the view, and the data is drawn there as normal.

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top