• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open in a new window

#1
Hello,

I have this code but I'd like the view to open in a new window, I've tried various sources but failed to work

PHP Code:
public function getStudentReport()
 
   {
 
       $schoolorclass $this->input->post('schoolorclass');
 
       $reportfor $this->input->post('reportfor');

 
       if ($reportfor == 'schoolyear') {
 
           if($schoolorclass !='school'){

 
               $this->data['classID'] = $classID $this->input->post('classID');
 
               $this->data['sectionID'] =$sectionID $this->input->post('sectionID');
 
               $this->data['value'] = $value $this->input->post('value');

 
               if($sectionID == 0){
 
                   $this->data['students'] = $this->studentrelation_m->get_student_report_all($value$classID);
 
               }else{

 
                   $this->data['students'] = $this->studentrelation_m->get_studentSection_report_all($value$classID$sectionID);
 
               }
 
               echo $this->load->view('report/student/StudentAdmitted'$this->datatrue);               
            
}else{
 
               echo "<h4 class='text-danger'>'PLEASE SELECT A CLASS!' </h4>";
 
           }



How can i make this view or url (report/student/StudentAdmitted)  to open in a new window

thanks
Reply

#2
How about:
PHP Code:
echo anchor('report/student/StudentAdmitted','Student Admitted','target="_blank"'); 

Important: load the url helper first!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.