how to pass a variable to page via controller ?

I need a way to pass variable such as $data[domain]="example.com" to page via controller I tried
$this->fuel->pages->render("pagename",$data);
but it generate an error in view

Comments

  • edited 8:58PM
    That's how you do it. What's the error in the view?
  • edited 8:58PM
    that was spell error I write it in view as $domian
    thank you so much for your interest
Sign In or Register to comment.