[Catalyst] Re: Query : Catalyst forward and relative path in CSS.

Rohan M rohan7799 at gmail.com
Fri Nov 26 10:44:01 GMT 2010

Hi All,

Thanks Tomas and Denny for your reply...

I think $c->go is to call a Localized path and the $c->forward for private

I'm using the action as Local so may be this is the reason why $c->forward
was not working. .. NOT SURE THOUGH..

For the absolute path (2nd query)
 --- I used CSPATH  =3D "${base}/static/style.css" in the root/lib/config/u=
This worked for me !

Thanks again.. also any suggestions and thoughts are welcome..


P.S. How to mark the issue as [SOLVED]?

On Sun, Nov 21, 2010 at 9:40 PM, Rohan M <rohan7799 at gmail.com> wrote:

> Dear All,
> I'm trying out the examples and learning Catalyst.
> Although, the scripts are working but I'm facing two problems -
> 1) The $c->forward('controller/action') *NOT* working but
> $c->response->redirect('/controller/action') is working.
>     Any reason ? I do not see any errors on the console.
> 2) I'm using relative path in the CSS -
>     e.g background : url("../static/images/header.gif")
>    Now when I try to go to a page something like /person/edit/1 .. I loose
> the CSS because of the relative path.
>     i) Is there a way to define a absolute path ?
>     ii) Can we give Document_root kind of path to achieve this?
> Thanks and regards,
> Rohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101126/ac65e=

More information about the Catalyst mailing list