Welcome Guest, Not a member yet? Register   Sign In
Slicing up XTHML to Views in CI
#1

[eluser]Unknown[/eluser]
Hi all.

I've been working with EE for a while but I am now thinking about developing my first project in CI.
I will be hiring a CodeIgniter for development but since I am a front-end designer I'd like to slice up my code and prepare it for Views in CI myself.

I have this designed and coded:
http://www.designbyreference.com/proyectox/index.html
(spanish only sorry) which in essence is the whole site.

It's basically a blog where you write articles commenting a main article.

What I am looking to learn is best practices in order to slice up my code in snippets in order to prepare it for Views in CI implementation.

Any tips and pointers on how I should go about doing this?
Which tutorials should I read?

Thank you,
Erik
#2

[eluser]Ben Edmunds[/eluser]
Hey Erik,

You probably want to split it up with a main layout file, top menu, side bar, side menu, footer and then each content page can be loaded inside the layout.
#3

[eluser]pistolPete[/eluser]
A template library could come in handy: http://williamsconcepts.com/ci/codeignit.../template/

Using something like the above, you wouldn't have to split up the page layout.
#4

[eluser]Unknown[/eluser]
As a newbie to CI, do you recommend diving into using a template library in order to slice up my XHTML into views?

Which are some of the most recommended template libraries?

Thanks!
E




Theme © iAndrew 2016 - Forum software by © MyBB