UnionOfRAD/lithium — pull request #639 by yitznewton (2012-09-13 19:42:26+00:00)
Title: library controllers use library views

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. It seems to me this ought to be default, so that distributed libraries can contain their own views, not necessitating explicit calls to those views in the controllers.

Not sure if this will impact out-of-the-box functionality. It might cause problems for backwards-compatibility for existing projects built on li3.

Also I grant that the preg_replace() is kludgy. If there is a more elegant way to look up current library, I will modify.