I am mikek's Blog

The personal blog of Mike Karthauser, who you may know from Brightstorm Limited or the internet.

where am i?

Occasionally i need to capture the url of the a current view page in cakephp which i would do by

echo $this->params['url']['url']

A bit of googling today, now gives me a nicer way to do it.

echo $this->here;

sweet eh?

Advertisements

Filed under: development, , ,

One Response

  1. Andy Gale says:

    Yes, that’s pretty cool.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

mikek on twitter

%d bloggers like this: