From Controller, look for view in own library #650

Merged
merged 1 commit into from Sep 21, 2012

4 participants

@yitznewton

To this point, li3 defaults to app/views. With this change, li3 looks by
default in libraries/foo/views/, where foo is the library containing the
Controller.

Redo of #639 to point to dev

@nateabele
Union of RAD member

Nice, just one thing: it looks like your editor is adding newlines to the end of the files. If you can fix that and squash your commits, I'll merge it ASAP. Thanks!

@yitznewton yitznewton From Controller, look for view in own library
To this point, li3 defaults to app/views. With this change, li3 looks by
default in libraries/foo/views/, where foo is the library containing the
Controller.

remove newlines at EOF
a29012a
@d1rk
Union of RAD member

That is nice. As i already stated on StackOverflow, the current way to do this is far from perfect. Eager to see that in.

@nateabele
Union of RAD member

Hey! Sorry, for whatever reason I didn't get the notification that you updated this, thanks!

@nateabele nateabele merged commit 1d6fae0 into UnionOfRAD:dev Sep 21, 2012

1 check passed

Details default The Travis build passed
@mariuskubilius

There is small problem, that now controller tries to pull the layout also from library. Before this change I was constantly told, that this feature is unneeded. Now it's implemented into core.

Union of RAD member

It should look for the view in the library, then for a layout in the library, but if it does not find one, take the one from app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment