Add return type for view loader.

When _ci_return is TRUE.
Merge pull request #2668 from garthkerr/patch-1

Add return type for view loader.