how can i add routes to application.ini and in general how do i create a
mapping from 

resources.db.adapter = "pdo_mysql"
resources.db.params.host = "localhost"
resources.db.params.username = "root"
resources.db.params.password = ""
resources.db.params.dbname = "zf-ims"

to code like

new Zend_Db(...)?

is there documentation for this?

i tried 

to add a route to lab module, departments controller, edit action like: 

routes.lab.route = "/lab/departments/edit/:id"
routes.lab.defaults.controller = departments
routes.lab.defaults.action = edit
routes.lab.defaults.id = 1
routes.lab.reqs.id = "\d+"

i followed some other site tutorial. but it does not work. i get ... in the
error controller

Request Parameters:

array(3) {
  ["module"]=>
  string(3) "lab"
  ["controller"]=>
  string(11) "departments"
  ["action"]=>
  string(4) "edit"
}
 
so the id parameter is not there
-- 
View this message in context: 
http://www.nabble.com/Adding-routes-with-application.ini-tp23293676p23293676.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to