Welcome Guest, Not a member yet? Register   Sign In
Difficulties starting codeIgniter
#1

[eluser]windlessuser[/eluser]
Hey, I was introduced to codeIgniter thought NetTuts. I using the framework to speed up dev time on a job board/class fields site I'm making. I was using some code i found on Nettuts, that gave a base of what i wanted to do, and was going to extend that. However when i start CI fresh, i get the welcome screen. However, when i change anything...nothing comes not, not even an error. I'm running CI on my local machine. It's running apache 2.2 with php 5.3 I know my installation works cause I get feed back with phpinfo(); Any idea of whats wrong. I know the nettuts code works...for them atleast.. Please help!

changes made from default setup:

in /config/config.php: $config['base_url'] = 'http://localhost/jobs-tut/';
$config['global_xss_filtering'] = TRUE;

in /config/database.php, i set my databse info up, also on the local machine.

in /config/autoload.php: $autoload['libraries'] = array('database', 'form_validation');
$autoload['helper'] = array('url','form','security');

in /config/routes.php: $route['default_controller'] = "jobs";

in /controllers/, there is a controler jobs.php:

<?php

class Jobs extends Controller {

function Jobs() {
parent::Controller();
$data['sitetitle'] = 'Job Board';
$this->load->vars($data);
}

function index() {
redirect('jobs/listings');
}

function listings() {
echo 'hello world';
}

}
# End of file 'controllers/jobs.php'

Now even with all of that, The url "http://localhost/job-tuts/index.php/jobs/listings" (without quotes) but nothing is returned...Not even an error

Help!
#2

[eluser]windlessuser[/eluser]
i even try putting a closing ?> tag at the end of jobs.php, still nothing
#3

[eluser]windlessuser[/eluser]
I tried an existing codeIgnither app, namely bambooInvoice...It doesnt work either. I was thinking the issue was with with my apache/php installation, but then i tried it with XAMPP, but im getting the same issue... What could be wrong guys?
#4

[eluser]cahva[/eluser]
If you get a blank screen, your errors are probably going to apache error log so check that or set display_errors to on(and also check the error_reporting level). Also check CI logs from system/logs.

No need to add closing php tag and its preferable to leave it off.
#5

[eluser]windlessuser[/eluser]
apache error log:

[Fri Aug 13 17:28:54 2010] [notice] Apache/2.2.16 (Win32) PHP/5.3.3 configured -- resuming normal operations
[Fri Aug 13 17:28:54 2010] [notice] Server built: Jul 30 2010 16:15:37
[Fri Aug 13 17:28:54 2010] [notice] Parent: Created child process 6828
[Fri Aug 13 17:28:57 2010] [notice] Child 6828: Child process is running
[Fri Aug 13 17:28:57 2010] [notice] Child 6828: Acquired the start mutex.
[Fri Aug 13 17:28:57 2010] [notice] Child 6828: Starting 64 worker threads.
[Fri Aug 13 17:28:57 2010] [notice] Child 6828: Starting thread to listen on port 80.

CI log:

DEBUG - 2010-08-13 18:30:23 --> Config Class Initialized
DEBUG - 2010-08-13 18:30:23 --> Hooks Class Initialized
DEBUG - 2010-08-13 18:30:23 --> URI Class Initialized
DEBUG - 2010-08-13 18:30:23 --> No URI present. Default controller set.
DEBUG - 2010-08-13 18:30:23 --> Router Class Initialized
DEBUG - 2010-08-13 18:30:23 --> Output Class Initialized
DEBUG - 2010-08-13 18:30:23 --> Input Class Initialized
DEBUG - 2010-08-13 18:30:23 --> Global POST and COOKIE data sanitized
DEBUG - 2010-08-13 18:30:23 --> Language Class Initialized
DEBUG - 2010-08-13 18:30:23 --> Loader Class Initialized
DEBUG - 2010-08-13 18:30:23 --> Helper loaded: url_helper
DEBUG - 2010-08-13 18:30:23 --> Helper loaded: form_helper
DEBUG - 2010-08-13 18:30:23 --> Helper loaded: security_helper
DEBUG - 2010-08-13 18:30:23 --> Database Driver Class Initialized

still nothing is being displayed...

* El Forum proceeds to pull his hair.
#6

[eluser]windlessuser[/eluser]
UPDATE:

localised the issue, to be a database one. Not sure why though, MySQL process is running. and my php and apache are configured for it. And no errors are being thrown or logged. Help!
#7

[eluser]cahva[/eluser]
What about mysql error log? What does it say? Does phpmyadmin work in your xampp install?
#8

[eluser]windlessuser[/eluser]
cant find my MySQL error log. and Nope phpMyAdmin isnt workin either




Theme © iAndrew 2016 - Forum software by © MyBB