Newbie to Ignite. Please help! Links doesnt work!!!

#11
[eluser]SonamL[/eluser]
I meant the comment doesnt get submitted and I never get the error page. it directs me to some new page on the www.
Please HElp!!!

#12
[eluser]Dam1an[/eluser]
Well, if you need us to help with that part, then you need to show the relevant code.
If the comment is being submitted (in blog/comment_insert) you must have something in there that does the redirect

#13
[eluser]SonamL[/eluser]
This is the part of the controller file :-

Code:
function Comments()
        {
        $data['query']=$this->db->get('comments');
        $this->load->view('commentview',$data);
        }

#14
[eluser]Dam1an[/eluser]
Thats not what you're posting the form to
Code:
<?=form_open(‘blog/comment_insert’);?>

The relevant code if the comment_insert function in the blog controller

#15
[eluser]SonamL[/eluser]
oops..here this is:-
Code:
<body>

<?=form_open('blog/comment_insert');?>

<?=form_hidden('entry_id',$this->uri->segment(3));?>

#16
[eluser]miss_amylee[/eluser]
hi..im newbie in using codeigniter..i have dis kinda of prob

"Use of undefined constant base_url .."

i already change my config file to $config['base_url'] = "http://localhost/codeigniter/";

but stil dis err coming.pls help me to link my file.TQ :roll:

#17
[eluser]InsiteFX[/eluser]
Hi,

Here is another thing that a lot of you new users to CodeIgniter seem to be missing after the above base_url().

In index.php you need to set the path to the CodeIgniter system and application directory.

Code:
/*
|---------------------------------------------------------------
| SYSTEM FOLDER NAME
|---------------------------------------------------------------
|
| This variable must contain the name of your "system" folder.
| Include the path if the folder is not in the same  directory
| as this file.
|
| NO TRAILING SLASH!
|
*/
    $system_folder = "system";

/*
|---------------------------------------------------------------
| APPLICATION FOLDER NAME
|---------------------------------------------------------------
|
| If you want this front controller to use a different "application"
| folder then the default one you can set its name here. The folder
| can also be renamed or relocated anywhere on your server.
| For more info please see the user guide:
| http://ellislab.com/codeigniter/user-guide/general/managing_apps.html
|
|
| NO TRAILING SLASH!
|
*/
    $application_folder = "application";

Enjoy
InsiteFX


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.