문제

Previously there is php request like

$bidStart = isset($_REQUEST['sales_start']) ? date('Y-m-d',strtotime($_REQUEST['sales_start'])) : date('Y-m-d',strtotime('sunday -6 weeks'));

now I write this in yii framework like this

$sales_start = Yii::app()->request->getParam('sales_start', '' );

$bidStart = isset($sales_start) ? date('Y-m-d',strtotime($sales_start)) : date('Y-m-d',strtotime('sunday -6 weeks')

);

but this is not working in browser gives error A script inn this movie causing adobe flash player to run slowly. if you continue to run this cause your computer unresponsive.

올바른 솔루션이 없습니다

다른 팁

$sales_start = Yii::app()->request->getParam('sales_start', '' );

$bidStart = isset($sales_start) ?

$sales_start will always be set, even it if it '' that still means it is set. Try
$bidStart = !empty($sales_start) ?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top