Posts

Showing posts from July, 2013

yii config on production and development

on production :
.................. // Application components 'components' => array( // Database 'db'=>array( 'connectionString' => 'Your connection string to your production server', 'emulatePrepare' => false, 'username' => 'admin', 'password' => 'password', 'charset' => 'utf8', ), // Application Log 'log'=>array( 'class'=>'CLogRouter', 'routes'=>array( array( 'class'=>'CFileLogRoute', 'levels'=>'error, warning', ), // Send e…

css persen minus px

.calculated-width { width:-moz-calc(100%-100px); width:-webkit-calc(100%-100px); width: calc(100%-100px);}​

setting cache control pada php

<?php //set headers to NOT cache a page header("Cache-Control: no-cache, must-revalidate"); //HTTP 1.1 header("Pragma: no-cache"); //HTTP 1.0 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past //or, if you DO want a file to cache, use: header("Cache-Control: max-age=2592000"); //30days (60sec * 60min * 24hours * 30days) ?>