Welcome Guest, Not a member yet? Register   Sign In
request action (i am new to CI)
#1

[eluser]Unknown[/eluser]
Hi all..

first sorry for my english.. i am from czech..

My problem is:
i developped some application in Ruby on Rails and CakePHP...
my question is if code igniter has alternative to CakePHP "requestAction()"

Or say me other way to display information by id in foreach

example:

Code:
foreach ($articles as $article):
    echo $article->title."<br />";
    echo $article->created_by
endforeach;
variable $article->created_by is ID of user who added an article and i need to print his full name, which is in other table.. i did not use any associations

Thanks for help from newbie
#2

[eluser]GSV Sleeper Service[/eluser]
just join the authors table when you create the articles recordset. eg
Code:
$this->db->select('*');
$this->db->from('articles');
$this->db->join('authors', 'authors.id = articles.created_by');
...
#3

[eluser]Unknown[/eluser]
Thanks for your help..




Theme © iAndrew 2016 - Forum software by © MyBB