Welcome Guest, Not a member yet? Register   Sign In
question of ajax and CI
#7

[eluser]piranha_swe[/eluser]
Yes its located in that controller, its the same controller as the rest of the public site, should I put it in another controller?

Its alot of code, but the main page is located in the index function.

<?php
class Records extends Controller {

function index()
{
.... lots of code ...
}
Then I have functions for pages on the menu, how to, contact, news letter and so on that looks like this
function faq()
{
//LOADING
$this->included();

$table['pagetext'] = $this->Datawork->DBGet("texts", array('id = 7'), "", "", "");

$this->load->view('css/style');
$this->load->view('top');
$this->load->view('faq', $table);
$this->load->view('bottom');
}

. Then at the end of the file I have the ajax_cart function.

I havent used the _remap function, I think I seen it somewhere in the guide or on this forum, but I dont know what it is.
I use a .htaccess file to remove index.php, I also try to remove the records/ part from the url, but I'm not sure what I've done is correct. My admin part is not working correct at the moment with this .htaccess file.
Looks like this

RewriteEngine On
RewriteCond %{QUERY_STRING} ^(css=.*)$ [NC]
RewriteRule ^(.*)$ /index.php?/records/%1 [L]
RewriteCond $1 !^(images|system|photos|sounds|ajax|favicon/.ico|robots\.txt|index.php) [NC]
RewriteRule ^(.*) /index.php?/records/$1 [L]


I get the same result as you with the link http://www.vinylcatch.se/records/ajax_cart.


Messages In This Thread
question of ajax and CI - by El Forum - 08-19-2009, 03:41 AM
question of ajax and CI - by El Forum - 08-19-2009, 04:31 AM
question of ajax and CI - by El Forum - 08-19-2009, 04:36 AM
question of ajax and CI - by El Forum - 08-19-2009, 04:49 AM
question of ajax and CI - by El Forum - 08-21-2009, 03:49 AM
question of ajax and CI - by El Forum - 08-21-2009, 04:04 AM
question of ajax and CI - by El Forum - 08-21-2009, 05:08 AM
question of ajax and CI - by El Forum - 08-21-2009, 05:38 AM
question of ajax and CI - by El Forum - 08-24-2009, 03:15 AM
question of ajax and CI - by El Forum - 08-24-2009, 03:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB