Hi,

hi,


i need some datas on the window object.



________________________________
 Von: lowpass <[email protected]>
An: [email protected] 
Gesendet: 21:33 Sonntag, 15.April 2012
Betreff: Re: JSON response!
 
Sending both concurrently makes no sense. What is it you're trying to do?

On Sat, Apr 14, 2012 at 10:38 AM, Serkan Sipahi <[email protected]> wrote:
> hi,
>
> i remove Router::parseExtensions('json');
>
> My wish is to do something like this:
>
> <?php
>     class SomeController extends AppController {
>
>         public $components = array(
>             'RequestHandler'
>         );
>
>         public function index(){
>
>             /********
>             json response
>             /********
>             $this->RequestHandler->setContent('json', 'application/json' );
>             $this->set('test', array(
>                 'Hallo World!',
>             ));
>             $this->set('_serialize', array('test'));
>
>             /********
>             html response
>             /********
>             $this->RequestHandler->setContent('html', 'text/html, */*' );
>             $this->set('test_2', array(
>                 'Hallo World 2',
>             ));
>         }
>     }
>
>     is that possible?
>
> ________________________________
> Von: stork <[email protected]>
> An: [email protected]
> CC: Serkan Sipahi <[email protected]>
> Gesendet: 15:56 Samstag, 14.April 2012
> Betreff: Re: JSON response!
>
> If you called Router::parseExtensions() in routes.php, you don't need to
> call $this->RequestHandler->
> setContent() manually - as long as requested URI does have .json extension
> at the end or ajax request was called with proper dataType/accept request
> header.
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php
>
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to