æä½ docker run [ã¤ã¡ã¼ã¸åor ID] ï¼ãã®ä»ãªãã·ã§ã³ï¼ï¼ä¸è¨ã®ä¸æ¬å®è¡ docker pullï¼ã¤ã¡ã¼ã¸åå¾ docker createï¼ã³ã³ããä½æ docker startï¼èµ·å docker stop [ã¤ã¡ã¼ã¸åor ID]ï¼ã³ã³ãããæ¢ãã docker restart [ã¤ã¡ã¼ã¸åor ID]ï¼ã³ã³ãããåâ¦
Dockerã®ã³ã³ããä½æã»å®è¡ããæé ï¼windowsã§å®æ½ï¼ ã»Dockerfileãä½æ ãDockerfileãã¨ãããã¡ã¤ã«åã§ä½æ ã»DockerfileããDocker imageãä½æ Dockerfileãä½æãããã£ã¬ã¯ããªã§ãã³ãã³ãããã³ããããã³ãã³ãå®è¡âã.ãã¾ã§ãã docker builâ¦
WebSecurityConfigurerAdapterãç¶æ¿ããã¯ã©ã¹ã§è¨å®ãè¡ã
FuelPHP1.7.1ã®æ®µéã§ãImageã®ãªãµã¤ãºã§'bgcolor'ã®è¨å®ãè¡ã£ã¦ãããªãµã¤ãºã®èæ¯è²ãé»ã«ãããªããªãã gerolian.comããã®blogã§å¯¾å¿ã追ã£ã¦ã¾ãã [fuelPHP] ImageClassã§bgcolorãåæ ãããçã£é»ã«ãªã件 | Gerolian ç´°ããã¨ããã¯ä¸è¨blogã§ç¢ºâ¦
1.config.phpã®è¨å® csrf_autoload : trueã«ããã¨èªåã§ãã§ãã¯ãè¡ããã»ã¨ãã©ã®å ´åãæåã§ãã§ãã¯ãè¡ãã®ã§falseã«ãã¦ãã csrf_token_key ï¼ hiddenã«ã»ãããããcsrfãã§ãã¯å¤ã®ãã¼ csrf_expiration ï¼ csrfã¯ããã¼ã®æå¹æéã0ãã大ããªâ¦
DB::queryã§è¡¨ãçµåããã¯ã¨ãªã®ä»¶æ°ãDB::count_last_query()ã§åå¾ãã㨠duplicate column name 'id'ã¨ã©ã¼ã«ãªãå ´åããã ããã¯ãmigrateçã§ãã¼ãã«ãèªåçæããå ´åãidåãèªåã§ä»å ãããçºãçµåãã両æ¹ã®ãã¼ãã«ã«idåãåå¨ãã¦ãã¾ãâ¦
FuelPHP ã«ã¯ã¢ããªã±ã¼ã·ã§ã³ãããã¡ã¤ã©ãã¤ãã¦ãããã¢ããªã±ã¼ã·ã§ã³ã®æ å ±ãå®è¡SQLãªã©ã確èªã§ããã [è¨å®] /fuel/app/config/[config.php] // profilingãæå¹ 'profiling' => true, (DBé¢é£ãæå¹ã«ããå ´å) [db.php] // profilingãæå¹ 'profâ¦
oil generate adminã¯ã1åç®ãªããªãã·ã§ã³ç¡ãã§ã¨ã©ã¼ã¨ãªãã¾ãããã2åç®ä»¥éã¨ã©ã¼ã¨ãªã£ã¦ãã¾ãã çç±ã¯base.phpçã®å ±éã§ä½¿ããã¡ã¤ã«ã1åç®ã§ä½æããã2åç®å®è¡æã«éè¤ãã¦ãã¾ãçºã 対å¿ã¯ã2åç®ä»¥éã®å®è¡æã¯ãªãã·ã§ã³ã«-fï¼ä¸æ¸ããâ¦
å ¥åãã§ãã¯çã®Validationã¯ãPOSTãã©ã¡ã¼ã¿ã«å¯¾ãã¦ããè¡ãããªã $val = Validation::forge();if ($val->run()) GETãã©ã¡ã¼ã¿ã§æ¸¡ã£ã¦ããå¤ã«å¯¾ãã¦Validationãè¡ãã«ã¯ $val = Validation::forge();if ($val->run(array('hoge' => Input::get('hogâ¦
FuelPHP1.7.1ã®æ®µéã§ãoil generateã§èªåçæããç»é¢ã§ã¨ã©ã¼ã¡ãã»ã¼ã¸ã赤æ 表示ã«ãªããªãã çç±ã¯Twitter bootstrap 3ããcssã®alert-errorå®ç¾©ãåé¤ã«ãªã£ãçºã 対å¿ã¯èªåçæããå¾ã¯ã/app/views/template.php(ãããã¯/app/views/admin/templâ¦
è¨å®ãã¡ã¤ã«ãä½æ php oil g config sample test:test1 â/app/config/sample.php ã®è¨å®ãã¡ã¤ã«ãåºæ¥ãï¼ç´æ¥ãã¡ã¤ã«ãä½ã£ã¦ãããï¼ è¨å®ãã¡ã¤ã«ãèªã¿è¾¼ã¿ 常ã«èªã¿è¾¼ã é常 ï¼ï¼ è¨å® â config.phpã®always_loadã®configãè¨å® 'config' => arrayâ¦
formã®é ç®ã«ã¯form-controlãæå®ãããããããæå®ããã¨æ¨ªå¹ ã®æå®ãå¹ãããªãï¼width:100%ã«ãªãããï¼ ãªã®ã§ãæ¨ªå¹ ãæå®ãããå ´åã¯ãä¸ä½ã®ã¿ã°ã§æå®ãã <div class="col-md-6"> <input class="form-control" name="word" type="text" id="word" /> </div>
è¨å®ãã¡ã¤ã«ãé ç½® /fuel/core/config/upload.phpã/fuel/app/config/ã«ã³ãã¼ãã âã¢ãããã¼ãã§å ±éã®è¨å®äºé ãããã°ããã§è¨å®ãã¦ãã â»è¨å®ã§ããå 容ã¯æ¬å®¶ã®ããã¥ã¢ã«ãåç §(1.7) ã¢ãããã¼ãã¨ã©ã¼ã®æ¥æ¬èªãã¡ã¤ã«ãé ç½® /fuel/core/lang/enâ¦
MACã«BootCampã§å ¥ãã¦ããwin7(64bit)ã§USBã¡ã¢ãªãèªèããªãã£ãã ä»ã®USBæ©å¨ã¯å¤§ä¸å¤«ã ã£ãã®ã§ããããããªã¼ã¨æã£ã¦èª¿ã¹ããUSB3.0ããã¡ãããã BootCampã¯4.0 ãã©ã¤ãã®å ¥ããªããï¼ããã¤ã¹ããã¼ã¸ã£ã¼ããUSB3.0ãåé¤ãã¦ãåèµ·åï¼ã§ãªãâ¦
Eclipseã«FuelPHPã®ããã¸ã§ã¯ããä½æ Eclipseï¼PDTå ¥ãï¼ãã¤ã³ã¹ãã¼ã«ï¼Eclipse4.3ã§ãã£ã¦ã¿ãï¼ Eclipseãèµ·åãã¦[ãã¡ã¤ã«]-[æ°è¦]-[PHPããã¸ã§ã¯ã]ãé¸æããããã¸ã§ã¯ãåãå ¥ãã ãæ¢åãã±ã¼ã·ã§ã³ã«ããã¸ã§ã¯ããä½æãã§FuelPHPã®ããã¸â¦
Controller_Templateãç¶æ¿ãããã¨ã«ãããviewã«ãã³ãã¬ã¼ããå©ç¨ã§ããã ããã©ã«ãã®ãã³ãã¬ã¼ãã¯ãtemplate.phpãå©ç¨ããã ãã³ãã¬ã¼ããå¤æ´ããå ´åã¯ãpublic ãªå¤æ° $templateãå¥ã®ãã®ã«è¨å®ããï¼public $template = 'template_work';ï¼
oil g migration 㨠oil g modelã§ä½ãããmigrationãã¡ã¤ã«ã«ã¯ä¸è¨ã®éãããã oil g migrationã®å ´å ãã¼ãã«åãèªåã§è¤æ°å½¢ã«å¤æãããªã èªåã§created_atãupdated_atã®ã«ã©ã ã追å ãããªã oil g modelã®å ´å ãã¼ãã«åãèªåã§è¤æ°å½¢ã«å¤æâ¦
oil generateï¼çç¥å½¢ã¯gï¼ã§ã³ã¼ãã®èªåçæãè¡ãã php oil g controller ã¢ã¯ã·ã§ã³å ã¡ã½ããå1ã»ã»ã»ï¼ã³ã³ããã¼ã©ã®ä½æ â»controllerã¯ä¸è¨ãªãã·ã§ã³ãæå®å¯è½ --with-viewmodelï¼ãã¥ã¼ã¢ãã«ã¯ã©ã¹ãä½æ php oil g model ãã¼ãã«å ã«ã©ã â¦
ã³ãã³ãã®æå¾ã«ãªãã·ã§ã³ã®æå®ãå¯è½ -sï¼ ãã§ã«ä½æããã¦ãããã¡ã¤ã«ãä½æããªã -f ï¼ãã§ã«ä½æããã¦ãããã¡ã¤ã«ãæ°ãã«ä¸æ¸ã
php oil generateï¼çç¥å½¢ã¯gï¼ migration ~ã§ãã¼ãã«ã«å¯¾ããæä½ãä½æãã php oil refine ï¼çç¥å½¢ã¯rï¼ migrate ~ã§ãã¼ãã«ã«å¯¾ããæä½ãå®è¡ãã php oil g migration ã®ãã©ã¡ã¼ã¿ ä½æï¼create_ãã¼ãã«å ã«ã©ã å®ç¾© å¤æ´ï¼rename_table_å¤æ´åâ¦
C:\xampp\apache\conf\extra [httpd-xampp.conf] Alias /phpmyadmin "C:/xampp/phpMyAdmin/" <Directory "C:/xampp/phpMyAdmin"> AllowOverride AuthConfig Require all denied Require local </Directory>
MySQL 5.5ã§ãdefault-character-setãã使ããæååãããâãcharacter-set-serverãã«ããã¨OK | KennyQi PHP Blogãåèã« ï¼UTF-8ã«å¤æ´ã®å ´åï¼ /xampp/mysql/bin/ [my.ini] [mysqld] character-set-server=utf8 skip-character-set-client-handshake â¦
oil console ã§ã³ãã³ãã©ã¤ã³ããFuelPHPã®ã¡ã½ãããå®è¡å¯è½ (ä¾ Authã¯ã©ã¹ããã¦ã¼ã¶ã¼ãä½æï¼ oil console Auth::create_user('ã¦ã¼ã¶ã¼', 'pass', 'mail', 権éçªå·);
ãã°ã®è¨å® /fuel/app/config/[config.php] /*** Logging Threshold. Can be set to any of the following:** Fuel::L_NONE* Fuel::L_ERROR* Fuel::L_WARNING* Fuel::L_DEBUG* Fuel::L_INFO* Fuel::L_ALL*/'log_threshold' => Fuel::L_WARNING,'log_path' =>â¦
SimpleAuthã®ããã±ã¼ã¸ãè¨å®ãã¾ãã /fuel/app/config/[config.php] 'packages' => array('orm','auth',), /fuel/packages/auth/config/auth.phpãsimpleauth.phpã/fuel/app/config/ã«ã³ãã¼ãã¾ãã/fuel/app/config/[auth.php] 'salt' => 'saltã®å¤', â¦
/fuel/core/config/session.phpã/fuel/app/config/ã«ã³ãã¼ãã¾ãã/fuel/app/config/[session.php] // if no session type is requested, use the default// 'driver' => 'cookie','driver' => 'db', ã»ãã·ã§ã³ç¨ã®ãã¼ãã«ãä½æãã¾ãã CREATE TABLE Iâ¦
æ¥æ¬èªã®è¨å®ãè¡ã/fuel/app/config/[config.php] /*** Localization & internationalization settings*/// 'language' => 'en', // Default language'language' => 'ja', // Default language'language_fallback' => 'en', // Fallback language when fileâ¦
DBï¼ORMï¼ã®è¨å®ã§ãã éçºã¢ã¼ãã¯developmentãã©ã«ã以ä¸ã«è¨å®ãã¾ãã /fuel/app/config/development/ [db.php] /** * The development database settings. */ return array( 'default' => array( 'connection' => array( 'dsn' => 'mysql:host=localhâ¦