CodeIgniter Forums
Is Codeigniter only focused on web development or also other type of applications? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Is Codeigniter only focused on web development or also other type of applications? (/showthread.php?tid=59013)



Is Codeigniter only focused on web development or also other type of applications? - El Forum - 08-14-2013

[eluser]luisvallin[/eluser]
Help!!!!
Is Codeigniter only focused on web development or also other type of applications?



Is Codeigniter only focused on web development or also other type of applications? - El Forum - 08-25-2013

[eluser]dmyers[/eluser]
No I have a simple extension to CI_Router (MY_Router) which add REST services.

https://github.com/dmyers2004/myersd-ci3/blob/master/application/core/MY_Router.php

lines 82-93

Note this is the 3.0 Dev version of codeigniter...

what else were you thinking of?

Oh ya and in config/route.php I have

$route['default_controller'] = 'mainController/indexAction';
$route['404_override'] = '';

/* bring in our admin defaults */
$route['admin/(:any)/(:any)/(:any)/(:any)/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3/$4/$5/$6/$7";
$route['admin/(:any)/(:any)/(:any)/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3/$4/$5/$6";
$route['admin/(:any)/(:any)/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3/$4/$5";
$route['admin/(:any)/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3/$4";
$route['admin/(:any)/(:any)/(:any)'] = "admin/$1Controller/$2Action/$3";
$route['admin/(:any)/(:any)'] = "admin/$1Controller/$2Action";
$route['admin/(:any)'] = "admin/$1Controller/indexAction";
$route['admin'] = "admin/dashboardController/indexAction";

/* bring in our defaults */
$route['(:any)/(:any)/(:any)/(:any)/(:any)/(:any)'] = "$1Controller/$2Action/$3/$4/$5/$6";
$route['(:any)/(:any)/(:any)/(:any)/(:any)'] = "$1Controller/$2Action/$3/$4/$5";
$route['(:any)/(:any)/(:any)/(:any)'] = "$1Controller/$2Action/$3/$4";
$route['(:any)/(:any)/(:any)'] = "$1Controller/$2Action/$3";
$route['(:any)/(:any)'] = "$1Controller/$2Action";
$route['(:any)'] = "$1Controller/indexAction";

This gives me

accessController::indexAction()
accessController::newAction()
accessController::newPostAction()
accessController::newAjaxPostAction()
accessController::editAction()
accessController::editPostAction()
accessController::editAjaxPostAction()
etc...

All different Methods on a Controller.