Welcome Guest, Not a member yet? Register   Sign In
redirect doesn't work
#13

[eluser]maria clara[/eluser]
[quote author="max123" date="1265979494"]Yes I tried the code. But still it gives the same error.Can u tell me the location of the white space in my code. I have no idea about the white space

Code:
if($rows>=3)
            {
                redirect('/seeker/my_searches','refresh');
                 echo "[removed]alert('You cannot create more than 3 search agents');[removed]";
            }
[/quote]

have you tried this one?

Code:
if($rows>=3)
            {
                redirect('seeker/my_searches','refresh');
                
            }


Quote:it is something like this:

Code:
<?php

class Sec_users extends Controller {  

    function Sec_users()
    {
        parent::Controller();
        $method = $this->uri->rsegment(2);//uri class segment or retrieve rsegment 2
        $user = $this->session->userdata('user');//fetch 'user' to $user
        if (($method!='login'&&$method!='auth'&&$method!='logout'&&$method!='post')&&!$user) redirect('sec_users/login');    

        $this->load->model('Dataset_db');        
        $this->load->model('Users_db','User');
        #$this->load->model('Main_company_db');
        
            #$lang_select =  $this->input->post('language');
            #$this->lang->load('login', $lang_select);        
        
        $lang_select = $this->session->userdata('lang_select');
        $this->config->set_item('language', $lang_select);    
        
        $this->lang->load('language');//load language file for sec_users e.g sec_user_lang.php
    
        $this->load->helper('url');

        
    }

the codes should be placed in order, like there should be no white space in the header. something like that.

P.S.
I can't explain it directly. having hard time explaining Tongue


Messages In This Thread
redirect doesn't work - by El Forum - 02-11-2010, 11:58 PM
redirect doesn't work - by El Forum - 02-12-2010, 12:02 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:14 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:17 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:20 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:23 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:23 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:26 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:29 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:37 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:41 AM
redirect doesn't work - by El Forum - 02-12-2010, 12:58 AM
redirect doesn't work - by El Forum - 02-12-2010, 01:03 AM
redirect doesn't work - by El Forum - 02-12-2010, 01:18 AM
redirect doesn't work - by El Forum - 02-12-2010, 02:06 AM
redirect doesn't work - by El Forum - 02-12-2010, 02:31 AM
redirect doesn't work - by El Forum - 02-12-2010, 04:01 AM
redirect doesn't work - by El Forum - 02-13-2010, 01:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB