Re: web based Application software development with cakephp
I got this from http://bakery.cakephp.org/articles/view/secrets-of-admin-routing
I hope this could help you:
if ($plugins = Configure::listObjects('plugin'))
{
$pluginMatch = implode('|', array_map(array('Inflector', 'underscore'), $plugins));
Router::connect(
"/:plugin/:controller/:action/*",
array('action' => null),
array('plugin' => $pluginMatch)
);
}
add that to your routes.php at the first line, well that depends on your logic.
you can add as many parameter as you want... by changing the *,
http://book.cakephp.org/view/114/Plugins might help you understand more.
On Thu, Nov 26, 2009 at 6:24 AM, Pallab <mr.pallabghosh@gmail.com> wrote:
I am tring to build a web based application software with cakephp.
My application has 7 to 10 modules.
Its like a erp software
My Application has modules like
1. General ledger
2. Supply Chain Management system
3. Employee management system
.
.
.
and many more
These all modules are very large in size.I have already developped it
using php, mysql.
but now i want to develop it with cake.
My problem is I want to use separate folder or directories for each
module.
like for general ledger >> gledger
for Employee management system >> ems
and want to store the controller,module and views under the folders
( e.g. "ems").
and i want to use general library and config file for all these
modules.
for maintainable issues.
I am tring to give the directory structure below
erpprojectname(main project folder name)
-cake(library)
-config(configuration files)
-ems(module name)
-----app
-----views
-----controller
-scms(module name)
-----app
-----views
-----controller
I want to access the programme with url like this
www.example.com/ems/controller_name/action_name/param1...
or
www.example.com/scms/controller_name/action_name/param1...
or
www.example.com/admin/controller_name/action_name/param1...
can any one help me???
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home