Welcome Guest, Not a member yet? Register   Sign In
small blog help needed passing data
#9

[eluser]jvicab[/eluser]
no it is right, you should not include Entrymodel when calling a function of the same class. You should call it that way:

$data = $this->sendback();

change the foreach loop code for this:

foreach ($rows->result_array() as $row)
$data[] = array('title'=>$row['title'], 'body' =>$row['body']);


Messages In This Thread
small blog help needed passing data - by El Forum - 08-11-2011, 05:06 PM
small blog help needed passing data - by El Forum - 08-11-2011, 06:30 PM
small blog help needed passing data - by El Forum - 08-12-2011, 05:58 AM
small blog help needed passing data - by El Forum - 08-12-2011, 08:06 AM
small blog help needed passing data - by El Forum - 08-12-2011, 01:30 PM
small blog help needed passing data - by El Forum - 08-12-2011, 03:26 PM
small blog help needed passing data - by El Forum - 08-12-2011, 03:31 PM
small blog help needed passing data - by El Forum - 08-12-2011, 04:02 PM
small blog help needed passing data - by El Forum - 08-12-2011, 04:39 PM
small blog help needed passing data - by El Forum - 08-12-2011, 05:04 PM
small blog help needed passing data - by El Forum - 08-12-2011, 05:15 PM
small blog help needed passing data - by El Forum - 08-12-2011, 05:31 PM
small blog help needed passing data - by El Forum - 08-12-2011, 05:42 PM
small blog help needed passing data - by El Forum - 08-12-2011, 05:46 PM
small blog help needed passing data - by El Forum - 08-12-2011, 05:48 PM
small blog help needed passing data - by El Forum - 08-12-2011, 06:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB