CakePHP???????? - PowerPoint PPT Presentation

1 / 27
About This Presentation
Title:

CakePHP????????

Description:

CakePHP Shin x blog – PowerPoint PPT presentation

Number of Views:49
Avg rating:3.0/5.0
Slides: 28
Provided by: shin100
Category:
Tags: cakephp | smarty

less

Transcript and Presenter's Notes

Title: CakePHP????????


1
CakePHP????????
  • Shin x blog
  • ?? ??

2
????
  • ????(???? ???)??????
  • ???Web??????????
  • Shin x blog ??? blog???????http//www.1x1.jp/blog
    /
  • CakePHP??????????????gt???????????

3
Agenda
  • ???? ??????
  • ???? ?????
  • ???? PM?
  • ??????

4
???? ??????
  • bake
  • ??????
  • ??????
  • ????

5
bake
  • ??
  • ????
  • ????????
  • ??????????????????
  • ?????????????????
  • ???????

6
??????
  • MVC??????????????
  • ?????????????????????
  • ??????????????PHP?????????????????

7
?????? - GET/POST?????
  • Controllerparams?????
  • lt?php
  • // _GET
  • this-gtparamsurl
  • // _POST
  • this-gtparamsform
  • ?gt

8
?????? - Session
  • SessionComponent
  • Controller??components???????????

9
?????? - Cookie
  • 1.1?_COOKIEgt ??????????
  • 1.2?CookieComponet

10
?????? - ???????????
  • ????????????????gt ????
  • ??????????????HTML???
  • 1.1??HtmlHelpertagValue()
  • 1.2??Helpervalue()
  • ltinput typetext valuelt?php echo
    h(html-gtvalue()) ?gt /gt
  • ltinput typetext valuelt?
    h(html-gtvalue()) ?gt /gt

11
?????? - DB
  • SQL?????
  • Modelquery()?DboSourceexecute()
  • lt?php
  • Class HogeController extends AppController
  • function foo()
  • sql insert into hoges select
    name,status from foos
  • this-gtHoge-gtquery(sql)
  • ?gt

12
??????
  • XSS/CSRF/SQL Injection
  • this-gtdata?????????gt ?????????????
  • find/findAll?????????????????

13
????
  • ??????????????????gt ???Cake???????????
  • vendors/ or app/vendors ???
  • vendor()?????
  • ?????????????

14
???
  • ?????????????
  • ???????????????gt ???????????????
  • ?????????????????

15
???? ?????
  • ?????????
  • MVC
  • ????????

16
????????? ???
  • ?????.html????
  • Controllerext??????
  • lt?php
  • class AppController extends Controller
  • public ext .html
  • ?gt

17
????????? ?????
  • ??????????????????????
  • ????????gt ????????????????? ??????
  • app/views/layouts/default.html
  • lt?php echo content_for_layout?gt
  • lt?php echo cakeDebug?gt

18
MVC
  • URL??????????????????????????
  • /hoge/foo ????????/hoge/foo??????????
  • /hoge/foo?????????????????
  • .php?????????
  • ?????????????

19
????????
  • ??????????????
  • 1.1??HtmlHelpertagErrorMsg()
  • 1.2??FormHelpererror()
  • ?????????????????

20
???
  • ????????????
  • ?????????
  • ????Smarty????????

21
???? PM?
  • ??????
  • ?????

22
??????
  • ?????
  • (???????)?????

23
?????
  • ?????????
  • ?????????????
  • ?????

24
???
  • ???????????????????gt ????????
  • PHP5?????????
  • gt PHP4/5??
  • Rails?????????????????????????

25
??????
  • ????????????
  • ??????????
  • ???????????????????
  • ????????????????????gt ????FW

26
1.1?1.2?
  • 1.1???????1.1?
  • ??????1.2?
  • ??????????1.2????

27
??????????????
  • Happy baking!!
Write a Comment
User Comments (0)
About PowerShow.com