Just a short tip: If you want to create a link in a plug-in to a location within the (same) plug-in you have to do it in the following way:
$html->link('link', $this->controller->base.'/mycontroller/myaction');
That will create this html snippet:
<a href="/myplugin/mycontroller/myaction">link</a>
Blog has moved
This blog has moved to http://cakebaker.42dh.com. See you there.Contact
Feel free to contact me at daniel-hofstetter@gmx.ch. I like to hear from you :)
(see also the "About" section)
2 Comments
Don’t work if your app isn’t in the root.
Use this instead :
$html->link(‘link’, ‘/’.$this->controller->plugin.’/mycontroller/myaction’);
@Naonak: Thanks for the completion!