membuat environment development testing dan production

pada yii di index file kita akan merubah / menambah [code] //choose environment development $appEnv = filter_input(INPUT_ENV, ‘APPLICATION_ENV’, FILTER_SANITIZE_ENCODED); $serverName = filter_input(INPUT_SERVER, "SERVER_NAME", FILTER_SANITIZE_SPECIAL_CHARS); if (!isset($appEnv)) { if (true === stripos($serverName, ‘localhost’)) { $appEnv = "development"; } else if (true === stripos($serverName, ‘www.meltonice.com’)) { $appEnv = "testing"; } else if (true === stripos($serverName, ‘www.kresna.host’)) { […]

redirect dengan count down

sebelum saya tertidur karena mengantuk dan kondisi kurang fit saya akan membagikan info tentang bagaimana redirect menggunakan ajax beserta count down js 😀 pertama install ecountdown action lalu set flash yang akan di tampilkan beserta countdownnya dan ajax request [code] <?php if (Yii::app()->user->hasFlash(‘order’)) { ?> <div class="flash-success"> <?php echo Yii::app()->user->getFlash(‘order’); ?> </div> <?php $this->widget(‘ext.ecountdownaction.ECountdownAction’, array( […]

install composer via brew :D

ketika akan menginstall yii2 di mac osx yang memakai composer , kemudian muncul error sebagai berikut :  brew install composer PHP Warning:  Module ‘curl’ already loaded in Unknown on line 0 composer: Missing PHP53, PHP54, PHP55 or PHP56 from homebrew-php.   kemudian saya mengatasi nya dengan browsing di google dan menemukan source yang memberikan tulisan […]

php extension untuk mac osx maverick

http://stackoverflow.com/questions/6588174/enabling-postgresql-support-in-php-on-mac-os-x The PHP version that comes bundled with OS X doesn’t include PostgreSQL. You’ll have to compile the extension yourself. Here are some instructions: Find your version of PHP: php -v. Download the version of PHP that matches yours: curl -O http://us.php.net/distributions/php-5.3.3.tar.gz. (This example downloads PHP 5.3.3 but this must match your version) Extract the […]

© 2018 IT & Photography blog | ScrollMe by AccessPress Themes