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
path.
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 = "${base}/static/style.css" in the root/lib/config/url
file.
This worked for me !
Thanks again.. also any suggestions and thoughts are welcome..
Regards,
Rohan
P.S. How to mark the issue as [SOLVED]?
On Sun, Nov 21, 2010 at 9:40 PM, Rohan M <[email protected]> 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
>
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/