Ticket #513 (closed Feature Request: fixed)

Opened 9 months ago

Last modified 8 months ago

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

view_patch.patch (2.2 kB) - added by memon 9 months ago.
setting view file outside of constructor

Change History

Changed 9 months ago by memon

setting view file outside of constructor

Changed 8 months ago by Shadowhand

  • owner changed from - No owner - to Shadowhand
  • status changed from new to assigned

Fixed in r2492 by adding a set_filename($name, $type) method.

Changed 8 months ago by Shadowhand

  • keywords view set_filename added
  • status changed from assigned to closed
  • resolution set to fixed

Follow up in r2493.

Note: See TracTickets for help on using tickets.