Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-25-2008, 05:53 PM
Junior Member
 
Join Date: Mar 2008
Posts: 5
Default Getting module name in bootstrapper

I'm trying to set up a directory structure using modules (with multiple module dirs underneath application). Is there an easy way to determine which module was called in my bootstrapper.php file?

I'm trying to make my bootstrapper define specific databases, layouts, model dirs, etc dependent on the module that was called.

Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-25-2008, 07:46 PM
Junior Member
 
Join Date: Oct 2007
Posts: 26
Default

Hi,

I simply use the following:

Code:
$module = $request->getModuleName();
I hope that helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:13 PM.