Welcome Guest, Not a member yet? Register   Sign In
Help with Controller
#1

[eluser]Jagar[/eluser]
I have just started integrating my site into CI and am having issues.
in the controllers folder i have: Home.php which is the default
Admin_Login.php is the login.

Home.php works great now trying to access the admin login.

I'm using IIS 5.1 with Zend Core and zend platform and php 5.2.6 installed.

I'm using the following to access the login page but it gives me a server error, not CI error.

http://localhost/ci/index.php/admin_login

the file is called Admin_Login.php and the following is the content.
Code:
class Admin_Login extends Controller {
    
    function __construct(){
        parent::Controller();        
    }
    
    function index(){
        $this->smarty_parser->parse("admin/login.htm");
    }
}

Any help is appreciated it.

Thanks
#2

[eluser]Jagar[/eluser]
I have configured smarty with CI with the help of http://ellislab.com/forums/viewthread/60050/
#3

[eluser]Jagar[/eluser]
I'm using apache web server and using the above url works great. I hope that is not a limitation in IIS, because that is the server that this project will be using, in fact is iis 6

I would appreciate any explanation
#4

[eluser]gunter[/eluser]
troubleshooting - userguide ;-)

http://ellislab.com/codeigniter/user-gui...oting.html
#5

[eluser]Jagar[/eluser]
Thanks for your reply gunter, I will do that.

I had zend core and zend platform installed, I removed it from my pc, I have php 5.2.9-2 I'm trying to run CI, all I see is blank.

Is there any special requirements for CI to work that has to be enabled in php.ini

Thanks
#6

[eluser]Dam1an[/eluser]
[quote author="Jagar" date="1240534245"]
Is there any special requirements for CI to work that has to be enabled in php.ini
[/quote]

There shouldn't be, CI is designed to work on a standard installation...
To make sure PHP is working fine, just create a PHP file with an echo statement or something
#7

[eluser]Jagar[/eluser]
I replaced all the files and seem to be working again.

Thanks for your replies. now I got a try and get this url stuff to work in iis 5/6
#8

[eluser]Jagar[/eluser]
The only way for the url to work in IIS 5 is to use the query string as such:
http://localhost/index.php?c=admin_login&m=index that is pain in the ***,

I wish there was a way to get this to work Sad
#9

[eluser]Jagar[/eluser]
I actually got it workign without the ugly query string, as the user guide suggested, adding a ? at the end of index.php solves the problem, now I"m able to access it as: http://localhost/ci/?admin_login or http://localhost/ci/index.php?admin_login

Thanks all




Theme © iAndrew 2016 - Forum software by © MyBB