We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Issue while exporting csv

Hi, I have created one csv and and saving records from one table to csv but it printing all js,css along with records.

<!DOCTYPE html>
        <meta charset="utf-8">                                                                                  
        <title>Rediscover | Dashboard</title>                                                                                   
        <script type="text/javascript" src="/rediscover/img"></script>                                                                                  
        <link rel="stylesheet" type="text/css" href="/rediscover/css/dropdown.css" />                                                                                   
        <link rel="stylesheet" type="text/css" href="/rediscover/css/application.css" />                                                                                    
        <link rel="stylesheet" type="text/css" href="/rediscover/css/css.css" />                                                                                    
        <link rel="stylesheet" type="text/css" href="/rediscover/css/style.css" />                                                                                  
        <link rel="stylesheet" type="text/css" href="/rediscover/css/uploadify.css" />                                                                                  
        <script type="text/javascript" src="/rediscover/js/jquery-1.7.2.min.js"></script>                                                                                   
        <script type="text/javascript" src="/rediscover/js/dropdown.js"></script>                                                                                   
        <script type="text/javascript" src="/rediscover/js/jquery.uploadify-3.1.min.js"></script>                                                                                   
First Name  Last Name   Contact Email   Company Name    Company Website Company Address Company Email   Company Country State   City    Zipcode Company Phone   Renue   Revenue Range   Company Employees   Company Employees Range Industry    Company Sub Industry    quantcast   Alexa   created_date    updated_date
Rakesh                                                                              0000-00-00 00:00:00 0000-00-00 00:00:00


Once again we need more information, can you show us the code you have that's generating this incorrectly?