Skip to content
Advertisement

CakePHP adding columns to a table

I have a Profile model/controller in my cake app as well as an index.ctp view in /views/profiles. Now, when I go to add a column to my table that is already filled with data, and then add the corresponding code to the view to pick up this column’s data, it just gives me an empty result.

My model:

My controller:

My views printing (stripped down):

Basically, the columns id, username, column, thumbnail always have been printing fine, but when I add a column called accountit returns no information (nothing prints, but no errors). Any suggestions?

Advertisement

Answer

I would delete the files in app/tmp/cache (but keep the directories).

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement