⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

pass a value from controller to view



thejcoway
  • profile picture
  • Member

Posted 18 October 2014 - 03:44 AM

why did I add value in 'title' => 'User' 
 
public function index () 
     {
         $ this-> print ((object) array ('output' => '', 'js_files' => array (), 'css_files' => array (), 'title' => 'User')); 
     } 
 
in view Undefined variable: title ?

how do I add array data so that identified in view ?

thanks


Amit Shah
  • profile picture
  • Member

Posted 18 October 2014 - 07:28 AM

well if not mistaken - u got to pass the value as an array .. with 'title' as key ...

it should work out.