[Midas] default controller action problem

Mona Wong mona at sdsc.edu
Sun Jul 8 17:35:51 EDT 2012


	I have the following code in modules/annio2/controllers/IndexController.php (note, annio2 is not a typo, I had to make this change due to a URL clash):

<?php
class Annio2_IndexController extends Annio2_AppController
{
    public $_models = array ( "Item", "Folder" );

    /**
     * @method initAction()
     *  Index Action (first action when we access the application)
     */
    function init()
    {

    } // end method indexAction


    function getAction()
    {
        $this->disableLayout();
        $this->disableView();
        echo "annio2 getAction!";
    }

	and I browsed to the URL: https://<midas_server_root>/annio2/get but got:

The system has encountered the following error:<br/><h3><br/>In , line: <br/>At 17:34:39 2012-07-08</h3><br/>Please notify your administrator with this information.<br/>

	What am I doing wrong?

thanks,
Mona


*********************************************
    Mona Wong
    Web & iPad Application Developer
    San Diego Supercomputer Center

    You are the light you wish to see.
*********************************************



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/midas/attachments/20120708/9cb9aac1/attachment.html>


More information about the Midas mailing list