title: yii. Accessing a function from a modules controller
body: <p>I have a module in my app and under its default controller it has a function called <code>renderPageLinks</code> which returns a array for consumption by a widget.</p>
  
  <p>The widget, <code>genMenu</code>, is called from /themes/jui/views/layouts/main.php (it generates a menu) I need to pass the data from the renderPageLinks to the widget as a value:</p>
  
  <pre><code>$this-&gt;widget('pageLinkGen', array('pages' =&gt; renderPageLinks()));
  </code></pre>
  
  <p>The problem is Yii cant find the function renderPage Links.</p>
  
  <p>i tried diffrent combinations of the following with to avail.. </p>
  
  <pre><code>$this-&gt;widget('pageLinkGen', array('pages' =&gt; 'application.module.QuickDial.default.renderPageLinks()'));
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p>p.s. I have tried to move <code>renderPageLinks()</code> to the controller pageLinkGen but Yii can't find the model used in <code>renderPageLinks()</code>.</p>