Location: PHPKode > scripts > Genghis > bobthecow-genghis-4ca2e48/src/php/Genghis/JsonResponse.php
<?php

class Genghis_JsonResponse extends Genghis_Response
{
    public function renderHeaders()
    {
        $this->headers['Content-type']  = 'application/json';
        $this->headers['Cache-Control'] = 'no-cache, must-revalidate';
        $this->headers['Expires']       = 'Wed, 04 Aug 1982 00:00:00 GMT';

        parent::renderHeaders();
    }

    public function renderContent()
    {
        print(Genghis_Json::encode($this->data));
    }
}
Return current item: Genghis