Advertisement
Guest User

Untitled

a guest
Nov 20th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public function __construct(){
  2. parent::_construct();
  3. $global_function = $this->global_function();
  4.  
  5. }
  6.  
  7. public function global_function(){
  8. return array('item1','item2','item3');
  9.  
  10. }
  11.  
  12. public function method1(){
  13. $data['data'] = $global_function;
  14. }
  15.  
  16. public function method2(){
  17. $data['data'] = $global_function;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement