Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function __construct(){
- parent::_construct();
- $global_function = $this->global_function();
- }
- public function global_function(){
- return array('item1','item2','item3');
- }
- public function method1(){
- $data['data'] = $global_function;
- }
- public function method2(){
- $data['data'] = $global_function;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement