So the code should actually look like
$("#accordion").accordion({ header: "h3" });
Some interesting stuff off the beaten track. It could be physical, mental or mathematical.
function initialize($controller, $settings = array(), $options=null ) {
$this->controller =& $controller;
...
In the controller that calls the UploadComponent, we have a upload() function that handles the logic. It is also part of the examples/upload.php file. The basic JQuery File Upload plugin has the ability to Add, View and Delete files, therefore we will need POST, GET, and DELETE request detection.class MyController extends AppController {
$var components = array('Upload');
...
function upload() {
$this->layout = 'json';
Configure::write('debug', 0);
switch ($_SERVER['REQUEST_METHOD']) {
case 'HEAD':
case 'GET':
$this->Upload->get();
break;
case 'POST':
$this->Upload->post();
break;
case 'DELETE':
$this->Upload->delete();
break;
default:
header('HTTP/1.0 405 Method Not Allowed');
}
}