{"action":"opened","issue":{"url":"https://api.github.com/repos/Codestar/codestar-framework/issues/200","labels_url":"https://api.github.com/repos/Codestar/codestar-framework/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/Codestar/codestar-framework/issues/200/comments","events_url":"https://api.github.com/repos/Codestar/codestar-framework/issues/200/events","html_url":"https://github.com/Codestar/codestar-framework/issues/200","id":123646790,"number":200,"title":"How to call public functions within our section?","user":{"login":"Ansif","id":5621180,"avatar_url":"https://avatars.githubusercontent.com/u/5621180?v=3","gravatar_id":"","url":"https://api.github.com/users/Ansif","html_url":"https://github.com/Ansif","followers_url":"https://api.github.com/users/Ansif/followers","following_url":"https://api.github.com/users/Ansif/following{/other_user}","gists_url":"https://api.github.com/users/Ansif/gists{/gist_id}","starred_url":"https://api.github.com/users/Ansif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ansif/subscriptions","organizations_url":"https://api.github.com/users/Ansif/orgs","repos_url":"https://api.github.com/users/Ansif/repos","events_url":"https://api.github.com/users/Ansif/events{/privacy}","received_events_url":"https://api.github.com/users/Ansif/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-23T11:57:34Z","updated_at":"2015-12-23T11:57:34Z","closed_at":null,"body":"Hi,\r\n\r\nI've lots of functions and contents that need to show like public function. How can i show that within our section tab?\r\n\r\nPublic Function from another file : \r\n<pre>\r\n// Public Function in Different File\r\npublic function demo_page() {\r\n\t$output = '<h2>Main Heading</h2>';\r\n\t$output = '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Commodi illum eum voluptatum quo deserunt architecto fugiat sit, assumenda sed dolores!</p>';\r\n\treturn $output;\r\n}\r\n</pre>\r\n\r\nOur config file : \r\n<pre>\r\n// Want to call public function within our tab\r\n$options[]   = array(\r\n\t'name'     => 'demo_page_section',\r\n\t'title'    => 'Demo Page',\r\n\t'icon'     => 'fa fa-heart',\r\n\t'fields'   => array(\r\n\r\n\t  array(\r\n\t    'type'    => 'content',\r\n\t    'content' => demo_page(),\r\n\t  ),\r\n\r\n\t)\r\n);\r\n</pre>\r\n\r\nPlease let me know if there is a simple way to do it?"}}