Member Avatar

Morning guys, I would like someone to clarify my doubts with Codeigniter's file structure. The CI default structure is -application -system but I have a lot of other files in the same directory like, phppdf, images, etc is it better to further separate them into another subdirectory for clarity such as -application -system --resources ---phppdf ---images I'm like this better as it looks more organised, although it may mean rewriting the paths inside my controllers.

Member Avatar
0
18
Member Avatar

I am trying to combine the data from two repositories in MVC4. I am using a join statement in my Action function to gather information from two tables. I am passing this this data onto my view. I am a little confused to how to correctly combine the data from the two repositories. Some help would be appreciated. THANKS! In controller: public IOwnerRepository OwnerDB; public IDwellingRepository DwellingDB; public OwnerController() : this(new OwnerRepository(), new DwellingRepository()) {} public OwnerController(IOwnerRepository oRepository, IDwellingRepository dRepository) { OwnerDB = oRepository; DwellingDB = dRepository; } Action: public ActionResult Account(int id, int? activelink) { // Link values // …

Member Avatar
0
14

The End.