Ticket #513 (closed Feature Request: fixed)
View library syntax
| Reported by: | memon | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2 |
| Component: | Libraries | Version: | SVN HEAD |
| Keywords: | view set_filename | Cc: |
Description
Would it be possible to instead of
new View('view_file');
do
$d=new View;
$d->render('view_file');
It has some impact on the library but would allow for later declaration of the actual view file used which is very handy at times. Perhaps the first argument of new View could be optional and setting the view file is then possible through a View::set_view_file() method.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
