Category Archives: Yii Extensions

Create Image Thumbnails

This tutorial will help you to create “Thumbnail image”. When you upload the images using Yii Framework, You can create thumbnail image. Here i explained step by step. Step 1: First Create one simple extension for image thumbnail. Add the thumbnail_images.php file into extensions/ThumbnailImages folder. Step 2: Configure the model for files. Here i just created simple model […]

Custom SQL Query To Excel In Yii1.0

Please read this tutorial before to follow this post. https://www.bsourcecode.com/2013/04/yii-cactivedataprovider-to-excel/ This tutorial will help you to create a excel sheet using custom sql query. In Model Code public function searchbydocumentdetails(){ $query=”SELECT * FROM TABLE_NAME”; return new CSqlDataProvider($query, array( ‘pagination’=>false ) ); } In Controller Code public function customsqltoexcel(){ $document=new Document; $data=$document->searchbydocumentdetails(); $this->toExcel($data, array(‘DocuemntName’, ‘CategoryName’, ‘DownloadCredits’, ‘UploadCredits’, […]

FTP File Transfer Using Yii

This tutorials will helpful to transfer the large files (or small files)  from ftp folder to your application folder. When you upload the large files (in applications), It will take some times. But if you use ftp file transfer It will transfer the files fast. Based on my experience i explained below. Create Ftp Account […]

HTML Elements To PDF

This tutorial will help you to convert the HTML element in a page to pdf document. I created this tutorial with help of mPrint extension from yiiframework. Features Apply Css Select HTML Elements to print Hide HTML Elements from print <?php $this->widget(‘ext.mPrint.mPrint’, array( //the title of the document. Defaults to the HTML title ‘title’ => ‘HTML Element […]

HTML TO PDF

This post will help you generate a pdf files in yii framework. I used tcpdf to create a pdf file. Pdf file based on html page. What you see in html page, You can download as pdf using this. Download TCPDF Create HTML2PDF Extension Controller: HtmltopdfController.php View: html2pdf.php View: htmlpage.php Download TCPDF Download the tcpdf […]

Line Charts In Yii

Types Of Charts Basic Lines Chart With Data Labels Time Series Zoomable Spline with inverted axes Spline Symbols Spline With Plot Bands Logarithmic axis Highcharts currently supports line, spline, area, areaspline, column, bar, pie and scatter chart types etc. Using Highcharts extension I showed demo for about types. Extension Link: Yii Higicharts Extensions Demo Link

Yii SMTP Mail Extension

I created one extension to sent the mail using smtp methos. Just add it into your yii project and configure in main.php and send mail. Download And Add SMTP Extension SMTP Details in config/main.php SMTP Mail Function Download And Add SMTP Extension Please Download the smtp mail extension and add it into protected/extension folder. SMTP […]