Submit Search
Upload
Talkaboutlithium
•
Download as KEY, PDF
•
0 likes
•
778 views
N
noppoman722
Follow
lithium for cakephpher authored by noppoMan722
Read less
Read more
Technology
Business
Report
Share
Report
Share
1 of 36
Download now
Recommended
Lithium Best
Lithium Best
Richard McIntyre
Feeds drupal cafe
Feeds drupal cafe
Andrii Podanenko
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
ichikaway
A jar-nORM-ous Task
A jar-nORM-ous Task
Erin Dees
Building Lithium Apps
Building Lithium Apps
Nate Abele
mongodb-introduction
mongodb-introduction
Tse-Ching Ho
Advanced symfony Techniques
Advanced symfony Techniques
Kris Wallsmith
Introducing Assetic (NYPHP)
Introducing Assetic (NYPHP)
Kris Wallsmith
Recommended
Lithium Best
Lithium Best
Richard McIntyre
Feeds drupal cafe
Feeds drupal cafe
Andrii Podanenko
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
ichikaway
A jar-nORM-ous Task
A jar-nORM-ous Task
Erin Dees
Building Lithium Apps
Building Lithium Apps
Nate Abele
mongodb-introduction
mongodb-introduction
Tse-Ching Ho
Advanced symfony Techniques
Advanced symfony Techniques
Kris Wallsmith
Introducing Assetic (NYPHP)
Introducing Assetic (NYPHP)
Kris Wallsmith
Current state-of-php
Current state-of-php
Richard McIntyre
CodeIgniter 3.0
CodeIgniter 3.0
Phil Sturgeon
Lithium: The Framework for People Who Hate Frameworks, Tokyo Edition
Lithium: The Framework for People Who Hate Frameworks, Tokyo Edition
Nate Abele
Speed up your developments with Symfony2
Speed up your developments with Symfony2
Hugo Hamon
How to use MongoDB with CakePHP
How to use MongoDB with CakePHP
ichikaway
Introduction to CloudForecast / YAPC::Asia 2010 Tokyo
Introduction to CloudForecast / YAPC::Asia 2010 Tokyo
Masahiro Nagano
Doctrine MongoDB ODM (PDXPHP)
Doctrine MongoDB ODM (PDXPHP)
Kris Wallsmith
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Tsuyoshi Yamamoto
The Zen of Lithium
The Zen of Lithium
Nate Abele
Redis for your boss 2.0
Redis for your boss 2.0
Elena Kolevska
News of the Symfony2 World
News of the Symfony2 World
Fabien Potencier
Silex meets SOAP & REST
Silex meets SOAP & REST
Hugo Hamon
Alfredo-PUMEX
Alfredo-PUMEX
tutorialsruby
関西PHP勉強会 php5.4つまみぐい
関西PHP勉強会 php5.4つまみぐい
Hisateru Tanaka
4069180 Caching Performance Lessons From Facebook
4069180 Caching Performance Lessons From Facebook
guoqing75
Redis for your boss
Redis for your boss
Elena Kolevska
PHP 5.3 and Lithium: the most rad php framework
PHP 5.3 and Lithium: the most rad php framework
G Woo
Get into the FLOW with Extbase
Get into the FLOW with Extbase
Jochen Rau
Ansible leveraging 2.0
Ansible leveraging 2.0
bcoca
第3回Grails/Groovy勉強会名古屋「Grails名古屋座談会」
第3回Grails/Groovy勉強会名古屋「Grails名古屋座談会」
Tsuyoshi Yamamoto
Layouts
Layouts
amber_foster
Instructions AIMPOINT CompM4, 3XMag | Optics Trade
Instructions AIMPOINT CompM4, 3XMag | Optics Trade
Optics-Trade
More Related Content
What's hot
Current state-of-php
Current state-of-php
Richard McIntyre
CodeIgniter 3.0
CodeIgniter 3.0
Phil Sturgeon
Lithium: The Framework for People Who Hate Frameworks, Tokyo Edition
Lithium: The Framework for People Who Hate Frameworks, Tokyo Edition
Nate Abele
Speed up your developments with Symfony2
Speed up your developments with Symfony2
Hugo Hamon
How to use MongoDB with CakePHP
How to use MongoDB with CakePHP
ichikaway
Introduction to CloudForecast / YAPC::Asia 2010 Tokyo
Introduction to CloudForecast / YAPC::Asia 2010 Tokyo
Masahiro Nagano
Doctrine MongoDB ODM (PDXPHP)
Doctrine MongoDB ODM (PDXPHP)
Kris Wallsmith
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Tsuyoshi Yamamoto
The Zen of Lithium
The Zen of Lithium
Nate Abele
Redis for your boss 2.0
Redis for your boss 2.0
Elena Kolevska
News of the Symfony2 World
News of the Symfony2 World
Fabien Potencier
Silex meets SOAP & REST
Silex meets SOAP & REST
Hugo Hamon
Alfredo-PUMEX
Alfredo-PUMEX
tutorialsruby
関西PHP勉強会 php5.4つまみぐい
関西PHP勉強会 php5.4つまみぐい
Hisateru Tanaka
4069180 Caching Performance Lessons From Facebook
4069180 Caching Performance Lessons From Facebook
guoqing75
Redis for your boss
Redis for your boss
Elena Kolevska
PHP 5.3 and Lithium: the most rad php framework
PHP 5.3 and Lithium: the most rad php framework
G Woo
Get into the FLOW with Extbase
Get into the FLOW with Extbase
Jochen Rau
Ansible leveraging 2.0
Ansible leveraging 2.0
bcoca
第3回Grails/Groovy勉強会名古屋「Grails名古屋座談会」
第3回Grails/Groovy勉強会名古屋「Grails名古屋座談会」
Tsuyoshi Yamamoto
What's hot
(20)
Current state-of-php
Current state-of-php
CodeIgniter 3.0
CodeIgniter 3.0
Lithium: The Framework for People Who Hate Frameworks, Tokyo Edition
Lithium: The Framework for People Who Hate Frameworks, Tokyo Edition
Speed up your developments with Symfony2
Speed up your developments with Symfony2
How to use MongoDB with CakePHP
How to use MongoDB with CakePHP
Introduction to CloudForecast / YAPC::Asia 2010 Tokyo
Introduction to CloudForecast / YAPC::Asia 2010 Tokyo
Doctrine MongoDB ODM (PDXPHP)
Doctrine MongoDB ODM (PDXPHP)
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
Grails 1.2 探検隊 -新たな聖杯をもとめて・・・-
The Zen of Lithium
The Zen of Lithium
Redis for your boss 2.0
Redis for your boss 2.0
News of the Symfony2 World
News of the Symfony2 World
Silex meets SOAP & REST
Silex meets SOAP & REST
Alfredo-PUMEX
Alfredo-PUMEX
関西PHP勉強会 php5.4つまみぐい
関西PHP勉強会 php5.4つまみぐい
4069180 Caching Performance Lessons From Facebook
4069180 Caching Performance Lessons From Facebook
Redis for your boss
Redis for your boss
PHP 5.3 and Lithium: the most rad php framework
PHP 5.3 and Lithium: the most rad php framework
Get into the FLOW with Extbase
Get into the FLOW with Extbase
Ansible leveraging 2.0
Ansible leveraging 2.0
第3回Grails/Groovy勉強会名古屋「Grails名古屋座談会」
第3回Grails/Groovy勉強会名古屋「Grails名古屋座談会」
Viewers also liked
Layouts
Layouts
amber_foster
Instructions AIMPOINT CompM4, 3XMag | Optics Trade
Instructions AIMPOINT CompM4, 3XMag | Optics Trade
Optics-Trade
87 paper battery
87 paper battery
muni kanth
Mendeleyev cedveli mbm
Mendeleyev cedveli mbm
MirNamik
CFD Analysis of a Cyclone Seperator
CFD Analysis of a Cyclone Seperator
ijsrd.com
Electric Vehicle University - 210a EV BATTERY TECHNOLOGY
Electric Vehicle University - 210a EV BATTERY TECHNOLOGY
EVANNEX Aftermarket Tesla Accessories
Polymer/Ionic Liquid Electrolytes and Their Potential in Lithium Batteries
Polymer/Ionic Liquid Electrolytes and Their Potential in Lithium Batteries
Fuentek, LLC
Paper battery 112&24
Paper battery 112&24
dekkasampath
Ultracapacitors
Ultracapacitors
Keyur Patel
PP Battery Separator for Lithium-Ion Battery Manufacturing
PP Battery Separator for Lithium-Ion Battery Manufacturing
Targray
Lithium ion battery
Lithium ion battery
Gowtham Subramanian
Lithium
Lithium
saraponme20
Presenting u about paper battery
Presenting u about paper battery
Grishma Rao
Polymeric materials for organic solar cells
Polymeric materials for organic solar cells
Neslihan Yagmur
Jyoth ir mai-paper battery
Jyoth ir mai-paper battery
Jyothirmai Jyo
Ppo Presentation
Ppo Presentation
rainman.zhao
Piezoelectric energy assisted car
Piezoelectric energy assisted car
Biswajit Pratihari
Paper battery
Paper battery
Riyas K H
Alkaline Battery
Alkaline Battery
Deepakreddy suram
Lithium
Lithium
Shah Parind
Viewers also liked
(20)
Layouts
Layouts
Instructions AIMPOINT CompM4, 3XMag | Optics Trade
Instructions AIMPOINT CompM4, 3XMag | Optics Trade
87 paper battery
87 paper battery
Mendeleyev cedveli mbm
Mendeleyev cedveli mbm
CFD Analysis of a Cyclone Seperator
CFD Analysis of a Cyclone Seperator
Electric Vehicle University - 210a EV BATTERY TECHNOLOGY
Electric Vehicle University - 210a EV BATTERY TECHNOLOGY
Polymer/Ionic Liquid Electrolytes and Their Potential in Lithium Batteries
Polymer/Ionic Liquid Electrolytes and Their Potential in Lithium Batteries
Paper battery 112&24
Paper battery 112&24
Ultracapacitors
Ultracapacitors
PP Battery Separator for Lithium-Ion Battery Manufacturing
PP Battery Separator for Lithium-Ion Battery Manufacturing
Lithium ion battery
Lithium ion battery
Lithium
Lithium
Presenting u about paper battery
Presenting u about paper battery
Polymeric materials for organic solar cells
Polymeric materials for organic solar cells
Jyoth ir mai-paper battery
Jyoth ir mai-paper battery
Ppo Presentation
Ppo Presentation
Piezoelectric energy assisted car
Piezoelectric energy assisted car
Paper battery
Paper battery
Alkaline Battery
Alkaline Battery
Lithium
Lithium
Similar to Talkaboutlithium
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Tatsuhiko Miyagawa
Play vs Rails
Play vs Rails
Daniel Cukier
Ch ch-changes cake php2
Ch ch-changes cake php2
markstory
Facebook的缓存系统
Facebook的缓存系统
yiditushe
Intro to PSGI and Plack
Intro to PSGI and Plack
Tatsuhiko Miyagawa
PHP and Rich Internet Applications
PHP and Rich Internet Applications
elliando dias
Bootstrat REST APIs with Laravel 5
Bootstrat REST APIs with Laravel 5
Elena Kolevska
Psgi Plack Sfpm
Psgi Plack Sfpm
som_nangia
Psgi Plack Sfpm
Psgi Plack Sfpm
wilburlo
Debugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 Version
Ian Barber
Rails 3 overview
Rails 3 overview
Yehuda Katz
Blog Hacks 2011
Blog Hacks 2011
Yusuke Wada
Debugging: Rules & Tools
Debugging: Rules & Tools
Ian Barber
How to replace rails asset pipeline with webpack?
How to replace rails asset pipeline with webpack?
Tomasz Bak
PHP Data Objects
PHP Data Objects
Wez Furlong
PHP Performance Trivia
PHP Performance Trivia
Nikita Popov
Backbone.js — Introduction to client-side JavaScript MVC
Backbone.js — Introduction to client-side JavaScript MVC
pootsbook
CodeIgniter PHP MVC Framework
CodeIgniter PHP MVC Framework
Bo-Yi Wu
Rails 3: Dashing to the Finish
Rails 3: Dashing to the Finish
Yehuda Katz
PHP and Rich Internet Applications
PHP and Rich Internet Applications
elliando dias
Similar to Talkaboutlithium
(20)
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Remedie: Building a desktop app with HTTP::Engine, SQLite and jQuery
Play vs Rails
Play vs Rails
Ch ch-changes cake php2
Ch ch-changes cake php2
Facebook的缓存系统
Facebook的缓存系统
Intro to PSGI and Plack
Intro to PSGI and Plack
PHP and Rich Internet Applications
PHP and Rich Internet Applications
Bootstrat REST APIs with Laravel 5
Bootstrat REST APIs with Laravel 5
Psgi Plack Sfpm
Psgi Plack Sfpm
Psgi Plack Sfpm
Psgi Plack Sfpm
Debugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 Version
Rails 3 overview
Rails 3 overview
Blog Hacks 2011
Blog Hacks 2011
Debugging: Rules & Tools
Debugging: Rules & Tools
How to replace rails asset pipeline with webpack?
How to replace rails asset pipeline with webpack?
PHP Data Objects
PHP Data Objects
PHP Performance Trivia
PHP Performance Trivia
Backbone.js — Introduction to client-side JavaScript MVC
Backbone.js — Introduction to client-side JavaScript MVC
CodeIgniter PHP MVC Framework
CodeIgniter PHP MVC Framework
Rails 3: Dashing to the Finish
Rails 3: Dashing to the Finish
PHP and Rich Internet Applications
PHP and Rich Internet Applications
Recently uploaded
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Manik S Magar
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
charlottematthew16
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Commit University
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
Fwdays
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Alex Barbosa Coqueiro
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
Scott Keck-Warren
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
Zilliz
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
The Digital Insurer
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Memoori
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Mark Simos
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Ridwan Fadjar
Recently uploaded
(20)
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Training state-of-the-art general text embedding
Training state-of-the-art general text embedding
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
Talkaboutlithium
1.
talk about lithium
cakephper lithium 2012/01/06
2.
lithium post lithium
3.
noppoman722 :23
java
4.
cakephp
Nate Abele cake phpFW cakephp3.0 cakephp php5.3 ( static call ) mongoDB CouchDB 0.10 6
5.
2
git clone li3 (cake bake) http://sourceforge.net/projects/li3/files/ lithium webroot
6.
webroot li3 http://koo.moo.jp/blog/2010/10/24/lithium-tutorial-1/
7.
lithium (http://localhost/lithium/)
8.
lthium
9.
10.
resouce
(log templates ) DB (cake routes) DB ( ) mysql mongoDB CouchDB sqlite3 ( ) Apc File Memcache Memory Redis XCache DB DB MongoDB APC (*apc ) mongo Mac : http://d.hatena.ne.jp/yohxx/20110130/1296396115 Cent OS : http://blog.mamemomonga.com/item/460
11.
POST
12.
database configuration app/lithium/bootstrap/connections.php
//mongoDB setting Connections::add(‘dev_mongo’ , array( ‘type’ => ‘MongoDb’ , ‘host’ => ‘localhost’ , ‘database’ => ‘posts’ )); cake
13.
model app/models/Post.php <?php namespace appmodels; class Post
extends lithiumdataModel {} lithium model
14.
controller app/controllers/PostsController.php namespace appcontrollers;
← (java package ) use appmodelsPost; ← (java import ) class PostsController extends lithiumactionController { ← public function index() { ! $posts = Post::all(); ←MongoDB post ! return compact('posts'); } public function add() { ! $success = false; ! if ($this->request->data) { ! $post = Post::create($this->request->data); ! $success = $post->save(); ! } ! return compact('success'); } }
15.
view app/views/posts/index.html.php (
) <?php foreach($posts as $post): ?> <article> <h1><?=$post->title ?></h1> <p><?=$post->body ?></p> </article> <?php endforeach; ?> <?=$this->html->link('add','/posts/add'); ?> app/views/posts/post.html.php <?php if ($success): ?> <p>Post Successfully Saved</p> <?php endif; ?> <?=$this->form->create(); ?> <?=$this->form->field('title');?> <?=$this->form->field('body', array('type' => 'textarea'));?> <?=$this->form->submit('Add Post'); ?> <?=$this->form->end(); ?> <?=$this->html->link('index','/posts/index'); ?> twig smarty cake cake
16.
MVC
(http://localhost/posts/index)
17.
POST!
$post = Post::create($this->request->data); lithiumdataentityDocument $post->save(); (json mongo ) mongo
18.
mongo
19.
MongoDB
20.
cake
php controller render ( ) Component DB view .ctp .html.php Cool (cake ww) cake
21.
lithium
22.
23.
lithium
Chain of Respnsibility lithium lithium Chain of Respnsibility J2EE SERVLET Filter (wiki) http://ja.wikipedia.org/wiki/Chain_of_Responsibility_%E3%83%91%E3%82%BF%E3%83%BC%E3%83%B3
24.
Filter lithiumactionDispatcher::applyFilter() app/webroot/index.php <?php //log lithiumanalysisLogger::config(array('default' => array('adapter'
=> 'File'))); $debugMessage = __FUNCTION__ . __LINE__; lithiumactionDispatcher::applyFilter('run', ! function($self, $params, $chain) use ($debugMessage) { ! ! lithiumanalysisLogger::debug($debugMessage); // ! ! $res = $chain->next($self, $params, $chain); // ! ! return $res; ! } ); echo lithiumactionDispatcher::run(new lithiumactionRequest()); (lithiumcoreStaticObject::$_methodFilters key Dispatcher::run ) lithium http://www.1x1.jp/blog/2010/10/lithium_filter_system.html
25.
cake
controller
26.
render lithiumactionController.php protected $_render =
array( ! ! 'type' => null, ! ! 'data' => array(), ! ! 'auto' => true, ! ! 'layout' => 'default', ! ! 'template' => null, ! ! 'hasRendered' => false, ! ! 'negotiate' => false ! ); cake $this->layout $this->autoRender lithiumactionController->render()
27.
$this->autoRender = false; $this->layout
= ‘default’; $this->set(‘key’,‘val’); lithium $this->render(array(‘auto’ => false, ‘layout’ => ‘default’, ‘data’ => compact(‘hogehoge’)));
28.
cakephp
beforeFiter() _init() uses helpers components log $this->log lithiumanalysisLogger::debug() * cake AppController.php AppController.php $this->log()
29.
cake
model
30.
controller cakephp $this->primaryKey = “hogehoge”; $this->useDbConfig
= “sample”; lithium $this->config(‘key’ => ‘hogehoge’, ‘connection’ => ‘sample’); $_meta config() *primarykey id
31.
mysql app/config/bootstrap/connections.php Connections::add(“dev_mysql_master”
, array( ‘type‘ => ‘database’ , ‘adapter‘ => ‘Mysql’ , ‘host‘ => ‘localhost’ , ‘login‘ => ‘user’ , ‘password’ => ‘pass’ , ’database’ => ‘sampledb’ )); app/models/hogehoge.php $this->config(‘key’ => ‘hogehoge’, ‘connection’ => ‘dev_mysql_maseter’); ← Mysql public static function getAll(){ function args(){ $fields = array(‘id’, ‘title’); $condtions = array(‘id’ => 10); $offset = 3; $order = array(‘created’ => ‘desc’); return compact('fields', 'conditions', 'limit', 'offset', 'order') }; return lithiumdataModel::find('all', $args())->to('array'); }
32.
cakephp beforeFiter()
_init() model static Mysql PEAR mysql (PDO mysqli ) $this->query() $db = Connections::get($self::meta('connection')); // $db->read('SELECT * FROM post', array('return' => 'array'));
33.
model
AppModel.php AppModel.php _init() mysql mongo
34.
35.
cake php5.3 mongo
couchDB staticObject
Editor's Notes
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Download now