Welcome Guest, Not a member yet? Register   Sign In
OOP Design
#1

[eluser]waterloomatt[/eluser]
Hi,

How would this design (see attachment) be implemented in CI? It was an old school project that was implemented in JSP. As I understand it, Models are essentially Data Access Layer (DALs). Therefore, my XXYYSurveyModel wouldn't be the business object that is passed around to the view; right? So, in which folder do my business objects (XXYYSuvery, XXYYQuestion etc) get stored; the Library folder?

Most of the forum posts that I've been reading don't seem to implement OOP techniques such as passing objects around - from the Model to Controller to the View. Instead, they pass arrays of info. In my opinion, passing an object to the view is cleaner since all I need to update is the view if I want to include other information. I.e. XXYYSurvey->GetTitle();

Or am I trying to fit a square into a hole here?

Thanks!


Messages In This Thread
OOP Design - by El Forum - 03-13-2010, 04:20 AM
OOP Design - by El Forum - 03-13-2010, 05:46 AM
OOP Design - by El Forum - 03-13-2010, 06:08 AM
OOP Design - by El Forum - 03-13-2010, 02:43 PM
OOP Design - by El Forum - 03-14-2010, 08:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB