Welcome Guest, Not a member yet? Register   Sign In
Can you not access a database in a view?
#1

[eluser]Random dude[/eluser]
I moved my db code from a view to a controller and it worked.

I know I was going completely against MVC.

Sorry for hammering the forum with heaps of newb questions.
#2

[eluser]Johan André[/eluser]
You should be able to but you should'nt do it.
Keep the db-access in your models...




Theme © iAndrew 2016 - Forum software by © MyBB