Welcome Guest, Not a member yet? Register   Sign In
One method - many views

How to in one method add many views ?

public function active()
        $this->data = array('survey' =>  $this->survey_model->loadPublished($this->auth->getUser()->userId));
                //one view i need 4

Can you give more information? Are the 4 view parts of one page or are it 4 different contents?

Content from 1 table on 4 pages

[eluser]Sam Dark[/eluser]
Add another 4 methods that are using fifth to get data?

Do this:


once loaded $this->data will be accessible within every page (header, body and footer)


Theme © iAndrew 2016 - Forum software by © MyBB