Warning (2): Cannot modify header information – headers already sent by (output started at /Applications/MAMP/htdocs/iframeworking/iframe/app/models/frame.php:7) [COREcake/libs/controller/controller.php, line 647]
here is the code from frame.php:
<?php
class Frame extends AppModel
{
var $name = 'Frame';
var $belongsTo = array('User' => array('className' => 'User', 'dependent' => true));
}
?>
You probably have a whitespace after your php closing tag (
?>).My recommendation is to make it a habit not to close your PHP tags in your controllers and models (and other PHP-only files). PHP parser does not require the closing tag at the end of the file (it is implied) and it will save you from headaches in the future (even though it will look “funny” at first).
In other words, this should fix it: