ȥå   Խ ʬ Хåå ź ʣ ̾ѹ   ñ측 ǽ   إ   ǽRSS

CakePHP2.xط

Last-modified: 2016-11-07 () 12:00:35 (261d)
Top / CakePHP2.xط

HASHؿ - ȤʤϹȤŷ˶Ť

ǥΥưŪѹ

Searchץ饰 - ʤñ˸ǽɲäǤ

CakephpΥեoptgroupϻˤ֤Ĥä

Containableӥإӥ - ʤưڤΥƤ

recursive ǤȤפäͤϻǤ⸫٤ӥإӥ

󥽡()饳ȥΥ¹Ԥˡ!

󥽡ΥǥХåϤˤΤǡ̤ΥƤ¹ԤǤΤ

CakePHP Upload ץ饰

Ͼ֤뤬¿̤ʥåץɤȥͥǤ롣

̤ʸǼ

CakePHP2saveALLinsertidΥꥹȤ

CakePHP ŪƥĤURLˤĤ | /app/webroot/ ʲΥڡʣURLǤΥ .htaccess Ƕػߤ롣

/app/webroot/test/index.html ֤
example.com/test/index.html
example.com/test/
ǥǤ뤬
example.com/test 
ǥ
example.com/app/webroot/test/
˥Ƥޤ

ɽμ³ϤʤSEOʤƱեʣURLȤ꤬ȯ롣
  • /app/webroot/.htaccess Ԥɲ
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
    #ʲԤɲ
    RewriteCond %{THE_REQUEST} "^(.+?) (.*?)/app/webroot/(.*?) (.+?)$"
    RewriteRule ^(.*?)$ %2/%3 [R=301,L]
    </IfModule>

CakePHP2ǡ󥯻֥ߥåȻ˳ǧ顼Ȥɽˡ

  • 󥯤䥵֥ߥåȥܥ˴ñ˳ǧܥɲäǤ롣˺줬