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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2008, 08:39 PM
Junior Member
 
Join Date: May 2008
Posts: 3
Default Yes I know Modules again?..!

I know this subject has been killed but I don't seem to see anything that I'm looking for...

I have setup a module in the bootstrap called zone which is working fine:
Code:
 'zone'   =>  $config->paths->base . 'include/zone/Controllers'));
Then if I go to zone at http://www.mydomain.co.uk/zone it shows me what looks like the default index page of the site without me creating any templates (smarty .tpl)

So I have my IndexController.php in the zone/Controllers dir and the class is called class zone_IndexController extends CustomControllerAction (CustomControllerAction) is my own.

inside I have the normal:
Code:
public function indexAction()
{
}
and also

Code:
public function statusAction()
{
}
If I goto http://www.mydomain.co.uk/zone/status
it says "Invalid Controller Specified"

but if I goto:
http://www.mydomain.co.uk/zone/index/status
it works but wants me to add a .tpl to index/status.tpl - why is this not asking me to create a template in zone/index.tpl or status.tpl ??

Can someone please advise me on this - it's driving me crazy!

Kind regards

Nick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-10-2008, 02:18 PM
Member
 
Join Date: Aug 2007
Location: Sweden
Posts: 52
Send a message via MSN to Leif.Högberg
Default

By default the viewrenderer looks for viewscripts in zone/views/scripts/controller/action.suffix

So the script is named after the action, but should be placed in a folder named after the controller. To change this behaviour take a look at the method "setViewScriptPathSpec" in the viewrenderer.
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 05:11 AM.