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! ? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.