Welcome Guest, Not a member yet? Register   Sign In
My MVC schema
#1

[eluser]cyberjunkie[/eluser]
Hello all! I'm new to Codeigniter and MVC. I designed a pattern to look at when I'm lost. Please let me know if I got something wrong.

jump to image
#2

[eluser]Bart v B[/eluser]
your lost because you variabele that you pass is $data['query']

So in simple code in your view should be that:

Code:
<?php foreach($query as $row): ?>
<li>&lt;?php echo $row->blog_entry;?&gt;</li>
&lt;?php endforeach; ?&gt;

Mind i am guessing the table name. Wink
#3

[eluser]cyberjunkie[/eluser]
[quote author="Bart v B" date="1293012390"]your lost because you variabele that you pass is $data['query']

So in simple code in your view should be that:

Code:
&lt;?php foreach($query as $row): ?&gt;
<li>&lt;?php echo $row->blog_entry;?&gt;</li>
&lt;?php endforeach; ?&gt;

Mind i am guessing the table name. Wink[/quote]


Thanks! I think I got a good pattern to go by now Smile




Theme © iAndrew 2016 - Forum software by © MyBB