Tag

yii Archives - Crazy Education

CHtmlPurifier in YII1

By | PHP, Programming, YII | No Comments

CHtmlPurifier is wrapper of HTML Purifier. CHtmlPurifier removes all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist. It will also make sure the resulting code is standard-compliant. In your model Add the below content in your model page. For more details : HTML Purifier…

Read More

Excel reader in YII2

By | PHP, YII | No Comments

PHPExcel extension is used to experting and importing Excel data to PHP. In this example we are reading Excel data by using this extension and inserting the data in given tables accordingly. PHPExcel extension is used to experting and importing Excel to PHP. In this example we are reading Excel…

Read More