Tuesday, June 13, 2017

Talend Data Migration Tool

Start from Creating a Project see screen below Create job now From the component choose Databases and MysqlThen Drag tMysqlInput and Drop in job design area.Click on it and enter mysql connection in Component section and write query for the data which you want to dump into target database.Then Drag tMysqlOutput and Drop in job design area.Click on it and enter mysql connection in Component...
Read More »

Thursday, May 25, 2017

Basic layout of Dompdf

<html> <head>   <style>   @page { margin: 50px; } .header, .footer {     width: 100%;     position: fixed; } .header {     top: -50px;     height:50px; } .footer {     bottom: -50px;     height:50px; } .pagenum:before {     content: counter(page); }   </style>   </head> <body> <div class="header">     <div...
Read More »

Wednesday, May 24, 2017

Cakephp and Dompdf

Here we go Download dompdf library https://github.com/dompdf/dompdf/releases/tag/v0.6.1 Extract zip file and rename dompdf and keep dompdf folder in app/vendor directory open app/config/routes.php and place following line in it Router::parseExtensions('pdf'); Now create pdf directory in app/view/layouts then create default.ctp file in app/view/layouts/pdf/ and paste following code in it <?php require_once(APP...
Read More »

Tuesday, April 11, 2017

Upload file from ckeditor in cakephp

To upload file from ckeditor you just have to use following four step and that's done. Include Ckeditor library file <?php echo $this->Html->script('/js/ckeditor/ckeditor');?> Textarea with class ckeditor <?php echo $this->Form->textarea('StaticPage.page_content',array('class'=>'ckeditor'));?> <script type="text/javascript">     CKEDITOR.replace( 'data[StaticPage][page_content]',  ...
Read More »