Welcome Guest, Not a member yet? Register   Sign In
Calling library methods from a view
#2

[eluser]nhm tanveer hossain khan (hasan)[/eluser]
view should be as loosely coupled as possible.
if you put your library loading code on view, which means you are creating dependency on the specific library from the view. view is suppose to be as simple and neat as possible to render the output you expect.

i would rather prefer using helper method to do this job.
because later it would give me more flexibility to switch any library i want.

best wishes, Smile


Messages In This Thread
Calling library methods from a view - by El Forum - 12-18-2008, 10:08 AM
Calling library methods from a view - by El Forum - 12-18-2008, 10:36 AM
Calling library methods from a view - by El Forum - 12-18-2008, 10:46 AM
Calling library methods from a view - by El Forum - 12-18-2008, 11:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB