how to pass a variable to page via controller ?

I need a way to pass variable such as $data[domain]="" to page via controller I tried
but it generate an error in view


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