<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><span class="Apple-tab-span" style="white-space:pre"> </span>I'm still getting a blank page...<div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Here is my controllers/IndexController.php:</div><div><br></div><div><?php</div><div><div>class Example_IndexController extends Example_AppController</div><div>{</div><div> /**</div><div> * @method initAction()</div><div> * Index Action (first action when we access the application)</div><div> */</div><div> function init()</div><div> {</div><div><br></div><div> } // end method indexAction</div><div><br></div><div> /** index action*/</div><div> function indexAction()</div><div> {</div><div> //$this->disableLayout();</div><div> //$this->disableView();</div><div> $this->view->mona = "MONA";</div><div> }</div><div><br></div><div>}//end class</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Here is my views/index/index.phtml (taken from midas/modules/batchmake/views/index/index.phtml):</div><div><br></div><div><div><?php</div><div>$this->headScript()->appendFile($this->coreWebroot . '/public/js/jquery/jquery.form.js');</div><div>$this->headScript()->appendFile($this->apiWebroot.'/public/js/common/common.ajaxapi.js');</div><div>?></div><div><link type="text/css" rel="stylesheet" href="<?php echo $this->coreWebroot?>/public/css/common/common.genericPage.css" /></div><div><div class="viewMain"></div><div><h2>Welcome to the Annio Plugin</h2></div><div></div></div></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Do you spot a problem?</div><div><br></div><div>Mona</div><div><br></div><div><br></div><div><div>On Jul 4, 2012, at 1:23 PM, Michael Grauer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">This is also related to your views 101 question.<div><br></div><div>To get your IndexController/indexAction working, you also need a corresponding view. So in your modules <b>views </b>folder, create a subfolder <b>index </b>(which would be for all the actions in the IndexController), and a file <b>index.phtml</b>, which would be for the IndexController/indexAction.</div>
<div><br></div><div>For a different action in the IndexController, you would create a different phtml file in your <b>index </b>subfolder, and for the FooController.barAction, you would create <b>view/foo/bar.phtml</b>.</div>
<div><br></div><div>You can see the batchmake module as an example for this index view, that one simple to understand as it does practically nothing!</div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>*********************************************</div><div> Mona Wong</div><div> Web & iPad Application Developer</div><div> San Diego Supercomputer Center</div><div><br></div><div> "Forgive everyone everything."</div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>-- Regina Brett</div><div><div><div>*********************************************</div></div><div><br></div></div></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></body></html>