Welcome Guest, Not a member yet? Register   Sign In
Basic CMS for CodeIgniter applications
#3

[eluser]goldpelican[/eluser]
I think for now (technically I'm the client, but I want to use a best practice approach for future use) I will use a generic "static content wrapper" view, and pass a path to a specific HTML file as an element in the data array that gets passed to the view when loaded. Then I can use a regular php include() statement to include the source of the nominated HTML file into the relevant placeholder of the view.

I use an overall generic default view for my website, and load header, menu, footer and content views into the default view to assemble a page - so I can use a static content wrapper view for HTML, and load it into the "content" section of my default view. I'll just maintain the HTML content using an editor for now that (should it be necessary in future) can be edited using a WYSIWYG tool.

Will have a think about where I want to host the HTML... it's technically data, not a view, so under the view folder may not be appropriate. This also means that HTML nuff nuffs in future won't need to touch files inside of the application structure, potentially creating issues.


Messages In This Thread
Basic CMS for CodeIgniter applications - by El Forum - 03-11-2010, 09:48 PM
Basic CMS for CodeIgniter applications - by El Forum - 03-11-2010, 10:43 PM
Basic CMS for CodeIgniter applications - by El Forum - 03-11-2010, 10:58 PM
Basic CMS for CodeIgniter applications - by El Forum - 03-12-2010, 03:06 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 02:30 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 06:44 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 07:17 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 07:19 AM
Basic CMS for CodeIgniter applications - by El Forum - 09-17-2010, 07:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB