Welcome Guest, Not a member yet? Register   Sign In
Noob confusion about html-tables and html-table-templates
#1

[eluser]jedd[/eluser]
Howdi,

Just starting to dip my toe into CI, MVC, and the OO(ish) aspects of PHP5. I've got a decent understanding of PHP and HTML.

I'm looking at the HTML table templates ( http://ellislab.com/codeigniter/user-gui...table.html ) and the templating feature looks like something I'd want to abstract out to another file to be shared in lots of different places.

My question is simply where should that file be?

I know some of this can (should?) be done in CSS, but I suspect bits of it would be easier if used as part of the $this->table class.

I'm thinking of a number of lines that look like this:
Code:
$table_template_organism = array (
    'table_open' => '<table border="2" cellpadding="2" cellspacing="1" class="table_organism">'
    );

Presumably I'm missing something obvious. Replicating this kind of stuff in lots of Controller preambles doesn't make sense (of course).
#2

[eluser]Yash[/eluser]
Use View and create common table format.Load and pass value to that view using array.




Theme © iAndrew 2016 - Forum software by © MyBB