From: Ash Berlin [EMAIL PROTECTED]
Something else is the case here. If you try $c-user; in a controller
I suspect it will give you same error as from the template.
As to the exact cause, hard to say, but its something to do with
authentication setup.
Aha, so it is a known issue? Does it
Octavian Rasnita wrote:
From: Ash Berlin [EMAIL PROTECTED]
Something else is the case here. If you try $c-user; in a
controller I suspect it will give you same error as from the template.
As to the exact cause, hard to say, but its something to do with
authentication setup.
Aha, so it is
I'm having a bit of a go of getting all the bits in place to do paging. The
error I'm hung on is:
Can't call method pager on unblessed reference
Here's the story:
My display template first asks the user to select a gallery to display, then
displays a list of thumbnail images. My controller 1)
From: Dennis Daupert [mailto:[EMAIL PROTECTED]
Line below marked # ??? gives the error; removing that line, I can
select a gallery and display the images -- but without paging.
# - - - - - - - - - - - - - - - - - -
package Catapult::Controller::Photo::Gallery;
# - - - - - - - -
On Fri, Dec 29, 2006 at 08:35:34AM -0800, Dennis Daupert wrote:
$c-stash-{pager} = $c-stash-{photos}-pager(); # ???
Probably not the root of the problem, but shouldn't this be an
assignment rather than a fat-comma?
Chisel
--
Chisel Wright
e: [EMAIL PROTECTED]
w: http://www.herlpacker.co.uk/
On Fri, Dec 29, 2006 at 08:35:34AM -0800, Dennis Daupert wrote:
$c-stash-{photos} = [$c-model('CatapultDB::Photos')-search(
...
)];
$c-stash-{pager} = $c-stash-{photos}-pager(); # ???
I think you need to lose the square brackets, and you will probably find
you then have a
On 12/29/06, Chisel Wright [EMAIL PROTECTED] wrote:
On Fri, Dec 29, 2006 at 08:35:34AM -0800, Dennis Daupert wrote:
$c-stash-{photos} = [$c-model('CatapultDB::Photos')-search(
...
)];
$c-stash-{pager} = $c-stash-{photos}-pager(); # ???
I think you need to lose the square
Hi,
I often need to make external redirections like in the following case:
sub logout : Local {
my ($self, $c) = @_;
$c-logout;
$c-res-redirect($c-uri_for(/));
}
When I access /user/logout for executing this subroutine, it prints the
following error:
Coldn't render template file error -
--- Octavian Rasnita [EMAIL PROTECTED] wrote:
Hi,
I often need to make external redirections like in
the following case:
sub logout : Local {
my ($self, $c) = @_;
$c-logout;
$c-res-redirect($c-uri_for(/));
}
When I access /user/logout for executing this
subroutine, it prints the
On 12/29/06, Octavian Rasnita [EMAIL PROTECTED] wrote:
Hi,
I often need to make external redirections like in the following case:
sub logout : Local {
my ($self, $c) = @_;
$c-logout;
$c-res-redirect($c-uri_for(/));
}
When I access /user/logout for executing this subroutine, it prints the
FWIW ... : what I've noticed about using models (or not) ... :
1. the advantage of using a model mostly seems to be that it
autoloads, and then is accessible everywhere from $c. Otherwise, there
doesn't seem to be much difference from just having a normal perl
library.
2. so if you just need
Daniel McBrearty wrote:
FWIW ... : what I've noticed about using models (or not) ... :
1. the advantage of using a model mostly seems to be that it
autoloads, and then is accessible everywhere from $c. Otherwise, there
doesn't seem to be much difference from just having a normal perl
Will Smith wrote:
Hi,
Could someone please show me the syntax to create multiple records. For
example my table book has 3 fields : id (auto_increment), title, price.
On the template I have 3 rows of title/price. I want to enter 3 book
titles and prices and create at the same time.
With the
Octavian Rasnita wrote:
Hi,
I often need to make external redirections like in the following case:
sub logout : Local {
my ($self, $c) = @_;
$c-logout;
$c-res-redirect($c-uri_for(/));
}
How about $c-detach() after the redirect?
BTW, I notice a common theme in your posts -- being burned
From: Eden Cardim [EMAIL PROTECTED]
No, there isn't. Catalyst only emits the response after all the
actions are dispatched. One way you can keep the end action from
running is by not having one. In your case, set up a Controller
without an end action just for authentication. In there, you can
--- Octavian Rasnita [EMAIL PROTECTED] wrote:
From: Eden Cardim [EMAIL PROTECTED]
No, there isn't. Catalyst only emits the response
after all the
actions are dispatched. One way you can keep the
end action from
running is by not having one. In your case, set up
a Controller
without
Ok, thank you for this code.
I haven't seen very many explanations about RenderView, so I didn't
understand how it works.
So I have used only RenderView until now, but not very smart, something
like:
sub end : ActionClass('RenderView') {
my ($self, $c) = @_;
$c-forward($c-view('TT'));
}
Octavian Rasnita wrote:
sub end : ActionClass('RenderView') {
my ($self, $c) = @_;
$c-forward($c-view('TT'));
}
This will skip all of RenderView's nice features. Use
sub end : ActionClass('RenderView') {}
instead.
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)-config(name = do {
Leandro:
you don't need to use Data::Page directly
yes, you are quite right, I took out the
explicit call to Data::Page; I set rows = 2,
and my query gets 2 thumbs. Cool.
you are setting $c-stash-{photos} to an
array reference when you do
$c-stash-{photos} = [$c-model( ... ];
and then you
Since it's Friday before the holiday (for me in the
USA at least) I thought to share some random
speculation with the list.
I've been working a bit with the Google Web Toolkit as
part of my day job and although I really love the idea
behind it I don't love the Java complications of it
and was
On 12/29/06, Will Smith [EMAIL PROTECTED] wrote:
Thank you,
Yes, I mean I'm using DBIC. I've tried your method. It did not give error,
but, also did not insert into the table.
Do I miss something?
Hi, Will!
Are the correct SQL statements being generated? (try export
DBI_TRACE=1 or
On 12/29/06, John Napiorkowski [EMAIL PROTECTED] wrote:
So I guess my question is would people like a GWT like
system for Catalyst and if so what would you like to
see in it?
I've been thinking a lot about these sort of things lately but I
couldn't come up with a clean way to do it the way I
Since the code in RenderView is so small, I'm going to paste it here and
tell you why each line there is important. ## comments are my notes
.
A very good (step-) tutorial!
(simply) Commenting So, many Catalyst things - will assure more
understanding than the usual tutorials!
--vb
On
23 matches
Mail list logo