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 6:42AM
    That's how you do it. What's the error in the view?
  • edited 6:42AM
    that was spell error I write it in view as $domian
    thank you so much for your interest
Sign In or Register to comment.