ã¡ã¢
Giiã§çæããã½ã¼ã¹ãã«ã¹ã¿ãã¤ãºãã¦ãé ç®ãã¨ã®ããªãã¼ã·ã§ã³ãªã©ã®è¨å®ã追å ãã¾ãã åèï¼ãã®è¾ºãä¸å¸¯ ãã©ã¼ã ã使ã: ã¢ãã«ã®ä½æ | Yii 1.1 å ¬å¼ã¬ã¤ã | Yii PHP Framework
Yiiãã¥ã¼ããªã¢ã«ç¶ã åèã¯å¼ãç¶ã åãã«: åãã¦ã® Yii ã¢ããªã±ã¼ã·ã§ã³ã®ä½æ | Yii 1.1 å ¬å¼ã¬ã¤ã | Yii PHP Framework
PHPãã¬ã¼ã ã¯ã¼ã¯Yiiã®ãã¥ã¼ããªã¢ã«ã¡ã¢ã Yiiã®å ¬å¼ããã¥ã¡ã³ãã¯åãããããã®ã§ãåºæ¬ãããè¦ã¦é²ãã åãã«: åãã¦ã® Yii ã¢ããªã±ã¼ã·ã§ã³ã®ä½æ | Yii 1.1 å ¬å¼ã¬ã¤ã | Yii PHP Framework
ã¡ã¢ã CakePHPã§æºå¸¯ã»PCå ±éãµã¤ãä½ã£ã¦ããããä¸é¨ã®æåãæºå¸¯ã§ã¯è¡¨ç¤ºãããªãã£ãã åå ä¸æã®ããã表示ããªãæååãå¤æ´ãã¦åé¿ããããNGæåã¨ç¶æ³ãã¡ã¢ã
ã¡ã¢ã pagerãfindã§ãã¼ã¿ãæ½åºããè¨å®$optionsã§ãjoinsã«ããINNER JOINãªã©ãè¡ãå ´åã database.phpã«ã¦ãã¼ãã«ã®prefixãè¨å®ããã¨æ£ããåããªããªãã ãã®å¯¾çã
ã³ã³ããã¼ã©ã§ã¯ã$this->paramsã§å¾ãããå¤ï¼ä¾ãã°$this->params['prefix']ã$this->params['admin']ãã ã³ã³ããã¼ã©ã»ã³ã³ãã¼ã³ãã³ã以å¤ã§å¾ãæ¹æ³ã
ä¸ã®è¨äºã§åå¨ãç¥ã£ãã®ã§ããã CakePHPã«ãæ§ã ãªãã¡ãã£ã¨ããå¦çãã追å ã§ãã UtilsPlugin ã¨ãã便å©ãªãã®ãé å¸ããã¦ãã¾ãã http://1-byte.jp/2011/01/06/open_trivist/ ããããå ¬å¼ãã¼ã¸(ver.1.1)ããREADMEãèªãã§ããä½ã«ã©ããã£ã¦ä½¿â¦
CakePHPãver.1.3ã«ã¢ããããã®ã«ä¼´ãã 1.2æ代ããå°å ¥ï¼æ¡å¼µã³ã³ãã¼ãã³ãå ¥ãã¦ç¬èªé£ããã¦ãããMediaãã©ã°ã¤ã³ãã1.3b*1ã«ã¢ãããã¼ããã¾ããããã®éã®ããã©ãã«è§£æ¶éç¨ã®ã¡ã¢ã§ãã * 注 ï¼ï¼ãç¬èªæ¡å¼µãç±æ¥ã®ä¸å ·åãæ··ãã£ã¦ãããããâ¦
CakePHPã¯ãã¼ã«ããã¯ãç°¡åã§ãããä½ããã®æ¡ä»¶åå²ã§save()å¦çãå·»ãæ»ãããå ´åã®è¨è¼æ¹æ³ãhttp://book.cakephp.org/ja/view/1633/Transactions
CakePHPã«CAPTCHAãå°å ¥ããæ¹æ³ã®ã¡ã¢
ãããã¤ã³ã¿ã¼ãããã¬ã³ã¿ã«ãµã¼ãã«CakePHPãã»ããã¢ããããæ¹æ³ã¯ãããã«å種æ å ±ãããã¾ããããããã§ããã«ã¯è§£æ±ºæ¹æ³ãè¦ã¤ãããªãã£ãç¹ã2ç¹ããã¾ããã mediaãã©ã°ã¤ã³ã§ã¢ããããç»åã表示ãããªã ãã¼ã¿ä¿ååã« Sanitize::cleanãè¡â¦
SourceForgeã®Webãã¹ãã£ã³ã°ãµã¼ãã¹ã«CakePHPãã»ããã¢ããããå ´åãapp/webroot ããã㯠Webroot/ 以ä¸ã® .htaccessã« RewriteBaseã®è¨å®è¿½å ãå¿ è¦ã§ãã <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /[è¨ç½®dirå] RewriteCond %{REQUEST_FILENAME} !-d RewriteC</ifmodule>â¦
CandyCaneã®ã¤ã³ã¹ãã¼ã©ãã©ã°ã¤ã³ã使ã£ã¦ã¿ã¦ãã¨ã©ã¼ã«ãªã£ãç®æã»ç§ãåéããã¦ãå®ä»æ§ã¯ä»¥ä¸ã®éãã app/configãã£ã¬ã¯ããªãèªã¿æ¸ãå¯ã«ããªãã¨database.phpãä½æã§ããªã 権éãå¤ãã¦ãªãã¨ãdatabase.php.installãdatabase.phpã«ãªãã¼ã â¦
ã³ã³ããã¼ã©ã® $this->set(ãã)ã§ã»ããããå¤ãåç §ããå±æ§ $this->viewVars[å¤æ°å] $this->viewVarsã¯é åãªã®ã§ãå¤ã®ãã§ãã¯ã¯ if (in_array('isOwner', $this->viewVars)ã if ($this->viewVars['isOwner'] !== true) {ãªã©ã§ã§ããã
saveAll()使ãå ´åã¯ãafterSave()ã®è¨å®ã«è¦æ³¨æãã¨ããã話ã§ãã
翻訳ããã¹ããè¨å®ããæ¹æ³ã§ãå¤è¨èªå(å½éå)対å¿ãè¡ãªã£ãä½æ¥ã¡ã¢ã§ãã ãã¼ã¿ãã¼ã¹ã«è¨å®ããæ¹æ³ãããããã§ããããã ã§ããACLã§DBã«è² æ ããã¦ããã®ã§ã翻訳ããã¹ãæ¹ãæ¡ç¨ãã¾ããã åèãµã¤ã CakePHP1.2ã®ç°¡åå½éå: CakePHP ã®ããâ¦
CakePHPã«ã¯ããã¼ããæ©è½ã¨ãããã®ãããããã¥ã¼ãã³ãã¬ã¼ããå¤æ´ãããã¨ãã§ãã¾ãã http://book.cakephp.org/ja/view/488/Themesã¤ã¾ãããã§ããã¹ãã³ãã§ã³ã¸ã£ã¼æ©è½ããå®è£ ã§ãã(ã¯ã)ãã§ãæ å ±ãå°ãªãã®ã§ãCakePHPã®é¢é£ã½ã¼ã¹ãèªãã§â¦
ã³ã³ããã¼ã©å $this->viewPath ã¢ã¯ã·ã§ã³å $this->action ããã㯠ã³ã³ããã¼ã©å $this->params["controller"] ã¢ã¯ã·ã§ã³å $this->params["action"]
ãã³ãã¬ã¼ãã§ãæååã«ç¹å®ã®å¦çãæ½ãã¦è¡¨ç¤ºãããå ´åãTextãã«ãã¼ã便å©ã§ãã http://book.cakephp.org/ja/view/216/Texttruncate (é·æçç¥)ãautoLink/autoLinkUrls (URLèªåãªã³ã¯)ããããé »åº¦ãé«ããã§ããã toList (é åãæååãªã¹ãã«â¦
ã³ãããããã·ã¥ãæå®ãã¦ãç¹å®ã®ã³ãããã§åæ ããå·®åãè¦ããå ´åã®ã³ãã³ãã git show [ã³ãããããã·ã¥] ã³ãããããã·ã¥ã¯ã HEAD ã HEAD^2 ã§ãOK
IE8ã§ã以ä¸ã®ã¡ã¿ã¿ã°ãè¨è¼ããã¨ãIE7æ¨æºã¢ã¼ããã§ã¬ã³ããªã³ã°ãããããã§ãã <meta http-equiv="X-UA-Compatible" content="IE=7">IE8ã®ã¬ã³ããªã³ã°ã¢ã¼ãã«é¢ããã¾ã¨ã | SummerWind IE5ã¨åçã¢ã¼ãã¨ããã®ãããããã§ãã æ¬æ¥ã®ç®çã¯ä»¥åIE対å¿ã§ãã¶ã¤ã³ãããã¼ã¸ãæ¹ä¿®ããã«è¡¨ç¤ºãããã</meta>â¦
302ã¨ã©ã¼ã«ãªãå ´åãã³ã³ããã¼ã©ãã¢ãã«ãã³ã³ãã¼ãã³ããªã©ã®ã½ã¼ã¹ã§PHPã¿ã°ãéããå¾*1ã«ä½ç½ãããã®ãåå ã§ãçºçãã¦ããå ´åãããããã§ãã http://old.nabble.com/Re%3A-TCPDF-error%3A-Some-data-has-already-been-output%2C-can%27t-sendâ¦
Mediaãã©ã°ã¤ã³ã«ããç»åã®ã¢ãããã¼ãæ©è½ä½æã§ãæ¸ããè¨äºã®ã¾ã¨ããªã³ã¯ã§ãã
éçãã¡ã¤ã«ããã³ã³ããã¼ã©ãéãã¦ã¢ã¯ã»ã¹ãããæ¹æ³ã http://book.cakephp.org/ja/view/489/Media-Viewsãã°ã¤ã³æ¸ã¿ã¡ã³ãã¼ã®ã¿ããããã¯æ¨©éã®ããã¡ã³ãã¼ã«ã®ã¿ãã¦ã³ãã¼ãã許å¯ãããå ´åãªã©ã«ä½¿ãã¾ãããµã³ãã«ã¯ãã¦ã³ãã¼ãã§ãããç»â¦
HTMLã¨CSSã®ã³ã¼ãã£ã³ã°ãé«éã«è¡ãªãããã©ã°ã¤ã³ããZen-Codingããªããã®ã話é¡ã«ãªã£ã¦ãã¾ãã http://blog.gaspanik.com/coding-with-textmate-and-zencoding 使ã£ã¦ããã¨ãã£ã¿ãZen-Codingã«å¯¾å¿ãã¦ããªãå ´åã ãããã¯ãã©ã°ã¤ã³ã®è¿½å ã®æéâ¦
mediaãã©ã°ã¤ã³ã§ãVersionãã¡ã¤ã«ã®è¨å®ã¯core.phpã«è¨å®ãã¾ãããå®éã«ã©ã®ããã«è¨å®ããã°ããã®ãã主ãªä¾ãã¾ã¨ãã¾ããããã©ã°ã¤ã³å´ã®config/core.phpãæ¹ä¿®ãããã bootstrap.phpã§mediaãã©ã°ã¤ã³ã®core.phpãèªã¿è¾¼ãã å¾ã§ãConfigureè¨å®â¦
å人çã«æ¬²ããTwitterãµã¼ãã¹ã¨ããããTwitterAPIã§å®è£ ããå ´åã®åé¡ç¹ã¡ã¢*1ã ãµã¼ãã¹ã®æ¦è¦ ç¹å®ã®æé帯ã«å ±éã®è©±é¡ã«ã¤ãã¦åãã¦ããï¼ããããªï¼ã¦ã¼ã¶ã®ã¤ã¶ããããã¿ã¤ã ã©ã¤ã³ã«æ²¿ã£ã¦ä¸¦ã¹ã¦è¡¨ç¤ºãã ã¡ãã£ã¨ãä¸çç¸ã«ã¯è¡ããªãããã§â¦
ã¡ãã£ã¨æãç«ã£ã¦ãtwitterã®ãã¤ã¹æ¯ãbotæ¢ãã¦ã¿ã¾ããããã¤ã¹ã¨ã«ã¼ãã®ãã¸ãã¯ã¯æã£ã¦ãã®ã§ããããbotä½ã£ã¦ãããããªããã¨æã£ãã®ã§ãããçºä¿¡ã®ã·ã¹ãã ã¨ãèããªãã¨é£ããã§ãããã
HTMLãã«ãã¼ã®tableHeaders, tableCellsã¯ãé åã®æ°ã ãth/tdãåºåãã¦ããããåçã«è¡¨ãä½ãéã«å®ã«ä¾¿å©ãªãã«ãã¼ãªã®ã§ãããtableHeaders第ä¸å¼æ°ãªãã·ã§ã³ã®$thOptionsã¯ãå ¨é¨ã®thã«åããªãã·ã§ã³ããæå®ã§ãã¾ãããCookBookã ãã§ã¯åãããªâ¦
Containã¯recursiveã§åããç¯å²ããçµãè¾¼ã Containè¨å®ãªãã§åãã¦ãªãã¢ãã«ã¯ãContainã§æå®ãã¦ãåå¾ã§ããªã recursiveã®é層ãå¢ãããã¨ã recursive = -1 ã§Containã¯ã§ããªã