// Check request is Ajax Yii::app()->request->isAjaxRequest // Get $_POST Yii::app()->request->getParam === $_POST Yii::app()->request->getParam('Archives'); // $_POST['Archives'] // Redirect link $this->redirect(Yii::app()->getBaseUrl() . "/archives"); // Get WebRoot folder link Yii::getPathOfAlias('webroot'); // C:/wamp/www/mentor Yii::app()->homeUrl Yii::app()->getBaseUrl() // Get Time now $time = new CDbExpression('NOW()'); // Convert Date form database <?php echo date('H:i d/m/Y',STRTOTIME($session['lastUpdate']) ) ?> // Find by attributes $model = Users::model()->findByAttributes(array("username" =>$username)); // Count by attributes $checkUser = Users::model()->countByAttributes(array('username'=> $username)); // Delete all by atributes ArchiveSession::model()->deleteAllByAttributes(array(), 'idArchive = :id', array(":id" => $docId)); // Find by PK $docPath = Archives::model()->findByPk((int) $docId);
Search
Oct 16, 2015
Yii: function, functions, method, methods
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment