CrimpJiggler Posted April 3, 2014 Share Posted April 3, 2014 I made this script which extracts data from a batch of files, and I'm basically just loading the extracted data into a big multidimensional array. Only issue now is I don't know what to do with the array. I don't feel like making new database tables for the data so instead I converted the array into an XML file, usually I would just use a .xsl file to output the XML file as HTML but I don't know how to do that with CakePHP. The XML file generated by CakePHP is big and ugly like the array: but its so easy to convert arrays into XML with CakePHP, I wanna make use of this feature. What should I do with the XML file? I've seen mention of "XML views" and JSON views but I haven't got my head around what they are yet. I suppose if there was an easy way to convert this XML or array into a database table structure, so it'll automatically create the table and load the data into it, that would be fairly useful. For now though, I need to be able to display this data in a human friendly format, cuz other people need to use this tool. Any tips? Quote Link to comment https://forums.phpfreaks.com/topic/287505-best-way-to-store-and-output-arrays-as-html/ Share on other sites More sharing options...
requinix Posted April 3, 2014 Share Posted April 3, 2014 So you haven't been able to find a way to insert a Quote Link to comment https://forums.phpfreaks.com/topic/287505-best-way-to-store-and-output-arrays-as-html/#findComment-1474902 Share on other sites More sharing options...
CrimpJiggler Posted April 4, 2014 Author Share Posted April 4, 2014 I haven't tried yet actually, I haven't even figured out how to view the XML files through the cake routing system. I could add a new rule to routes.php but I'm thinking theres probably already a built in way to style and view XML files. Quote Link to comment https://forums.phpfreaks.com/topic/287505-best-way-to-store-and-output-arrays-as-html/#findComment-1474905 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.