CakePHP declaring variables-Collection of common programming errors
Hey guys trying to declare a variable in CakePHP in the Fields Controller. This variable will display the template id from the template table, but the view is saying the variable is undefined even though we delared it in the controller. Temaplates has many fields and fields belongs to templates.
Here is the Fields Controller:
-
You should try the following code:
Originally posted 2013-11-09 22:22:46.