CodeIgniter Forums
Redirect Error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Redirect Error (/showthread.php?tid=40755)

Pages: 1 2


Redirect Error - El Forum - 04-18-2011

[eluser]toopay[/eluser]
Yes, but you put inapropriate redirect response i guess.


Redirect Error - El Forum - 04-18-2011

[eluser]pictwist[/eluser]
I think so, i shall try to find the cause.
i may be some thing to do with calling the default controller


Redirect Error - El Forum - 04-18-2011

[eluser]toopay[/eluser]
Your solution is either create some base controller which can extend by any controller or create pre-controller hook. Also, try check "Ignited Code" section, and find some auth library which maight be match with your need.


Redirect Error - El Forum - 04-18-2011

[eluser]pictwist[/eluser]
Thank you


Redirect Error - El Forum - 01-22-2012

[eluser]crimsun[/eluser]
Hi Team,

My current site is in 1.7.2 version and i want to upgrade the version to 2.0. And i follow the process which is guide by ci forum.

However when i open the site link its open the home page means default controller class only for all the classes / controller.

I didn’t get the link working well.

www.domain.com/home .....its work for home page
www.domain.com/login .....its again display homepage
www.domain.com/profile .....its again display homepage

No any other page is display....

Can anybody help me out.

Thanks in Advance.


Redirect Error - El Forum - 01-23-2012

[eluser]pictwist[/eluser]
Hello,

I need more details regarding how you reference the controller classes after you upgraded.

Did you notice the change in the name of the controller class i.e. for version 1.7.x
Code:
class Welcome extends Controller

but for 2.0.x
Code:
class Welcome extends CI_Controller

If this is not the cause, could you provide the code for one of your controller classes?

Thanks


Redirect Error - El Forum - 01-23-2012

[eluser]crimsun[/eluser]
Hi,
Code:
class Home extends CI_Controller {
        public $outputData;
        //constructor
        public function __construct()
        {
           parent::__construct();
                //Get Config Details From Db
                $this->config->db_config_fetch();
        }
}

While i open the main link it run this controller as link...

www.demo.com/home

Then i clicked on other tab

www.demo.com/aboutus

Its just affect in URL....however the view page is still shown for Home controller/function only..


Please suggest me the way how to get out from here..

Thanks in advance


Redirect Error - El Forum - 01-24-2012

[eluser]pictwist[/eluser]
Hello,

Could you provide the code for a controller other than the home controller?


Redirect Error - El Forum - 01-28-2012

[eluser]TheFuzzy0ne[/eluser]
It sounds like your .htaccess file might not be quite right.

Do you get the right results when you access your pages like this?

yoursite.tld/index.php/home
yoursite.tld/index.php/aboutus