Monkuar Posted June 30, 2009 Share Posted June 30, 2009 $randompic = $this->randompic(); if($randompic != TRUE){ $ranpic_output = $this->html->random_pic($randompic); } $this->output .= $this->html->cats_header($cattitle,$data['authors'],$data,$data['nick'],$ranpic_output); Ok I need to get $randompic in my $this->html->cats_header How do i do that? i'm calling $ranpic_output too! ? Link to comment https://forums.phpfreaks.com/topic/164208-how-do-i-call-two-arguments/ Share on other sites More sharing options...
dzelenika Posted June 30, 2009 Share Posted June 30, 2009 $randompic = $this->randompic(); if($randompic != TRUE){ $ranpic_output = $this->html->random_pic($randompic); } $this->output .= $this->html->cats_header($cattitle,$data['authors'],$data,$data['nick'],$ranpic_output); Ok I need to get $randompic in my $this->html->cats_header How do i do that? i'm calling $ranpic_output too! ? Could you show whole class. This part of code looks confusing. Link to comment https://forums.phpfreaks.com/topic/164208-how-do-i-call-two-arguments/#findComment-866202 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.