View Single Post
  #1 (permalink)  
Old 06-04-2008, 08:39 PM
bittyboy bittyboy is offline
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
Reply With Quote