Welcome Guest, Not a member yet? Register   Sign In
js code in controller
#2

[eluser]gtech[/eluser]
I assume you are echoing javascript in the controllers?

I tend to write my js in views, however sometimes I cheat and just echo json return data in the controller.

The only thing you should be wary of is maintainability. if you have a large applications with every controller containing blocks of javascript it may become unreadable.


Messages In This Thread
js code in controller - by El Forum - 06-09-2008, 06:07 PM
js code in controller - by El Forum - 06-09-2008, 06:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB