[eluser]wwendorf[/eluser]
Hi all,
I'm just getting started with CI. So far, I like the simplicity of the MVC concepts built into CI. I've had experience with some MVC projects in the past, and they weren't a pleasant experience at all. I think CI is going to change my opinion (finally).
That being said, I was wondering if there is some guidelines as to the amount of code that should be in a view. For example.
I was going thru Jeffrey Way's tutorials and I got to tut#5 where he went the CRUD methods. His update method was hard coded, so I decided to add an update link to each record in the list, and use the same form for adding new records to edit an existing record.
Essentially what I am doing is when the user clicks the "update" button, I add the ID value to the existing data array and i'm adding a "get_one_record" function to the model. I'm just trying to figure out how much coding is actually allowed in the view in order to try and use it for double duty.
I know what I'd do, but I don't know if it's the "right" way.
Thanks,
Wade