We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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>
<html>                                                                                  
    <head>                                                                                  
        <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>                                                                                   
    </head>                                                                                 
    <body>                                                                                  
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
    </body>                                                                                 
</html>


13.4k
Accepted
answer

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