in reply to Passing Parameters via hyperlink

CGI.pm: FETCHING THE PARAMETER LIST AS A HASH.

Now why you would be using CGI.pm at all when you have Mojolicious at your finger tips, I have no idea. ;)


Dave

Replies are listed 'Best First'.
Re^2: Passing Parameters via hyperlink
by o2bwise (Scribe) on Jun 27, 2013 at 02:06 UTC

    C'mon Dave, help me out! ;-)

    Like I said, I am just learning. Other folks at work recommended I use Mojolicious with bootstrap.

    Tony

      Like I said, I am just learning. Other folks at work recommended I use Mojolicious with bootstrap.

      Well, you're already using Mojo, so  $mojoself->req->params->to_hash

        Hi,

        I found out parameters can be passed like the following:

        http://mojolicio.us/perldoc/Mojolicious/Controller#url_for

        my $url = $c->url_for('test', {name => 'sebastian'});

        If anyone knows how to fetch such a parameter in the template, I am all ears!

        Tony