Welcome Guest, Not a member yet? Register   Sign In
novice for variables questions
#10

[eluser]Colin Williams[/eluser]
For one, this should be in a model, not the controller. Controllers aren't meant to retrieve and parse files. And it looks like you're scraping a file, so the process is just inherently going to be messy and tedious (messy + tedious != controller). Once you figure out how to get it into the array structure you want, you can then have the model return this array to the controller. The controller could be responsible for passing instructions to the model function that does this (like the paths of file1 and file2, for instance)


Messages In This Thread
novice for variables questions - by El Forum - 10-10-2008, 01:12 AM
novice for variables questions - by El Forum - 10-10-2008, 02:11 AM
novice for variables questions - by El Forum - 10-10-2008, 02:15 AM
novice for variables questions - by El Forum - 10-10-2008, 02:16 AM
novice for variables questions - by El Forum - 10-10-2008, 02:19 AM
novice for variables questions - by El Forum - 10-10-2008, 02:27 AM
novice for variables questions - by El Forum - 10-10-2008, 02:32 AM
novice for variables questions - by El Forum - 10-10-2008, 03:27 AM
novice for variables questions - by El Forum - 10-10-2008, 03:32 AM
novice for variables questions - by El Forum - 10-10-2008, 03:55 AM
novice for variables questions - by El Forum - 10-10-2008, 04:02 AM
novice for variables questions - by El Forum - 10-10-2008, 05:00 AM
novice for variables questions - by El Forum - 10-10-2008, 05:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB