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

[eluser]JunglistPerfection[/eluser]
[quote author="gtech" date="1211251856"]check out the trouble shooting section of the documentation, and also check this link out that i've just posted to earlier on this evening:
[url="http://ellislab.com/forums/viewthread/79914/"]http://ellislab.com/forums/viewthread/79914/[/url] it could be related as what you are seeing is the same, ie only the default controller loads.[/quote]

No info from the link helped me. I'm not using IIS. I'm just using EasyPHP 1.8 for CI.

Maybe the url's I place in are wrong.

For localhost use, how should I write my url's?
#12

[eluser]gtech[/eluser]
lets assume in your config.php
base_url is set to 'http://localhost/ciinstall/'
and index_page is set to 'index.php'

if you had a controller called Home and a function called hello your url would be:

http://localhost/ciinstall/index.php/home/hello

your controller needs to live in the controllers directory and the file name has to be in lowercase the same name as the controller.
#13

[eluser]JunglistPerfection[/eluser]
[quote author="gtech" date="1211358830"]lets assume in your config.php
base_url is set to 'http://localhost/ciinstall/'
and index_page is set to 'index.php'

if you had a controller called Home and a function called hello your url would be:

http://localhost/ciinstall/index.php/home/hello

your controller needs to live in the controllers directory and the file name has to be in lowercase the same name as the controller.[/quote]

My home page is the only thing that works. Like I said before, I followed instructions for the controllers to work properly. But I'm not having any success with the rest of the pages.

Is there a php extension that I'm missing? or
Is the problem with how I setup my url's?

P.S. I switched to XAMPP 1.6.6a from EasyPHP 1.8 and still the same result.
#14

[eluser]sikkle[/eluser]
hehe remove all xampp and easyphp you have, because you prolly still have wrong php.ini out there.

install wamp server 2 (wamp5) and reboot and good luck !
#15

[eluser]JunglistPerfection[/eluser]
[quote author="sikkle" date="1211441480"]hehe remove all xampp and easyphp you have, because you prolly still have wrong php.ini out there.

install wamp server 2 (wamp5) and reboot and good luck ![/quote]

I'm most likely going to get the same result with wamp.
#16

[eluser]sholnay[/eluser]
@JunglistPerfection:

I dont think you quite answered how you're trying to access your controllers.

are you following the http://localhost/index.php/controller/function protocol? or are you trying to use http://localhost/controller/function?
#17

[eluser]JunglistPerfection[/eluser]
[quote author="sholnay" date="1211587719"]@JunglistPerfection:

I dont think you quite answered how you're trying to access your controllers.

are you following the http://localhost/index.php/controller/function protocol? or are you trying to use http://localhost/controller/function?[/quote]

Answer:
http://localhost/controller/function

I already set my htaccess file to not show the index.php.

What Im trying to figure out is, how do you type in your url's?
#18

[eluser]sholnay[/eluser]
Lets take things step by step.

I suggest you minimize the possible places for error and temporarily remove the htaccess file - you might have configured it wrong or placed it in the wrong directory.

Try removing the htaccess file and attempt to contact your controllers using: http://localhost/index.php/<controller>/<function>

where <controller> is your controller name and <function> is your function name.

That is the URL that I use to access my controllers.
#19

[eluser]salman@lee[/eluser]
Parse error: syntax error, unexpected T_VARIABLE in D:\wamp\www\CodeIgniter_2.1.0\application\models\chat_model.php on line 29







&lt;?php

class Chat_modal extends CI_modal {

function Chat_modal()
{
parent::__construct();

}

function add_chat_message($char_id, $user_id, $chat_message_content)
{

$query_str= "INSERT INTO chat_message(chat_id, user_id, chat_message_content) 'values'(?, ?, ?,)";

$this->db->query($query_str, arrary (chat_id, user_id, chat_message_content));;
}
function get_chat_messages($chat_id)
{
$query_str = "select
cm.user_id,
cm.chat_message_content
DATE_FORMAT(cm.create_date, '#D of #m #y at #H : #I : #S ')
AS chat_message_timestamp,u.name
from chat_message cm
join user u on cm.user_id = u.user_id
where cm.chat_id = ?"

$result = $this->db->query($query_str, $chat_id);

return $result;


}

}



?&gt;




Theme © iAndrew 2016 - Forum software by © MyBB