Welcome Guest, Not a member yet? Register   Sign In
Grabbing and echoing only fragments of views
#5

[eluser]Dave Stewart[/eluser]
Well, the most obvious answer would be hard-coded items, such as static text, and file references such as CSS.
I like to design in a page that actually works, rather than some bastardised fragment.

Granted, I could design in another file / folder and when done I could grab the snippet I need, and re-save as view fragment, but the separation of the HTML from its formatting information seems brutal to me.

Why not enable the view to live as a stand-alone document if it needs be, and provide the option to just lift what's necessary out of it?

On top of that, one view could hold multiple elements (which perhaps could be cached somehow):

Code:
load->view('master', 'header', $data);
load->view('master', 'main', $data);
load->view('master', 'sidebar', $data);
load->view('master', 'feature', $data);
load->view('master', 'footer', $data);

Am I really being odd here!?

Cheers,
Dave


Messages In This Thread
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 01:34 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 05:52 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 06:02 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 07:16 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 07:25 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 07:38 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 07:53 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 08:09 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 08:28 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 08:54 AM
Grabbing and echoing only fragments of views - by El Forum - 06-27-2008, 01:23 PM
Grabbing and echoing only fragments of views - by El Forum - 12-19-2008, 05:02 AM
Grabbing and echoing only fragments of views - by El Forum - 12-19-2008, 07:09 AM
Grabbing and echoing only fragments of views - by El Forum - 12-19-2008, 11:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB