Hi Mona,<div><br></div><div>It is probably best to create a module by starting a bit simpler than the Helloworld example, as that includes some models which can be confusing, and also the models are called Hello, so you end up with lines like</div>
<div><br></div><div>Helloworld_HelloModelBase extends Helloworld_AppModel</div><div><br></div><div>which is even more confusing to me and would probably be troublesome for global search and replaces.  </div><div><br></div>
<div>I have whipped up a very simple example module that I'm attaching here.  If you gunzip and untar it in your modules directory, you can add it to your Midas instance.  The module doesn't do much, but you can turn it on from the Administrative menu and then go to</div>
<div><br></div><div><a href="http://localhost/midas3/example/index">http://localhost/midas3/example/index</a></div><div><br></div><div>(assuming you are working on your localhost) and see a message.</div><div><br></div><div>
This way you have a bit clearer of a starting point for your own module.  If you want to add in a web api, you can see the dicomextractor module as an example, which is a module that doesn't include any models.  If you want to see some example models, try looking at the communityagreement module, which has a simple model.</div>
<div><br></div><div><br></div><div>I hope this gets you on your way.</div><div><br></div><div>-Mike</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Jun 20, 2012 at 5:49 PM, Mona Wong <span dir="ltr"><<a href="mailto:mona@sdsc.edu" target="_blank">mona@sdsc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
        So I'm trying to write my own Midas 3 module (named annio) and am getting the following error in the log file:<br>
<br>
<b>Message: Unable to find model file Annio</b><br>
<br>
        Does anyone know what this file is or how to fix the problem?<br>
<br>
        I copied the modules/helloworld/ to modules/annio/ and made the changes mentioned at <a href="http://www.kitware.com/midaswiki/index.php/MIDAS3-PluginsDev" target="_blank">http://www.kitware.com/midaswiki/index.php/MIDAS3-PluginsDev</a>.  In addition, I did a recursive grep for "ello" and changed all entries to Annio (annio) and when I tried to go to Midas, I got the above error message in the log and the following page:<br>


<br>
<br><br>
<br>
        All help is appreciated.<br>
<br>
Mona<br>
<br>
<br>
*********************************************<br>
    Mona Wong<br>
    Web & iPad Application Developer<br>
    San Diego Supercomputer Center<br>
<br>
    "Forgive everyone everything."<br>
                                -- Regina Brett<br>
*********************************************<br>
<br>
<br>
<br>
<br>
<br>_______________________________________________<br>
Midas mailing list<br>
<a href="mailto:Midas@public.kitware.com" target="_blank">Midas@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/midas" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/midas</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks,<br>Michael Grauer<br>R & D Engineer<br>Kitware, Inc.<br><a href="tel:919%20969%206990%20x322" value="+19199696990" target="_blank">919 969 6990 x322</a><br>
<br><br><br>
</div>