HMVC and Cjax

#1
[eluser]Fredrik-s[/eluser]
Hello,

I have googled a lot and read threads regarding getting HMVC and Cjax to work properly. Although there isn't any good documentation covering how to install Cjax with an HMVC CodeIgniter installation structure.

My setup looks like this:

- CodeIgniter 2.1.4
- HMVC (https://bitbucket.org/wiredesignz/codeig...sions-hmvc)
- Cjax 5.8
- Friendly URLS - mapped to cached route.php-file under "application/cache"

.htaccess
Code:
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^/?ajax/(.*)$ ajax.php?$1 [NC,QSA,L]
RewriteRule ^index.php/(.*)$ /$1 [R=302,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

File structure:
/ajax.php
/ajaxfw.php
/cjax/
/application/response/sample.php
/application/response/test.php
/application/controllers/AjaxController.php

Also tested to create a test module like the following
/application/modules/test/controllers/test.php
/application/modules/test/models/
/application/modules/test/views/

Put the following in my cached routes.php-file (application/cache/routes.php)
$route['test'] = 'test';
$route['test/test'] = 'test';
$route['test/test2'] = 'test';

When surfing to http://example.com/ajax/test/test2 i get the following message stating my routes aren't right:
Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.

What am I doing wrong and how should I fix it?



Messages In This Thread
HMVC and Cjax - by El Forum - 01-29-2014, 04:11 AM
HMVC and Cjax - by El Forum - 01-31-2014, 05:44 AM
HMVC and Cjax - by El Forum - 02-02-2014, 06:30 AM
HMVC and Cjax - by El Forum - 02-07-2014, 06:53 AM
HMVC and Cjax - by El Forum - 02-10-2014, 08:46 AM
HMVC and Cjax - by El Forum - 02-10-2014, 09:23 AM
HMVC and Cjax - by El Forum - 02-10-2014, 09:58 AM
HMVC and Cjax - by El Forum - 02-10-2014, 11:54 AM
HMVC and Cjax - by El Forum - 02-10-2014, 12:45 PM
HMVC and Cjax - by El Forum - 06-08-2014, 01:05 PM
HMVC and Cjax - by El Forum - 06-12-2014, 09:34 AM
HMVC and Cjax - by El Forum - 06-12-2014, 04:38 PM
HMVC and Cjax - by El Forum - 06-13-2014, 05:39 AM
HMVC and Cjax - by El Forum - 06-13-2014, 01:10 PM
HMVC and Cjax - by El Forum - 06-14-2014, 02:52 PM
HMVC and Cjax - by El Forum - 10-29-2014, 12:25 AM
HMVC and Cjax - by El Forum - 10-29-2014, 02:18 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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