HI All,<br><br>I have implemented REST-ful interface to my app using Catalyst::Controller::Rest;<br><br>i have several controllers and ideally i wanted to do something like this,<br><br><span style="color: rgb(204, 51, 204);">package MyApp::Controller::RestOne;</span><br style="color: rgb(204, 51, 204);">

<br style="color: rgb(204, 51, 204);"><span style="color: rgb(204, 51, 204);">use base &#39;MyApp::Controller::RestParent&#39;;</span><br style="color: rgb(204, 51, 204);"><br style="color: rgb(204, 51, 204);"><span style="color: rgb(204, 51, 204);">sub thingOne:Path: ActionClass(&#39;REST&#39;){}</span><br>

<br>in the other class,<br><span style="color: rgb(204, 51, 204);">package MyApp::Controller::RestTwo;</span><br style="color: rgb(204, 51, 204);">
<br style="color: rgb(204, 51, 204);">
<span style="color: rgb(204, 51, 204);">use base &#39;MyApp::Controller::RestParent&#39;;</span><br style="color: rgb(204, 51, 204);">
<br style="color: rgb(204, 51, 204);">
<span style="color: rgb(204, 51, 204);">sub thingTwo:Path: ActionClass(&#39;REST&#39;){}<br><br></span>in the base class, <br><br style="color: rgb(204, 51, 204);"><span style="color: rgb(204, 51, 204);">package MyApp::Controller::RestParent;</span><br style="color: rgb(204, 51, 204);">

<br style="color: rgb(204, 51, 204);"><span style="color: rgb(204, 51, 204);">use base &#39;Catalyst::Controller::REST&#39;;</span><br style="color: rgb(204, 51, 204);"><br style="color: rgb(204, 51, 204);"><span style="color: rgb(204, 51, 204);">sub begin:Private{}</span><br style="color: rgb(204, 51, 204);">

....<br><br>in my config file, i have<br><span style="color: rgb(153, 0, 0);">&lt;Controller RestParent&gt;</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">stash_key rest</span><br style="color: rgb(153, 0, 0);">

<span style="color: rgb(153, 0, 0);">  &lt;map&gt;</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">         text/html           View</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">         text/html           TT</span><br style="color: rgb(153, 0, 0);">

<span style="color: rgb(153, 0, 0);">         text/xml            XML::Simple</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">         text/x-yaml         YAML</span><br style="color: rgb(153, 0, 0);">

<span style="color: rgb(153, 0, 0);">         application/json    JSON</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">         text/x-json         JSON</span><br style="color: rgb(153, 0, 0);">

<span style="color: rgb(153, 0, 0);">         </span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">   &lt;/map&gt;</span><br style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 0, 0);">&lt;/Controller&gt;</span><br>

<br>and all the subclasses should inherit this config from the parent,
and render the output using TT, however the child classes are using the
default config and renders the output using YAML::HTML, <br><br>so
ideally what i need is, when a request is made the subclass should use
the config from the parent class and forward to View::TT,<br>
<br>Please let me know, how to do this.<br><br>regards,<br><font color="#888888"><br>Prasad.</font>