[Midas] controllers/IndexController.php

Michael Grauer michael.grauer at kitware.com
Wed Jul 4 16:23:59 EDT 2012


This is also related to your views 101 question.

To get your IndexController/indexAction working, you also need a
corresponding view.  So in your modules *views *folder, create a
subfolder *index
*(which would be for all the actions in the IndexController), and a file *
index.phtml*, which would be for the IndexController/indexAction.

For a different action in the IndexController, you would create a different
phtml file in your *index *subfolder, and for the FooController.barAction,
you would create *view/foo/bar.phtml*.

You can see the batchmake module as an example for this index view, that
one simple to understand as it does practically nothing!




On Wed, Jul 4, 2012 at 3:59 PM, Zach Mullen <zach.mullen at kitware.com> wrote:

> That actually should work... What error message are you seeing?
>
>
>
> On Wed, Jul 4, 2012 at 3:54 PM, Mona Wong <mona at sdsc.edu> wrote:
>
>>
>> I thought perhaps annio/controllers/IndexController.php indexAction() is
>> the default action that will be executed when the user navigates to
>> "midas/annio/" but that doesn't seem to be working.Is there a default
>> controller action function?  Please educate me (:
>>
>> thanks,
>> Mona
>>
>>
>>      *********************************************
>>     Mona Wong
>>     Web & iPad Application Developer
>>     San Diego Supercomputer Center
>>
>>     Believing we are in control is an
>>     illusion that brings suffering.
>> *********************************************
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Midas mailing list
>> Midas at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/midas
>>
>>
>
>
> --
> Zach Mullen
> R & D Engineer
> Kitware Inc.
> 919-869-8858
>
> _______________________________________________
> Midas mailing list
> Midas at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/midas
>
>


-- 
Thanks,
Michael Grauer
R & D Engineer
Kitware, Inc.
919 969 6990 x322
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/midas/attachments/20120704/325fedb5/attachment.html>


More information about the Midas mailing list