CakePHP 2.4.7 Released

2014-04-04 Thread mark_story
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.4.7. 2.4.7 is a bugfix release for the 2.4 release branch. A short list of the changes you can expect is: * Core fixtures are now included in PEAR packages. * Limburgish locale was added to L10n. * MailTransport n

Re: iOS app development

2014-04-04 Thread Domingos Coelho
I'll try to answer some of your questions *.* > > *- When I do a check for $this->request->isMobile() the result is false; > is that because we are using the simulator?* > I don't know, but I think yes. *- What part does the RequestHandler component play in this? I have > included it in AppCont

Re: Redirect to json extension

2014-04-04 Thread Jeremy Burns
So this seems to work... In AppController->beforeFilter(): if ($this->request->isMobile()) { $this->RequestHandler->renderAs($this, 'json'); } Now all mobile requests (including redirections) se the json equivalent view (e.g. /Views/Users/json/login.ctp instead of /Views/Users/login.ctp) even

Redirect to json extension

2014-04-04 Thread Jeremy Burns
In our continued head long plunge into iOS app integration we have now got the iOS app talking nicely with the Cake controller code using json, Router::parseExtensions(); and json views. The next challenge is redirecting. For example, the Auth component's loginRedirect is set to a non json view