List Info

Thread: Template directive failing?




Template directive failing?
user name
2007-08-17 12:40:11
New problem with my code:

Error message is: Couldn't render template "file error
- shipments/form_create_do: not found"

  action           =>
"shipments/form_create_do"

and in my Shipments.pm


sub form_create_do : Local {

    # Set the TT template to use
    $c->stash-> =
'shipments/create_done.tt2';


... so why would it look for shipments/form_create_do and
not shipments/create_done.tt2? 

In all the other controllers, this syntax seems to be
working _just fine_. 

I must be missing something very basic. Any thoughts? I'm
lost on how to track this one down. :(

Cheers,

-- 
Michael Higgins <listinfobanfieldgroup.com>

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

user name
2007-08-17 12:54:57
On Fri, 17 Aug 2007 10:40:11 -0700
Michael Higgins <listinfobanfieldgroup.com>
wrote:

> New problem with my code:
[8<]

> In all the other controllers, this syntax seems to be
working _just fine_. 
> 
> I must be missing something very basic. Any thoughts?
I'm lost on how to track this one down. :(

Restarted Apache and the problem went away. I added the
'Apache2::Reload' module to the top of that controller... I
_guess_ that was the fix, but IDK, really.

Sorry for the noise.

Cheers,

-- 
Michael Higgins <listinfobanfieldgroup.com>

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

Re: Template directive failing?
user name
2007-08-19 00:17:29


On 8/17/07, Michael Higgins < listinfobanfieldgroup.com">listinfobanfieldgroup.com>; wrote:
New problem with my code:

Error message is: Couldn';t render template "file error - shipments/form_create_do: not found";

 &nbsp;action&nbsp;   ; &nbsp; &nbsp; &nbsp; => "shipments/form_create_do&quot;

and in my Shipments.pm


sub form_create_do : Local {

 &nbsp;  # Set the TT template to use
   ; $c-&gt;stash-&gt;{template} = 'shipments/create_done.tt2&#39;;


... so why would it look for shipments/form_create_do and not shipments/create_done.tt2?

In all the other controllers, this syntax seems to be working _just fine_.

I must be missing something very basic. Any thoughts? I'm lost on how to track this one down. :(

Cheers,

 ;

  It could be that a return statement is getting executed before the
 &nbsp; &nbsp; $c->stash->{template} = 'shipments/create_done.tt2&#39;; statement

Antano Solar John


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )