[eluser]Unknown[/eluser]
Hello,
How can I pass a functions data into a view if it requires the table data in the views foreach loop.
e.g view_index.php
Code:
foreach ($posts as $post) {
if (has_subscribed($post->id)) {
echo "has subscribed";
}
}
Now obviously I can't place that function in my view?
So how do I pass that data from my controller to my view?