We’ve been working hard enough to keep the MVC structure clear so that they are easily maintain. Javascript is for the client side, and php is for the server side. Mixing those two into one is just not a good idea to me. one of reason I never got too excited about the Ruby’s prototype support is because of the nasty mixture of two different codes. It makes it harder to maintain and debug. I can’t believe now is the PHP’s turn.

Comment by Simon Jia — October 29, 2006

@ r00t – Projax intial release was for CI , so the manual looks like CI’s.
@ Simon Jia – Yep u are right , for CodeIgniter ( a MVC framework ) I did generate the JS in the controller which was passed to the view for display, but doin so meant passing a lot of extra variables, So i found it best to include it in the view ( since it generates JS anyhow ).