table zebra problem |
[eluser]mattylux[/eluser]
hello I have a problem in the construction of the table in my database, sco I would like to use this method but I have always an error when I insert <table class="zebraTable"> http://codeigniter.com/wiki/Zebra_Tables/ Code: <div id="contenuto"> hello thanks
[eluser]pickupman[/eluser]
This should get you what you want. You need to place the table element outside of the foreach loop. Right now you are creating a table for each row. Code: <div id="contenuto">
[eluser]Aken[/eluser]
You should be passing your data to a view and creating your HTML there, also. Separate the logic from the display, hence the reason for a MVC structure in the first place.
[eluser]mattylux[/eluser]
thanks a lot I have to say that this forum is very interesting and you can learn many things about CodeIgniter, and if you have any interesting guide that can help me as well as wikis CodeIgniter video guide and even those I find them very interesting. |
Welcome Guest, Not a member yet? Register Sign In |