Welcome Guest, Not a member yet? Register   Sign In
Redirect Error
#11

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

[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
#13

[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.
#14

[eluser]pictwist[/eluser]
Thank you
#15

[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.
#16

[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
#17

[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
#18

[eluser]pictwist[/eluser]
Hello,

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

[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




Theme © iAndrew 2016 - Forum software by © MyBB