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

[eluser]Dave Stewart[/eluser]
Hi Seppo,
Thanks for the reply, but perhaps I wasn't clear enough Smile

file_get_contents() won't work for me, as I still want to use CI's code parsing features via load->view(), I just want to be able to grab a section of a view template, perhaps using delimiters, or the contents of a tag (ie, <body>) rather than an entire view file.

What I would need to do could be something like:

1 - calling a file_get_contents(), then
2 - grab the section I needed using substr(), then
3 - pass that to the view to parse tags / variables

I just want to get some ideas from more experienced CI developers before I rush out and code something up.

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