2010-05-16

Getting a AJAX URL

Stupid little feature, found no where in the documentation.

If you want to create a link to a relative location in your site you would use the lithium\template\helper\html::link() method. like so:
$this->html->link('hyperlinked text','user/register');
or
$this->html->link('hyperlinked text',array('controller'=>'user','action'=>'register')); 
That and more in the lithium docs.

But the link() method will only give you back formatted html link or anchor content.  What if all you want is the href url?

 $this->url(array('controller'=>'user','action'=>'register')); 

That simple.  Just not documented.
 

2010-05-12

Why isn't this blog written in Lithium?

  1. Because I'm learning Lithium as I write this.  This blog is more my collection of notes than me really saying anything of huge importance.
  2. I'm learning Lithium to build a specific project.  It's not a blog.
  3. If you want purity do your own blog.