<Directory ....> Options Indexes FollowSymLinks MultiView </Directory>
echo '{"success":'.$success.', results:'.$javascript->Object($record).'}';
reader: new Ext.data.JsonReader({ totalProperty: 'total', successProperty: 'success', root: 'results', idProperty: 'id', etc
{"success":true, results:{"id":"47","jobId":"47","jobType":"7", "partName":"0101012","partDescription":"3.0 Metre Crossover Network Cable", "quantity":"1","price":"3.5"}}
{success:true, id:11}
{success:true}
{"total":2, "results":[{"id":"46","jobId":"47","jobType":"7", "partName":"0101104","partDescription":"Dual Back Box","quantity":"1","price":"4.26"},{"id":"47","jobId":"47","jobType":"7", "partName":"0101012","partDescription":"3.0 Metre Crossover Network Cable","quantity":"1","price":"3.5"}]}
If you are getting an Object not found! cakephp error check out your httpd.conf
<Directory />
Options FollowSymLinks
AllowOverride All
# Order deny,allow
# Deny from all
While writing a webapp I suddenly started getting this error:
Session object destruction failed
Apparently it is related to session_regenerate_id(). For now I have solved it by setting security.level to medium in core.php.
On my todo list for a proper fix before release.
Array ( [0] => struct SidAndAttributesType { string SecurityIdentifier; unsignedInt Attributes; } [1] => struct NonEmptyArrayOfGroupIdentifiersType { SidAndAttributesType GroupIdentifier; } [2] => struct
Array ( [0] => struct SidAndAttributesType { string SecurityIdentifier; unsignedInt Attributes; } [1] => struct NonEmptyArrayOfGroupIdentifiersType { SidAndAttributesType GroupIdentifier; } [2] => struct NonEmptyArrayOfRestrictedGroupIdentifiersType { SidAndAttributesType RestrictedGroupIdentifier; }
$this->set('title', 'My Page Title');
class DashboardsController extends AppController { var $name = 'Dashboards'; var $uses = array(); function index() { } }
Router::connect('/', array('controller' => 'dashboards', 'action' => 'index'));
I just wasted 20 minutes going through files looking for a white space that was causing "headers already sent" error message on login. I finally found it BEFORE the <? (i was looking at the ?> end).
Grrr....