Hi,
I have a I18N module in my Catalyst application and I want to get the path
to the home directory of the application. Is it possible to get it without
hard codding it in that module?
The module is:
package MyApp::I18N::ro;
Thank you.
Octavian
Hello,
I am using Windows XP SP2, Apache 2.2.4, Active perl 5.8.8 build 822,
mod_perl 2.03, and Catalyst 5.7010.
If I want to start apache and if I have a virtualhost that uses Catalyst,
most of the times it gives the following errors and doesn't want to start:
[Sun Sep 23 00:35:36 2007]
From: Paul Rudolf Seebacher [EMAIL PROTECTED]
Octavian Rasnita wrote:
Hi,
Is it possible to log a certain SQL which is generated in a Catalyst
application by a controller that uses a DBIx::Class model?
Thank you.
Octavian
___
List: Catalyst
Hi,
Is it possible to log a certain SQL which is generated in a Catalyst
application by a controller that uses a DBIx::Class model?
Thank you.
Octavian
___
List: Catalyst@lists.rawmode.org
Listinfo:
Can you tell me if this CMS can be used only with the keyboard? (with no mouse)
If somebody knows a CMS that is accessible only with the keyboard and which can
create tables and links by someone that doesn't know HTML, please tell me.
Octavian
- Original Message -
From: Davood
On 8/29/07, Octavian Rasnita [EMAIL PROTECTED] wrote:
Can you tell me if this CMS can be used only with the keyboard? (with no
mouse)
From: Davood Firoozian
I don't think so. but may I ask why you are asking that ?
Because I am blind and I cannot use a mouse but only the keyboard
Hi,
Which of the Ajax modules do you recommend using in a Catalyst app?
I am interested especially to know which of them work better with
Template-Toolkit and DBIx::Class.
For the moment I am not interested in the most advanced, but in the most
simple to use by someone that doesn't know
selector and
imho
the docs are ok.
-abraxxa
-Original Message-
From: Octavian Rasnita [mailto:[EMAIL PROTECTED]
Sent: Friday, August 03, 2007 9:47 AM
To: Catalyst@lists.rawmode.org
Subject: [Catalyst] Ajax
Hi,
Which of the Ajax modules do you recommend using in a Catalyst app
there.
-Ashley
On Jul 11, 2007, at 10:25 PM, Octavian Rasnita wrote:
Hi,
I have seen that when trying to install C::P::Session, appears the
following error. It seems that C::P::Session depends on
C::P::Session::State::Cookie but this second module depends on the first
one.
t/06_finalize
I don't know if this was the case, because I've just installed perl 5.8.8 on
a new machine (X86_64 SuSE), and I have tried installing Catalyst using:
cpan install Task::Catalyst
I guess it should have tried to install the newest versions.
Thanks.
Octavian
- Original Message -
Hi,
I have tried to install C::P::Session using the cpan shell, and it gave the
following error:
Failed Test Stat Wstat Total Fail List of Failed
---
t/06_finalize.t 255 65280 34 2-3
4 tests skipped.
Hi,
I have seen that when trying to install C::P::Session, appears the following
error. It seems that C::P::Session depends on C::P::Session::State::Cookie
but this second module depends on the first one.
t/06_finalize.ok 1/3Can't locate
Hi,
Do you know if there are any Catalyst plugins, or TT filters, or perl
modules that can find all the email addresses in a text and convert them
into a Javascript code that prints that email address (possibly as a link)?
I want to do something like this for avoiding robots that harvest
Ok, thank you all. I think I will use this method and the Email::Find module
to do what I want.
Octavian
- Original Message -
From: Marc Logghe [EMAIL PROTECTED]
To: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Thursday, June 28, 2007 3:05 PM
Subject: RE: [Catalyst]
of making the code as
hard to read as possible.
Octavian
- Original Message -
From: [EMAIL PROTECTED]
To: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Thursday, June 28, 2007 5:15 PM
Subject: Re: [Catalyst] displaying email addresses
Octavian Rasnita [EMAIL
PROTECTED] wrote on 06/28/2007 10:54:00 AM:
On Thu, Jun 28, 2007 at 06:31:28PM +0300, Octavian Rasnita wrote:
Those harversters should have a Javascript interpreter that will
compile
the js code and extract the results, and I think most of them don't
have
such a thing.
I have never used a JS
Hi,
Is it possible to change that multilanguage message that Catalyst displays
when the application gives an error?
It is that message with Please come back later in a few languages.
I would like to be able to display a page made by me when such an error
should appear.
Thank you.
From: Matt S Trout [EMAIL PROTECTED]
Perl WSDL/SOAP tooling is pants. Film at 11.
I do know of a large suite of Cat apps whose primary purpose is to handle
such, but I believe the company in question largely built the
functionality
up from scratch.
Perl supports SOAP and even WSDL, but the
From: Daniel McBrearty [EMAIL PROTECTED]
If you read closely (p43), re SQL injection :
We record any failures to process our inputs appropriately as broken
only, i.e., when an
exception is raised that stems directly from the SQL processing rather
than the application logic. We record a solution
Hi,
I have tried to make the following redirection:
$c-res-redirect($c-uri_for(/fr/thread?thread=$id_thread));
But it replaces ? with %3F and the request is:
http://www.anrcluj.ro/fr/thread%3Fthread=1
How can I redirect to a URL that contains a question mark?
Thank you.
Octavian
You can put
$ENV{DBIC_TRACE}++;
in MyApp.pm
Octavian
- Original Message -
From: Cookie
To: catalyst@lists.rawmode.org
Sent: Monday, June 11, 2007 7:01 AM
Subject: [Catalyst] How to show SQL in apache error_log?
As we know,if we use export DBIC_TRACE=1 and then we run
Hi,
I am trying to use 2 Catalyst applications on the same web server, using
mod_perl.
The problem is that I can run only one of them, no matter which one. If I
put them both to run, the web server doesn't want to start, and it doesn't
write any error in the error log.
I think there might
From: Peter Flanigan [EMAIL PROTECTED]
Octavian Rasnita wrote:
Virtualhost 127.0.0.1:80
They cannot both listen on the same address and port
Both virtualhosts have the same IP and port, but they use a different server
name.
I also have another virtualhost that listens to this IP and port
From: Matt S Trout [EMAIL PROTECTED]
In httpd.conf I have:
LoadFile d:/usr/bin/perl58.dll
LoadModule perl_module modules/mod_perl.so
Include e:/web/MyApp1/include/httpd.txt
Include e:/web/MyApp2/include/httpd.txt
Do you have a NameVirtualHost directive?
Yes I have, and the applications
Hi,
Please tell me where can I find more information about deploying a Catalyst
app.
I think there should be a way of creating a tarball with the whole app,
including the entire application.
When installing it on the target machine (with make, make install) it should
require all the necessary
Hi,
I am trying to use a custom TT filter in a Catalyst app.
In MyApp.pm I use:
'View::TT' = {
PLUGIN_BASE = __PACKAGE__-path_to('lib'),
},
In the lib dir I have a Diverse/NoDia.pm module that looks like this:
package Diverse::NoDia;
use Template::Plugin::Filter;
use base
(),
},
);
You'll see what the point is. Though this may not be perfect,
at least it works for me.
Kenichi Ishigaki aka tcool.
On Wed, 9 May 2007 08:38:13 +0300, Octavian Rasnita [EMAIL PROTECTED]
wrote:
From: Ash Berlin [EMAIL PROTECTED]
http://perlitist.com/static/Cache-FastMmap-1.15.tar.gz
Hi,
I am trying to install Catalyst::Plugin::Session::Store::FastMmap under
Windows XP, and on the nmake test command it gives the following error.
Can I do something to be able to install it?
I couldn't find a ppm version of this module.
(I need it because I want to install
I also thought that, but I was able to install Cache-FastMmap-1.15 under
Windows. (I found about this version on this list).
From: Hartmaier Alexander [EMAIL PROTECTED]
___
List: Catalyst@lists.rawmode.org
Listinfo:
From: Ash Berlin [EMAIL PROTECTED]
http://perlitist.com/static/Cache-FastMmap-1.15.tar.gz
The author has been in touch with me, and I've made the changes he asked
for, so hopefully it should be avaiable to CPAN soon.
Ash
Yes, this version is the one I've installed, but I cannot install
Hi,
I want to create a form with some fields which are displayed only if some
conditions are met. Can I do this using
Catalyst::Controller::FormBuilder, or in this case I need to create/print
the forms manually?
For example, I want to print a form for editing the fields in a record from
a
Hi,
Try this:
__PACKAGE__-config(
schema_class = 'testDB',
connect_info = [
'dbi:mysql:database=myapp;host=192.168.2.115',
'root',
'test',
{ AutoCommit = 1 },
],
);___
List:
I don't know if the problem is in this module, because I think I have the
same issue, and I am using
Session::Store::File
Octavian
- Original Message -
From: Dmitry [EMAIL PROTECTED]
To: Catalyst@lists.rawmode.org
Sent: Wednesday, March 28, 2007 10:25 PM
Subject: [Catalyst]
From: Joe Landman [EMAIL PROTECTED]
Hi folks:
Two part question. Has anyone played with captchas in conjunction
with C::C::FB? Second part: should I be looking at different
technology rather than captchas?
I have no idea if there are other perl modules that can replace Captcha, but
I
Hmmm... I haven't been focusing on this, but it is worth a read. I am
working on making the pages as simple as possible (no AJAXian-ness) for
a combination of aesthetic and personal time reasons. Any pointers to
document design elements to encourage accessibility you can provide
would be
From: Brian Cassidy [EMAIL PROTECTED]
A technique i recently saw was to add an input to your form with a usual
sounding name (like subject) but style is as display:none. The primary
concept is that users manually filling out the form will not see that
field and therefore it will be blank on
Hi,
I have a DBIC record object like
my $obj = $c-model(Database::Table)-find($id);
The table has very many fields and I would like to put their values in a TT
template without inserting them one by one in the stash.
So I would like to create a hash ref from $obj where the name of the field
From: Simon Wilcox [EMAIL PROTECTED]
I just put the object in the stash. TT abstracts the method/hash key
accessor issue for you so that [% obj.name1 %] will work whether obj is an
object with a name1 accessor or a hash with a name1 key.
Ok, then I will use that way. I hoped that the first
I know that an object is a blessed hash, but the DBIC objects are very
complex, and I cannot use
$c-stash($obj);
If I do that, the values from $obj hash reference are not put in the
template like when $obj is a reference to a common hash.
That's why I want to find how to put the key/values
From: Simon Wilcox [EMAIL PROTECTED]
You will have to iterate over the accessors individually to put them into
the stash (I think) but you should be able to use DBIC to do most of the
thinking. Something like (untested):
my $model = $c-model(Database::Table);
foreach my $column
From: Simon Wilcox [EMAIL PROTECTED]
You will have to iterate over the accessors individually to put them into
the stash (I think) but you should be able to use DBIC to do most of the
thinking. Something like (untested):
my $model = $c-model(Database::Table);
foreach my $column
From: Daniel McBrearty [EMAIL PROTECTED]
Impossible to know what you mean here without an example of the
template, but I commonly put DBIC objects on the stash, and call
methods on them with the dot operator in TT. TT is smart enough to
work out what needs to be done and do it
so whether the
From: Matt Lawrence [EMAIL PROTECTED]
Alternatively, get_columns will return a hash (not a reference!) of the
current row.
$c-stash-{obj }= { $row-get_columns };
Oh thanks. Finally I've used
$c-stash-{obj} = $obj;
and I've modified the template, because it seems that it is a better design.
Hi,
I have a $hash hash reference and I want to add all its elements to the
stash. How can I do this? Do I need to use a loop and assign each element
one by one?
I have seen that it is not possible to use $c-stash = $hash;
Can I use something else than
foreach(keys %$hash) {
$c-stash-{$_}
Thank you all for your solutions. I think this is the most simple.
Octavian
- Original Message -
From: Eden Cardim [EMAIL PROTECTED]
To: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Monday, March 12, 2007 2:39 PM
Subject: Re: [Catalyst] assigning vars to $c-stash
Hi,
I have tried to install Catalyst::Plugin::DateTime under Windows using the
cpan shell, but I have recieved the error below.
I have also previously set the environment variable TZ=+02:00 but it still
can't find the time zone.
Is there anything I can do to install this Catalyst Plugin under
From: Jason Kohles
Hi,
Please tell me how can I find the list of reserved words that cannot be
used as names for views, controllers, models, $c-stash elements...
For example I have seen that the name of the application is also found in
$c-stash-{name}. $c-stash-{template} is
From: John Napiorkowski
This is the error message you get if you create a subclass of Catalyst::View
that doesn't implement a process() method. It probably doesn't have anything
to do with the name of the module...
I have tried:
perl script/myapp_create.pl view Show
After
Hi,
Please tell me how can I find the list of reserved words that cannot be used
as names for views, controllers, models, $c-stash elements...
For example I have seen that the name of the application is also found in
$c-stash-{name}. $c-stash-{template} is also special.
I have also tried
Today I had that issue. I couldn't login on my site even though I've tried
for more times with 2 different user names.
I have also tried closing and opening again the browser, but I still wasn't
able to login.
So I wanted to read the HTTP headers sent and received by IE before trying
to
I have created a site using Catalyst, and I access it with IE, but I can
login with no issues.
However, 2 customers told me that they can login on the site from one
location, but they cannot do it from their work place.
I don't know, but it might be the same bug, since after the login, the
Hi,
Can anyone point me to a place where I can find how to send csv content to
the browser correctly?
If I right click on the link and choose save as... the content is saved
correctly, and the file name specified by Content-Disposition appears
correctly, but if I just click on the link, it
-headers-header('Content-Type' = 'text/csv');
$c-res-headers-header('Content-Disposition' =
attachement;filename=$f);
$c-res-body($out);
}
--vlad
On 2/23/07, Octavian Rasnita [EMAIL PROTECTED] wrote:
Hi,
Can anyone point me to a place where I can find how to send csv
.= $csv-string . \n;
}
$c-res-headers-header('Content-Type' = 'text/csv');
$c-res-headers-header('Content-Disposition' =
attachement;filename=$f);
$c-res-body($out);
}
--vlad
On 2/23/07, Octavian Rasnita [EMAIL PROTECTED] wrote:
Hi,
Can anyone
catalyst@lists.rawmode.org
Sent: Friday, February 23, 2007 11:41 PM
Subject: Re: [Catalyst] displaying csv content
Octavian Rasnita wrote:
Content-Type: text/comma-separated-values
Is this correct?
RFC4180 says to use text/csv, although TSV is text/tab-separated-values.
Confusing.
http://www.rfc
Hi,
I want to send a dynamicly generated csv file to the browser using a
Catalyst app, but without storing the whole content in a variable before
sending it.
Please tell me how can I do this with Catalyst.
I have something like:
while (...) {
# and here I want to add a new line to the csv
Ok, thank you. I will try it.
Octavian
- Original Message -
From: Jason Kohles
On Feb 4, 2007, at 6:52 AM, Octavian Rasnita wrote:
Hi,
Is it possible to get the id of the roles of the current user from $c-user?
I found that I can get the role names using $c
Ok, I also have it, but I didn't know that the nmake from VS.net 2005 will work
for compiling with VS6.
However, I have tested nmake test for Catalyst, and it went fine, with no
errors found.
Octavian
- Original Message -
From: Greg McAlpin
To: catalyst@lists.rawmode.org
I understood that the version of nmake is too old and that version doesn't
handle long commands.
But I couldn't find a newer version than 1.50 which I use.
(So I am skipping the make test command when installing Catalyst).
Octavian
- Original Message -
From: Michael Fuchs [EMAIL
From: Joe Landman [EMAIL PROTECTED]
Technological measures can be defeated. Assume they provide speed bumps
at most to determined hackers.
We have found that people are (sometimes) willing to pay for programs when
they add significant value to what it is they are doing. That said, much
of
From: Peter Edwards [EMAIL PROTECTED]
Can you tell me how to find the source code from a perlapp program?
Everyone says that it is very simple, but nobody was able to do it.
The answer is in the manual
http://perldoc.perl.org/perlfaq3.html#How-can-I-hide-the-source-for-my-Perl-
program%3f
From: Bogdan Lucaciu [EMAIL PROTECTED]
this is what some people refer to as trolling. (High quality trolling
even)
Please end this thread, or at least try to keep legal/marketing/philosophy
out
of it.
I wasn't the person that started talking about the legality on this thread.
I haven't
From: Kiki [EMAIL PROTECTED]
I would say that treating your customers as potential thieves won't get
you very far in doing business with them.
1. In a country where the pyracy is over 90%, yes I can consider the
potential customers thieves.
2. I am not selling the program directly to the
From: Chisel Wright [EMAIL PROTECTED]
If hiding the source was a requirement, why did you use perl?
Because perl is the only language I know well enough to write a program that
could work under Windows and Linux.
Octavian
___
List:
From: Matt S Trout [EMAIL PROTECTED]
I suspect it's more complaints about people expecting things for free
from somebody who's got a hell of a lot of free advice on here without as
yet contributing anything useful back are ... ironic at best.
I haven't asked anything for free. I've just
Hi,
I want to create a standalone binary executable for Windows and another one
for Linux using ActiveState perlapp.
Is it possible to make it independent, and distribute only the executable
without the modules from the lib directory of the application?
I have tried creating an executable
From: Matt S Trout [EMAIL PROTECTED]
Couldn't instantiate component TranzactiiBursiere::Model::Db,
Can't locate object method compose_namespace via package Db
Don't call your database class 'Db'.
DB is the namespace reserved for the perl debugger.
Windows is case insensitive.
Guess what's
From: Chisel Wright [EMAIL PROTECTED]
On Tue, Jan 16, 2007 at 05:12:05PM +0200, Octavian Rasnita wrote:
Is it possible to do what I want, using perlapp? If not, is it possible
with PAR?
Is this any help?
http://www.catalystframework.org/calendar/2005/6
I have tried to do
From: [EMAIL PROTECTED]
No. There is really no way to distribute a perl application in a way to
hide its source. Any attempt you make will be met with false security and
failure. Maybe Perl 6, but that is still unanswered at this point.
Have you found a way of cracking the protection of
From: [EMAIL PROTECTED]
Take a look at /tmp/pdk/ perlapp exes dump the plaintext while running.
This is not a problem with Catalyst, perl is an interpreted language
not
a compiled one. perlapp is there to make distributing self contained perl
applications easier, not to protect your source.
From: Peter Edwards [EMAIL PROTECTED]
If a language is interpreted, this doesn't mean that the programs that
were
made with it cannot be protected in any way.
It will be fairly easy to crack installed Perl software.
Can you tell me how to find the source code from a perlapp program?
From: Joe Landman [EMAIL PROTECTED]
perlapp doesn't drop the source code in /tmp. It puts there only some
.dll files, and nothing more than that.
(I am using perl Dev Kit 6.02, but now PDK 7 was just released).
The source needs to be obtained somehow and in some state for the Perl
program
From: Carl Johnstone [EMAIL PROTECTED]
Now to say the truth, I won't use RoR because I don't know Ruby, but I
want to know which are the advantages and disadvantages of Catalyst
comparing with other frameworks.
The most important advantage/disadvantage *to you* must be that Catalyst
is Perl
From: Perrin Harkins [EMAIL PROTECTED]
I don't think anyone disputes that Perl (and Python and Java) are much
faster than Ruby. You can find benchmarks showing that all over the
web. The RoR boosters are usually the ones on the defensive over
performance, saying that language performance
From: Bill Moseley [EMAIL PROTECTED]
That should work. Look at C::Engine::Apache:
http://dev.catalyst.perl.org/browser/trunk/Catalyst-Engine-Apache/lib/Catalyst/Engine/Apache.pm
$host = $c-request-header( 'X-Forwarded-Host' );
if ( $host =~ /^(.+):(\d+)$/ ) {
$host
Hi,
If I do:
perl TranzactiiBursiere.pm
it gives the error below.
However, if I access the application in the browser, it works fine.
Couldn't instantiate component TranzactiiBursiere::Model::Db, Can't
locate object method compose_namespace via package Db (perhaps you
forgot to load Db?) at
Hi,
I have a Catalyst application that runs under mod_perl2 and I want to serve
some static files, but I want to allow access only to the authorized users.
I have other free files that I've put in a directory with the SetHandler
none Apache configuration, and they can be served directly,
From: Perrin Harkins [EMAIL PROTECTED]
If you're serving static files and running mod_perl without a reverse
proxy, that should be the first thing you change. It has a very
significant effect on performance.
- Perrin
Sorry for off topicness, but please tell me, does it have a bad effect if
Hi,
Maybe I didn't understand well the question, but if the user wants to create
a session that works only in a certain window, but doesn't work in the other
windows, a simple cookie can be used if its expiry date is set to 0.
This way the cookie won't be saved, but it will be memorised by
Docherty [EMAIL PROTECTED]
To: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Monday, January 08, 2007 5:37 PM
Subject: Re: [Catalyst] Browser window/tab independent sessions
Octavian Rasnita wrote:
Hi,
Maybe I didn't understand well the question, but if the user wants to
create
From: Carl Franks [EMAIL PROTECTED]
To see better what's happening, try using a browser plugin that will
let you view current cookies, or use javascript to display the current
cookies.
IE might not be creating the actual cookie file immediately on each page
view.
I already use a browser
Hi,
I have set one default error log file in httpd.conf for all the
virtualhosts, using:
ErrorLog logs/error.log
and one especially for my virtual host, using:
ErrorLog e:/web/TranzactiiBursiere/logs/error.txt
The problem is that some of the messages generated by the Catalyst
application
/6/07, Octavian Rasnita [EMAIL PROTECTED] wrote:
Hi,
Does anyone have an example of sending a UTF-8 encoded email message using
$c-email?
Thank you.
Octavian
___
List: Catalyst@lists.rawmode.org
Listinfo: http
From: Xavier Robin [EMAIL PROTECTED]
I solved this thing myself by using the replace method described here :
http://search.cpan.org/~abw/Template-Toolkit-2.15/lib/Template/Manual/VMethods.pod
So in your template:
[% FOREACH message IN messages %]
p[% message.replace('\n', 'br') %]
[% END %]
Hi,
I want to get some messages from a database using DBIx::Class, then to pass
them to TT, but I also want to make some preformatting before sending to TT.
(I don't know if TT can do what I want).
I did:
@messages = $c-model(Db::Forum)-search({
id_room = $id_room,
},
{
join = id_user,
Hmm, strange indeed.
Are you using $c-user in your controllers?
What version of perl (and build number) are you using?
Octavian
- Original Message -
From: Nilson Santos Figueiredo Junior [EMAIL PROTECTED]
To: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Wednesday,
From: David Morel [EMAIL PROTECTED]
Catalyst::Controller::FormBuilder is the recommended way to go from now
on.
D.Morel
Why is it recommended?
I am asking because I couldn't install it under Windows.
It depends on Test::WWW::Mechanize::Catalyst. I found this module using ppm,
and I have
From: Brandon Black [EMAIL PROTECTED]
Are you absolutely sure that your foreign keys are really working in
MySQL? Are you using InnoDB? Did you specify them on a separate line
like FOREIGN KEY (foo) REFERENCES bar (baz) ? Do they exist when
you look at the output of SHOW CREATE TABLE
From: Matt S Trout [EMAIL PROTECTED]
Because we aren't psychic and can't magically solve your windows
installation problems without you ACTUALLY TELLING US WHAT WENT WRONG?
No, wait, I don't think other languages' developers have ESP either :)
Try the Catalyst-Runtime packages from
@lists.rawmode.org
Sent: Tuesday, January 02, 2007 7:49 PM
Subject: Re: [Catalyst] creating a model
On Tue, Jan 02, 2007 at 07:42:41PM +0200, Octavian Rasnita wrote:
It gave errors when using $c-user in a controller or a template. When
not
using $c-user, the program worked well.
We're making
]
To: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Tuesday, January 02, 2007 7:52 PM
Subject: Re: [Catalyst] creating a model
On 2 Jan 2007, at 17:42, Octavian Rasnita wrote:
From: Matt S Trout [EMAIL PROTECTED]
Because we aren't psychic and can't magically solve your windows
Oh, too bad. I have tried installing it under Windows, but I couldn't.
It requires Test::WWW::Mechanize::Catalyst. I have installed this module
using ppm, but if I run it, it breaks with the error telling that
Test::WWW::Mechanize is required but it was not installed.
Test::WWW::Mechanize
Oh yes, I was that who said that I have finally solved the problem, by
installing Tie::RefHash by force, however I am not sure I won't have problems
in the future because of this.
Installing by force, just created 2 files:
lib/Tie/RefHash.pm
and:
lib/auto/Tie/RefHash/.packlist
I don't know,
Hi,
I have tried to get the id of the currently logged user, using:
$c-user-id
But it returned same thing as
$c-user (the username and not its ID).
I have seen that if I use other fields like $c-user-email, they are got
correctly, so I think id might be a special field which is used by
Hi,
If the user wants to access a restricted zone and it is redirected to the
login page, which is the recommended way of redirecting him back to the
original URL?
I know that I could create a hidden field in the login form and put the
request URL in that field, and after the login, make a
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
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 -
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
'));
}
So it was just like a common sub : Private action.
Octavian
- Original Message -
From: Jonathan Rockway [EMAIL PROTECTED]
To: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Friday, December 29, 2006 10:20 PM
Subject: Re: [Catalyst] default template
Octavian Rasnita
Hi,
Can you tell me how can I access the name of the currently logged user for
printing it in a TT template?
I have tried:
if ($c-user_exists) {
$c-stash-{user} = $c-user;
}
But it gives the following error:
Coldn't render template undef error - Can't call method from_session on
an
1 - 100 of 135 matches
Mail list logo