Enviar pesquisa
Carregar
CakePHP and AJAX
•
6 gostaram
•
7,811 visualizações
Mark Scherer
Seguir
CakePHP and AJAX - Talk at CakeFest Conference in Madrid 2014
Leia menos
Leia mais
Software
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 22
Baixar agora
Baixar para ler offline
Recomendados
6 introduction-php-mvc-cakephp-m6-views-slides
6 introduction-php-mvc-cakephp-m6-views-slides
MasterCode.vn
CakePHP: An Introduction
CakePHP: An Introduction
Diana Jayne Gonzales
CakePHP - Admin Acl Controlled
CakePHP - Admin Acl Controlled
Luís Fred
Build website in_django
Build website in_django
swee meng ng
Road to CakePHP 3.0
Road to CakePHP 3.0
markstory
Flask
Flask
Mamta Kumari
CakePHP 3.0: Embracing the future
CakePHP 3.0: Embracing the future
José Lorenzo Rodríguez Urdaneta
CakePHP 3
CakePHP 3
rafaelfqf
Recomendados
6 introduction-php-mvc-cakephp-m6-views-slides
6 introduction-php-mvc-cakephp-m6-views-slides
MasterCode.vn
CakePHP: An Introduction
CakePHP: An Introduction
Diana Jayne Gonzales
CakePHP - Admin Acl Controlled
CakePHP - Admin Acl Controlled
Luís Fred
Build website in_django
Build website in_django
swee meng ng
Road to CakePHP 3.0
Road to CakePHP 3.0
markstory
Flask
Flask
Mamta Kumari
CakePHP 3.0: Embracing the future
CakePHP 3.0: Embracing the future
José Lorenzo Rodríguez Urdaneta
CakePHP 3
CakePHP 3
rafaelfqf
Django, What is it, Why is it cool?
Django, What is it, Why is it cool?
Tom Brander
Behaviour Driven Development con Behat & Drupal
Behaviour Driven Development con Behat & Drupal
sparkfabrik
Scalable web application architecture
Scalable web application architecture
postrational
Presentation laravel 5 4
Presentation laravel 5 4
Christen Gjølbye Christensen
Play with Alfresco ADF 2.0.0 Angular
Play with Alfresco ADF 2.0.0 Angular
Eugenio Romano
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
Joe Ferguson
Intro to CakePHP 1.3
Intro to CakePHP 1.3
Adam Culp
40+ tips to use Postman more efficiently
40+ tips to use Postman more efficiently
postmanclient
Tools of the CPAN Ninja
Tools of the CPAN Ninja
Aran Deltac
Django app deployment in Azure By Saurabh Agarwal
Django app deployment in Azure By Saurabh Agarwal
ratneshsinghparihar
Installing php 7.4 Nginx Laravel 7.x on Centos 8
Installing php 7.4 Nginx Laravel 7.x on Centos 8
Raja Rozali Raja Hasan
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
Joe Ferguson
CPAN Dependency Heaven
CPAN Dependency Heaven
OpusVL
Django
Django
Abhijeet Shekhar
Nexthink Library - replacing a ruby on rails application with Scala and Spray
Nexthink Library - replacing a ruby on rails application with Scala and Spray
Matthew Farwell
Laravel 5.4
Laravel 5.4
Nisha Patel
Web Application Development using MVC Framework Kohana
Web Application Development using MVC Framework Kohana
Arafat Rahman
Why Laravel?
Why Laravel?
Jonathan Goode
Sauce Labs Beta Program Overview
Sauce Labs Beta Program Overview
Al Sargent
10 Laravel packages everyone should know
10 Laravel packages everyone should know
Povilas Korop
CakePHP mistakes made
CakePHP mistakes made
markstory
Recursive in CakePHP
Recursive in CakePHP
Ketan Patel
Mais conteúdo relacionado
Mais procurados
Django, What is it, Why is it cool?
Django, What is it, Why is it cool?
Tom Brander
Behaviour Driven Development con Behat & Drupal
Behaviour Driven Development con Behat & Drupal
sparkfabrik
Scalable web application architecture
Scalable web application architecture
postrational
Presentation laravel 5 4
Presentation laravel 5 4
Christen Gjølbye Christensen
Play with Alfresco ADF 2.0.0 Angular
Play with Alfresco ADF 2.0.0 Angular
Eugenio Romano
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
Joe Ferguson
Intro to CakePHP 1.3
Intro to CakePHP 1.3
Adam Culp
40+ tips to use Postman more efficiently
40+ tips to use Postman more efficiently
postmanclient
Tools of the CPAN Ninja
Tools of the CPAN Ninja
Aran Deltac
Django app deployment in Azure By Saurabh Agarwal
Django app deployment in Azure By Saurabh Agarwal
ratneshsinghparihar
Installing php 7.4 Nginx Laravel 7.x on Centos 8
Installing php 7.4 Nginx Laravel 7.x on Centos 8
Raja Rozali Raja Hasan
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
Joe Ferguson
CPAN Dependency Heaven
CPAN Dependency Heaven
OpusVL
Django
Django
Abhijeet Shekhar
Nexthink Library - replacing a ruby on rails application with Scala and Spray
Nexthink Library - replacing a ruby on rails application with Scala and Spray
Matthew Farwell
Laravel 5.4
Laravel 5.4
Nisha Patel
Web Application Development using MVC Framework Kohana
Web Application Development using MVC Framework Kohana
Arafat Rahman
Why Laravel?
Why Laravel?
Jonathan Goode
Sauce Labs Beta Program Overview
Sauce Labs Beta Program Overview
Al Sargent
10 Laravel packages everyone should know
10 Laravel packages everyone should know
Povilas Korop
Mais procurados
(20)
Django, What is it, Why is it cool?
Django, What is it, Why is it cool?
Behaviour Driven Development con Behat & Drupal
Behaviour Driven Development con Behat & Drupal
Scalable web application architecture
Scalable web application architecture
Presentation laravel 5 4
Presentation laravel 5 4
Play with Alfresco ADF 2.0.0 Angular
Play with Alfresco ADF 2.0.0 Angular
Laravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
Intro to CakePHP 1.3
Intro to CakePHP 1.3
40+ tips to use Postman more efficiently
40+ tips to use Postman more efficiently
Tools of the CPAN Ninja
Tools of the CPAN Ninja
Django app deployment in Azure By Saurabh Agarwal
Django app deployment in Azure By Saurabh Agarwal
Installing php 7.4 Nginx Laravel 7.x on Centos 8
Installing php 7.4 Nginx Laravel 7.x on Centos 8
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
CPAN Dependency Heaven
CPAN Dependency Heaven
Django
Django
Nexthink Library - replacing a ruby on rails application with Scala and Spray
Nexthink Library - replacing a ruby on rails application with Scala and Spray
Laravel 5.4
Laravel 5.4
Web Application Development using MVC Framework Kohana
Web Application Development using MVC Framework Kohana
Why Laravel?
Why Laravel?
Sauce Labs Beta Program Overview
Sauce Labs Beta Program Overview
10 Laravel packages everyone should know
10 Laravel packages everyone should know
Destaque
CakePHP mistakes made
CakePHP mistakes made
markstory
Recursive in CakePHP
Recursive in CakePHP
Ketan Patel
Customize CakePHP bake
Customize CakePHP bake
Kazuyuki Aoki
CakePHP Community Keynote 2014
CakePHP Community Keynote 2014
James Watts
PHPUnit with CakePHP and Yii
PHPUnit with CakePHP and Yii
madhavi Ghadge
Top 50 Interview Questions and Answers in CakePHP
Top 50 Interview Questions and Answers in CakePHP
Ketan Patel
Agile database access with CakePHP 3
Agile database access with CakePHP 3
José Lorenzo Rodríguez Urdaneta
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
José Lorenzo Rodríguez Urdaneta
Katalog
Katalog
joawe96
Questionnaire analysis stephen
Questionnaire analysis stephen
SHubbard1
Hakaworks proposal russia jul13
Hakaworks proposal russia jul13
Kirill Ustinov
Socializacijos programa „Bildukai 2010“
Socializacijos programa „Bildukai 2010“
Vidmantas Budrys
Media ppt
Media ppt
Nageena Attariya
Prezentacja sms wroclaw
Prezentacja sms wroclaw
Scubaru
iPad 2 accessibility
iPad 2 accessibility
Lisamarie Collaco
Обзор работы паевых фондов 31 октября - 7 ноября
Обзор работы паевых фондов 31 октября - 7 ноября
Sergey Manvelov
인류 진보 강화 계획
인류 진보 강화 계획
Sung Ho Moon
Topik 1.0
Topik 1.0
azreen_uthm
2 класс. lesson 39. волшебная шляпа
2 класс. lesson 39. волшебная шляпа
shpinat
Introduction to libel
Introduction to libel
Aigerim Mamyrova
Destaque
(20)
CakePHP mistakes made
CakePHP mistakes made
Recursive in CakePHP
Recursive in CakePHP
Customize CakePHP bake
Customize CakePHP bake
CakePHP Community Keynote 2014
CakePHP Community Keynote 2014
PHPUnit with CakePHP and Yii
PHPUnit with CakePHP and Yii
Top 50 Interview Questions and Answers in CakePHP
Top 50 Interview Questions and Answers in CakePHP
Agile database access with CakePHP 3
Agile database access with CakePHP 3
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
Katalog
Katalog
Questionnaire analysis stephen
Questionnaire analysis stephen
Hakaworks proposal russia jul13
Hakaworks proposal russia jul13
Socializacijos programa „Bildukai 2010“
Socializacijos programa „Bildukai 2010“
Media ppt
Media ppt
Prezentacja sms wroclaw
Prezentacja sms wroclaw
iPad 2 accessibility
iPad 2 accessibility
Обзор работы паевых фондов 31 октября - 7 ноября
Обзор работы паевых фондов 31 октября - 7 ноября
인류 진보 강화 계획
인류 진보 강화 계획
Topik 1.0
Topik 1.0
2 класс. lesson 39. волшебная шляпа
2 класс. lesson 39. волшебная шляпа
Introduction to libel
Introduction to libel
Semelhante a CakePHP and AJAX
Optimizing CakePHP 2.x Apps
Optimizing CakePHP 2.x Apps
Juan Basso
03 form-data
03 form-data
snopteck
ASP.NET WEB API Training
ASP.NET WEB API Training
Chalermpon Areepong
Web api
Web api
Sudhakar Sharma
nguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-service
hazzaz
RESTful Web Services with JAX-RS
RESTful Web Services with JAX-RS
Carol McDonald
SPFx Webinar Loading SharePoint data in a SPFx Webpart
SPFx Webinar Loading SharePoint data in a SPFx Webpart
Jenkins NS
Web Scraping with PHP
Web Scraping with PHP
Matthew Turland
nodejs_at_a_glance.ppt
nodejs_at_a_glance.ppt
WalaSidhom1
Oracle APEX URLs Untangled & SEOptimized
Oracle APEX URLs Untangled & SEOptimized
Christian Rokitta
HTTP Basics Demo
HTTP Basics Demo
InMobi Technology
ODTUG KSCOPE 2018 - REST APIs for FDMEE and Cloud Data Management
ODTUG KSCOPE 2018 - REST APIs for FDMEE and Cloud Data Management
Francisco Amores
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Nguyen Duc Phu
What's new in Rails 4
What's new in Rails 4
Lucas Caton
PHP Continuous Data Processing
PHP Continuous Data Processing
Michael Peacock
JavaOne 2009 - TS-5276 - RESTful Protocol Buffers
JavaOne 2009 - TS-5276 - RESTful Protocol Buffers
Matt O'Keefe
Best Practices for Architecting a Pragmatic Web API.
Best Practices for Architecting a Pragmatic Web API.
Mario Cardinal
Cakefest 2010: API Development
Cakefest 2010: API Development
Andrew Curioso
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
lanslote
Cakephp
Cakephp
Ly Channa
Semelhante a CakePHP and AJAX
(20)
Optimizing CakePHP 2.x Apps
Optimizing CakePHP 2.x Apps
03 form-data
03 form-data
ASP.NET WEB API Training
ASP.NET WEB API Training
Web api
Web api
nguyenhainhathuy-building-restful-web-service
nguyenhainhathuy-building-restful-web-service
RESTful Web Services with JAX-RS
RESTful Web Services with JAX-RS
SPFx Webinar Loading SharePoint data in a SPFx Webpart
SPFx Webinar Loading SharePoint data in a SPFx Webpart
Web Scraping with PHP
Web Scraping with PHP
nodejs_at_a_glance.ppt
nodejs_at_a_glance.ppt
Oracle APEX URLs Untangled & SEOptimized
Oracle APEX URLs Untangled & SEOptimized
HTTP Basics Demo
HTTP Basics Demo
ODTUG KSCOPE 2018 - REST APIs for FDMEE and Cloud Data Management
ODTUG KSCOPE 2018 - REST APIs for FDMEE and Cloud Data Management
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
What's new in Rails 4
What's new in Rails 4
PHP Continuous Data Processing
PHP Continuous Data Processing
JavaOne 2009 - TS-5276 - RESTful Protocol Buffers
JavaOne 2009 - TS-5276 - RESTful Protocol Buffers
Best Practices for Architecting a Pragmatic Web API.
Best Practices for Architecting a Pragmatic Web API.
Cakefest 2010: API Development
Cakefest 2010: API Development
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
[SharePoint Korea Conference 2013 / 강율구] Sharepoint 스마트하게 개발하기
Cakephp
Cakephp
Último
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Steffen Staab
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
Jittipong Loespradit
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
Willy Marroquin (WillyDevNET)
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
masabamasaba
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
WSO2
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2
The title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
tonesoftg
tonesoftg
lanshi9
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
panagenda
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
Shane Coughlan
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
SelfMade bd
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Bert Jan Schrijver
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
masabamasaba
Último
(20)
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
The title is not connected to what is inside
The title is not connected to what is inside
tonesoftg
tonesoftg
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
CakePHP and AJAX
1.
CakeFest Conference 2014 - Mark Scherer (@dereuromark)
2.
Using CakePHP for 6+ years (starting with 1.2) Core Developer since 2+ years Active blogger about CakePHP issues and solutions Germany (Berlin) Passionate PHP and Open Source Developer
3.
What is AJAX When to use it Basics Using GET Using POST More examples Tips
4.
5.
Load the whole page once. Then fetch only parts or tiny snippets of updates via follow-up requests. Only needs a fraction of the resource/bandwith.
6.
Data exchange without changing position Inline editing Real time validation Native look and feel Pre-fetching Data lookups ...
7.
SEO / Crawling Browser History Bookmarking Network issues Polling Same Origin Policy
8.
GET requests should be used only to retrieve data
9.
/controller/action text/html /controller/action.json application/json URL should match the expected format
10.
// Config/routes.php Router::parseExtensions(); Router::setExtensions(array('json', 'xml', 'csv', 'rss', 'pdf')); // AppController.php public $components = array('RequestHandler');
11.
if ($this->request->is(array('ajax'))) {} $this->request->allowMethod('ajax');
12.
/** * AJAX action to get favorites * * @return string */ public function favorites() { $this->autoRender = false; // We don't render a view in this example $this->request->allowMethod(array('ajax')); // No direct access via browser URL $data = array( 'content' => ..., 'error' => '', ); $this->response->body(json_encode($data)); } GET /controller_name/favorites.json
13.
/** * AJAX action to get favorites * * @return void */ public function favorites() { $this->request->allowMethod(array('ajax')); // No direct access via browser URL $data = array( 'content' => ..., 'error' => '', ); $this->set(compact('data')); // Pass $data to the view $this->set('_serialize', 'data'); // Let the JsonView class know what variable to use }
14.
<p> <button class="ajax-button" data-url="<?php echo $this->Html->url(array('action' => 'favorites', 'ext' => 'json'))?>"> Click me </button> </p> <p> Result: <span id="target"></span> </p>
15.
$(function() { $('.ajax-button').click(function(e) { var targeturl = $(this).data('url'); $.ajax({ type: "get", url: targeturl, beforeSend: function(xhr) { xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); }, success: function(res) { if (res.error != '') { alert(res.error); } else { $('#target').html(res.content); } }, error: function(e) { alert("Fehler bei der Anfrage!"); console.log(e); } }); }); });
16.
$_ENV['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest'; $url = Router::url(array( 'controller' => 'controller_name', 'action' => 'favorites', 'ext' => 'json', '?' => array('id' => 2) )); $options = array( 'return' => 'vars' ); $result = $this->testAction($url, $options); ... Makes sure $this->request->allowMethod(array('ajax')); passes
17.
... data: {'one' : $('#one').val(), 'two' : $('#two').val()}, ... $one = $this->request->data('one'); $two = $this->request->data('two');
18.
$_ENV['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest'; $url = Router::url(array( 'controller' => 'controller_name', 'action' => 'favorites', 'ext' => 'json', '?' => array('id' => 2) )); $options = array( 'data' => array(...), 'method' => 'post' 'return' => 'vars' ); $result = $this->testAction($url, $options); ... 'data' array with method type 'post'
19.
Toggle Autocomplete Chained dropdowns Pagination
20.
// AppController.php - e.g. in beforeRender() if ($this->request->is('ajax')) { $this->response->disableCache(); }
21.
Questions?
22.
http://book.cakephp.org https://github.com/dereuromark/cakefest2014-app http://sandbox.dereuromark.de/sandbox/ajax_examples http://sandbox.dereuromark.de/sandbox/jquery_examples/ autocomplete http://www.dereuromark.de/2014/01/09/ajax-and- cakephp/ https://github.com/dereuromark/tools
Baixar agora