application/controllers/Welcome.php
//code for access portfolio using link name
code for access portfolio using link name
code for access portfolio using link name
public function any($i = NULL)
	{
		$link=urldecode($i);
		$query = $this->db->get_where('p_user', array('pu_link' => $link));
		$row = $query->row();
		if ($query->num_rows() > 0) {
			if ($row->pu_role == 'user') {
				$data['accno'] = $row->pu_accno;
				if ($row->pu_theme == '1') {
					$this->load->view('theme1', $data);
				} else if ($row->pu_theme == '2') {
					$this->load->view('theme2', $data);
				} else {
					$this->load->view('error_404notfound');
				}
			}
			else if($row->pu_role == 'merchant'){
				$data['accno'] = $row->pu_accno;
				$this->load->view('companydetail', $data);
			}
			else{
				$this->load->view('error_404notfound');
			}
			}
		 else {
			$this->load->view('error_404notfound');
		}
	}
public function any ( $ i = NULL ) { $ link = urldecode ( $ i ) ; $ query = $ this -> db -> get_where ( 'p_user' , array ( 'pu_link' => $ link ) ) ; $ row = $ query -> row ( ) ; if ( $ query -> num_rows ( ) > 0 ) { if ( $ row -> pu_role == 'user' ) { $ data [ 'accno' ] = $ row -> pu_accno ; if ( $ row -> pu_theme == '1' ) { $ this -> load -> view ( 'theme1' , $ data ) ; } else if ( $ row -> pu_theme == '2' ) { $ this -> load -> view ( 'theme2' , $ data ) ; } else { $ this -> load -> view ( 'error_404notfound' ) ; } } else if ( $ row -> pu_role == 'merchant' ) { $ data [ 'accno' ] = $ row -> pu_accno ; $ this -> load -> view ( 'companydetail' , $ data ) ; } else { $ this -> load -> view ( 'error_404notfound' ) ; } } else { $ this -> load -> view ( 'error_404notfound' ) ; } }
code for access portfolio using link name
code for access portfolio using link name
//$data['username']= $i;