in reply to Re: Need help working with a view in Catalyst
in thread Need help working with a view in Catalyst
Following your suggestion of going with the for the data from my controller still needs to be places in the stash correct? The way I am currently doing it in my Controller is:
$c->stash(users => [$c->model('DB::tech')->search_rs]);and in my template I am calling it via
[% FOR tech IN users.all -%]but yet it still is not displaying any data from my database. There is one row in the table that I am trying to work with currently
repairs=> select * from tech; + uniqid | id | firstname | lastname | email | phone | managementrating + | managementcomments | dat e | ismanagement + --------+----+-----------+----------+-------+-------+----------------- +-+--------------------+------- -----+-------------- + 0 | 99 | Admin | | | | 10 + | | 1999-0 1-01 | t + (1 row)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need help working with a view in Catalyst
by Your Mother (Archbishop) on Mar 23, 2011 at 04:49 UTC | |
by vendion (Scribe) on Mar 24, 2011 at 16:38 UTC | |
by vendion (Scribe) on Mar 25, 2011 at 00:17 UTC | |
by Your Mother (Archbishop) on Mar 26, 2011 at 22:00 UTC | |
by vendion (Scribe) on Mar 29, 2011 at 01:01 UTC | |
|