Welcome Guest, Not a member yet? Register   Sign In
CI 2.0 system/application path problem
#1

[eluser]Juris Malinens[/eluser]
I use xampp portable server

website is located in:
Code:
C:\Users\Juris\Documents\My Dropbox\xampp\htdocs

system path:
Code:
C:\Users\Juris\Documents\My Dropbox\xampp\htdocs\system

application path:
Code:
C:\Users\Juris\Documents\My Dropbox\xampp\htdocs\application

but in C:\Users\Juris\Documents\My Dropbox\xampp\htdocs\index.php both default $system and $application values not working and full path also not working:

Code:
$system_path = "C:/Users/Juris/Documents/My Dropbox/xampp/htdocs/system";
$application_folder = "C:/Users/Juris/Documents/My Dropbox/xampp/htdocs/application";

When I create controller I get this:


Fatal error: Class 'Controller' not found in C:\Users\Juris\Documents\My Dropbox\xampp\htdocs\application\controllers\auth.php on line 3


when I visit:
http://localhost/index.php/auth

my Apache DocumentRoot :
Code:
DocumentRoot "/Users/Juris/Documents/My Dropbox/xampp/htdocs"
(this is for portable)
but
Code:
DocumentRoot "C:/Users/Juris/Documents/My Dropbox/xampp/htdocs"
also don't work
#2

[eluser]Liu Guoqing[/eluser]
CI 2.0 system ???? Where it is???
#3

[eluser]techgnome[/eluser]
Aren't the values relative to where the index.php file is located? Granted I'm fairly new to CI, but I've never had to change the values of where the application or system folders are located, and it works just fine for me.

-tg
#4

[eluser]wiredesignz[/eluser]
Remove the space from the directory name 'My Dropbox'!!!
#5

[eluser]Santiago Dimattía[/eluser]
Your constrollers must extend:
- CI_Controller instead of Controller
- CI_Model instead of Model
#6

[eluser]InsiteFX[/eluser]
[quote author="Liu Guoqing" date="1289801368"]CI 2.0 system ???? Where it is???[/quote]

CodeIgniter 2.0

InsiteFX
#7

[eluser]Juris Malinens[/eluser]
Thank You, Santiago Dimattía- with CI_Controller it works ;-)




Theme © iAndrew 2016 - Forum software by © MyBB