<html>
<head>
<title>Docs For Class UrlHelper</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
<tr>
<td class="header_top">PHPonTrax</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
<tr>
<td class="header_menu">
[ <a href="../classtrees_PHPonTrax.html" class="menu">class tree: PHPonTrax</a> ]
[ <a href="../elementindex_PHPonTrax.html" class="menu">index: PHPonTrax</a> ]
[ <a href="../elementindex.html" class="menu">all elements</a> ]
</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="200" class="menu">
<div id="todolist">
<p><a href="../todolist.html">Todo List</a></p>
</div>
<b>Packages:</b><br />
<a href="../li_PHPonTrax.html">PHPonTrax</a><br />
<a href="../li_PHPonTraxTest.html">PHPonTraxTest</a><br />
<br /><br />
<b>Tutorials/Manuals:</b><br />
<strong>Package-level:</strong>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_PHPonTrax.pkg.html">PHP On Trax</a>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_rails_examples.pkg.html">Examples From The Rails Book</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_simpleapp.pkg.html">Build A Simple Trax Application</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_database.pkg.html">Create A Database and User</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_advbuild.pkg.html">Advanced Application Build Topics</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_naming.pkg.html">The Trax Naming Convention</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_troubleshoot.pkg.html">Troubleshooting</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_reference.pkg.html">Reference</a>
</ul>
</li></ul>
<strong>Class-level:</strong>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActiveRecordHelper.cls.html">ActiveRecordHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_FormTagHelper.cls.html">FormTagHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Helpers.cls.html">Helpers</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_UrlHelper.cls.html">UrlHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_FormHelper.cls.html">FormHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_InputFilter.cls.html">InputFilter</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActionMailer.cls.html">ActionMailer</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ApplicationController.cls.html">ApplicationController</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActionController.cls.html">ActionController</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActiveRecord.cls.html">ActiveRecord</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_DateHelper.cls.html">DateHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Router.cls.html">Router</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_FormOptionsHelper.cls.html">FormOptionsHelper</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_TraxGenerator.cls.html">TraxGenerator</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Session.cls.html">Session</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Inflector.cls.html">Inflector</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActiveRecordError.cls.html">ActiveRecordError</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ActionControllerError.cls.html">ActionControllerError</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ScaffoldController.cls.html">ScaffoldController</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_Dispatcher.cls.html">Dispatcher</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_TraxError.cls.html">TraxError</a>
</ul>
<ul>
<li type="square"><a href="../PHPonTrax/tutorial_ApplicationMailer.cls.html">ApplicationMailer</a>
</ul>
<b>Files:</b><br />
<div class="package">
<a href="../PHPonTrax/_vendor_trax_action_controller_php.html"> action_controller.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_mailer_php.html"> action_mailer.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_php.html"> action_view.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_active_record_php.html"> active_record.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_active_record_helper_php.html"> active_record_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_add_phtml.html"> add.phtml
</a><br>
<a href="../PHPonTrax/_data_app_controllers_application_php.html"> application.php
</a><br>
<a href="../PHPonTrax/_data_app_views_layouts_application_phtml.html"> application.phtml
</a><br>
<a href="../PHPonTrax/_data_app_helpers_application_helper_php.html"> application_helper.php
</a><br>
<a href="../PHPonTrax/_data_app_application_mailer_php.html"> application_mailer.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_asset_tag_helper_php.html"> asset_tag_helper.php
</a><br>
<a href="../PHPonTrax/_test_layouts_catalog_phtml.html"> catalog.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_controller_php.html"> controller.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_controller_php.html"> controller.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_date_helper_php.html"> date_helper.php
</a><br>
<a href="../PHPonTrax/_data_config_environments_development_php.html"> development.php
</a><br>
<a href="../PHPonTrax/_data_public_dispatch_php.html"> dispatch.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_dispatcher_php.html"> dispatcher.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_edit_phtml.html"> edit.phtml
</a><br>
<a href="../PHPonTrax/_data_config_environment_php.html"> environment.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_error_phtml.html"> error.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_helper_php.html"> form_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_options_helper_php.html"> form_options_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_form_scaffolding_phtml.html"> form_scaffolding.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_form_tag_helper_php.html"> form_tag_helper.php
</a><br>
<a href="../PHPonTrax/_data_script_generate_php.html"> generate.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_helper_php.html"> helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_php.html"> helpers.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_index_phtml.html"> index.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_inflector_php.html"> inflector.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_input_filter_php.html"> input_filter.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_javascript_helper_php.html"> javascript_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_layout_phtml.html"> layout.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_layout_phtml.html"> layout.phtml
</a><br>
<a href="../PHPonTrax/_makepkg_php.html"> makepkg.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_model_php.html"> model.php
</a><br>
<a href="../PHPonTrax/_data_config_environments_production_php.html"> production.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_router_php.html"> router.php
</a><br>
<a href="../PHPonTrax/_data_config_routes_php.html"> routes.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_scaffold_controller_php.html"> scaffold_controller.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_session_php.html"> session.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_show_phtml.html"> show.phtml
</a><br>
<a href="../PHPonTrax/_data_config_environments_test_php.html"> test.php
</a><br>
<a href="../PHPonTrax/_trax_php.html"> trax.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_trax_exceptions_php.html"> trax_exceptions.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_trax_generator_php.html"> trax_generator.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_action_view_helpers_url_helper_php.html"> url_helper.php
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_view_phtml.html"> view.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_add_phtml.html"> view_add.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_edit_phtml.html"> view_edit.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_index_phtml.html"> view_index.phtml
</a><br>
<a href="../PHPonTrax/_vendor_trax_templates_scaffolds_generator_templates_view_show_phtml.html"> view_show.phtml
</a><br>
</div><br />
<b>Classes:</b><br />
<div class="package">
<a href="../PHPonTrax/.html"></a><br />
<a href="../PHPonTrax/ActionController.html">ActionController</a><br />
<a href="../PHPonTrax/ActionControllerError.html">ActionControllerError</a><br />
<a href="../PHPonTrax/ActionMailer.html">ActionMailer</a><br />
<a href="../PHPonTrax/ActiveRecord.html">ActiveRecord</a><br />
<a href="../PHPonTrax/ActiveRecordError.html">ActiveRecordError</a><br />
<a href="../PHPonTrax/ActiveRecordHelper.html">ActiveRecordHelper</a><br />
<a href="../PHPonTrax/ApplicationController.html">ApplicationController</a><br />
<a href="../PHPonTrax/ApplicationMailer.html">ApplicationMailer</a><br />
<a href="../PHPonTrax/AssetTagHelper.html">AssetTagHelper</a><br />
<a href="../PHPonTrax/DateHelper.html">DateHelper</a><br />
<a href="../PHPonTrax/Dispatcher.html">Dispatcher</a><br />
<a href="../PHPonTrax/FormHelper.html">FormHelper</a><br />
<a href="../PHPonTrax/FormOptionsHelper.html">FormOptionsHelper</a><br />
<a href="../PHPonTrax/FormTagHelper.html">FormTagHelper</a><br />
<a href="../PHPonTrax/Helpers.html">Helpers</a><br />
<a href="../PHPonTrax/Inflector.html">Inflector</a><br />
<a href="../PHPonTrax/InputFilter.html">InputFilter</a><br />
<a href="../PHPonTrax/JavaScriptHelper.html">JavaScriptHelper</a><br />
<a href="../PHPonTrax/Router.html">Router</a><br />
<a href="../PHPonTrax/ScaffoldController.html">ScaffoldController</a><br />
<a href="../PHPonTrax/Session.html">Session</a><br />
<a href="../PHPonTrax/TraxError.html">TraxError</a><br />
<a href="../PHPonTrax/TraxGenerator.html">TraxGenerator</a><br />
<a href="../PHPonTrax/UrlHelper.html">UrlHelper</a><br />
</div>
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<h1>Class: UrlHelper</h1>
Source Location: /vendor/trax/action_view/helpers/url_helper.php<br /><br />
<table width="100%" border="0">
<tr><td valign="top">
<h3><a href="#class_details">Class Overview</a></h3>
<pre><a href="../PHPonTrax/Helpers.html">Helpers</a>
|
--UrlHelper</pre><br />
<div class="description"></div><br /><br />
<h4>Author(s):</h4>
<ul>
</ul>
</td>
<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
<li><a href="../PHPonTrax/UrlHelper.html#methodbutton_to">button_to</a></li>
<li><a href="../PHPonTrax/UrlHelper.html#methodconvert_boolean_attributes">convert_boolean_attributes</a></li>
<li><a href="../PHPonTrax/UrlHelper.html#methodconvert_confirm_option_to_javascript">convert_confirm_option_to_javascript</a></li>
<li><a href="../PHPonTrax/UrlHelper.html#methodlink_image_to">link_image_to</a></li>
<li><a href="../PHPonTrax/UrlHelper.html#methodlink_to">link_to</a></li>
<li><a href="../PHPonTrax/UrlHelper.html#methodurl_for">url_for</a></li>
</ul>
</td>
</tr></table>
<hr />
<table width="100%" border="0"><tr>
<td valign="top">
<h3>Inherited Variables</h3>
<div class="tags">
<h4>Class: <a href="../PHPonTrax/Helpers.html">Helpers</a></h4>
<dl>
<dt>
<a href="../PHPonTrax/Helpers.html#var$attribute_name">Helpers::$attribute_name</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$auto_index">Helpers::$auto_index</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$controller_name">Helpers::$controller_name</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$controller_object">Helpers::$controller_object</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$controller_path">Helpers::$controller_path</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#var$object_name">Helpers::$object_name</a>
</dt>
<dd>
</dd>
</dl>
</div>
</td>
<td valign="top">
<h3>Inherited Methods</h3>
<div class="tags">
<h4>Class: <a href="../PHPonTrax/Helpers.html">Helpers</a></h4>
<dl>
<dt>
<a href="../PHPonTrax/Helpers.html#method__construct">Helpers::__construct()</a>
</dt>
<dd>
Construct a Helpers object
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodboolean_attribute">Helpers::boolean_attribute()</a>
</dt>
<dd>
Convert an attribute to proper XML boolean form
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodcdata_section">Helpers::cdata_section()</a>
</dt>
<dd>
Wrap CDATA begin and end tags around argument
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodcontent_tag">Helpers::content_tag()</a>
</dt>
<dd>
Generate an open/close pair of tags with optional attributes and content between
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodconvert_options">Helpers::convert_options()</a>
</dt>
<dd>
Convert selected attributes to proper XML boolean form
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodobject">Helpers::object()</a>
</dt>
<dd>
Given the name of an ActiveRecord subclass, find an instance
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodtag">Helpers::tag()</a>
</dt>
<dd>
Generate an HTML or XML tag with optional attributes and self-ending
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodtag_options">Helpers::tag_options()</a>
</dt>
<dd>
Convert array of tag attribute names and values to string
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodto_content_tag">Helpers::to_content_tag()</a>
</dt>
<dd>
</dd>
<dt>
<a href="../PHPonTrax/Helpers.html#methodvalue">Helpers::value()</a>
</dt>
<dd>
Get value of current attribute in the current ActiveRecord object
</dd>
</dl>
</div>
</td>
</tr></table>
<hr />
<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersurl_helper.php.html#a34">34</a>]<br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>todo:</b> </td><td>Document this class</td>
</tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />
<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">
<hr />
<a name="methodbutton_to"></a>
<h3>method button_to <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersurl_helper.php.html#a127">127</a>]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>string button_to(
string
$name, [mixed[]
$options = array()], [mixed[]
$html_options = null])</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_url_helper_php.html#functionbutton_to">button_to()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodurl_for">UrlHelper::url_for()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodconvert_confirm_option_to_javascript">UrlHelper::convert_confirm_option_to_javascript()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodconvert_boolean_attributes">UrlHelper::convert_boolean_attributes()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string </td>
<td><b>$name</b> </td>
<td></td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td></td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$html_options</b> </td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodconvert_boolean_attributes"></a>
<h3>method convert_boolean_attributes <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersurl_helper.php.html#a108">108</a>]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>mixed[] convert_boolean_attributes(
mixed[]
&$html_options, mixed[]
$bool_attrs)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodbutton_to">UrlHelper::button_to()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">mixed[] </td>
<td><b>&$html_options</b> </td>
<td></td>
</tr>
<tr>
<td class="type">mixed[] </td>
<td><b>$bool_attrs</b> </td>
<td></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodconvert_confirm_option_to_javascript"></a>
<h3>method convert_confirm_option_to_javascript <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersurl_helper.php.html#a93">93</a>]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>string convert_confirm_option_to_javascript(
string[]
$html_options)</code>
</td></tr></table>
</td></tr></table><br />
<br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodbutton_to">UrlHelper::button_to()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodlink_to">UrlHelper::link_to()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string[] </td>
<td><b>$html_options</b> </td>
<td>Options</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodlink_image_to"></a>
<h3>method link_image_to <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersurl_helper.php.html#a153">153</a>]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>void link_image_to(
mixed
$src, [mixed
$options = array()], [mixed
$html_options = array()])</code>
</td></tr></table>
</td></tr></table><br />
This tag is deprecated. Combine the link_to and<br /><br /><p>AssetTagHelper::image_tag yourself instead, like: link_to(image_tag("rss", array("size" => "30x45"), array("border" => 0)), "http://www.example.com")</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_url_helper_php.html#functionlink_image_to">link_image_to()</a></td>
</tr>
<tr>
<td><b>todo:</b> </td><td>Document this method</td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodlink_to"></a>
<h3>method link_to <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersurl_helper.php.html#a58">58</a>]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>string link_to(
mixed
$name, [mixed
$options = array()], [mixed
$html_options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Creates a link tag of the given +name+ using an URL created by the set of +options+.<br /><br /><p>It's also possible to pass a string instead of an options hash to get a link tag that just points without consideration. If null is passed as a name, the link itself will become the name. The $html_options have a special feature for creating javascript confirm alerts where if you pass ":confirm" => 'Are you sure?', the link will be guarded with a JS popup asking that question. If the user accepts, the link is processed, otherwise not.</p><p>Example: link_to("Delete this page", array(":action" => "delete", ":id" => $page->id), array(":confirm" => "Are you sure?"))</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_url_helper_php.html#functionlink_to">link_to()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodurl_for">UrlHelper::url_for()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodconvert_confirm_option_to_javascript">UrlHelper::convert_confirm_option_to_javascript()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#methodcontent_tag">Helpers::content_tag()</a></td>
</tr>
</table>
</div>
<br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodurl_for"></a>
<h3>method url_for <span class="smalllinenumber">[line <a href="..//__filesource/fsource_PHPonTrax__vendortraxaction_viewhelpersurl_helper.php.html#a210">210</a>]</span></h3>
<div class="function">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>string url_for(
[mixed[]
$options = array()])</code>
</td></tr></table>
</td></tr></table><br />
Generate URL based on current URL and optional arguments<br /><br /><p>Output a URL with controller and optional action and id. The output URL has the same method, host and <samp>TRAX_URL_PREFIX</samp> as the current URL. Controller is either the current controller or a controller specified in $options. Action and ID are optionally specified in $options, or omitted. The <samp>':id'</samp> option will be ignored if the <samp>':action'</samp> option is omitted.</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/_vendor_trax_action_view_helpers_url_helper_php.html#functionurl_for">url_for()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodbutton_to">UrlHelper::button_to()</a></td>
</tr>
<tr>
<td><b>usedby:</b> </td><td><a href="../PHPonTrax/UrlHelper.html#methodlink_to">UrlHelper::link_to()</a></td>
</tr>
<tr>
<td><b>uses:</b> </td><td><a href="../PHPonTrax/Helpers.html#var$controller_path">Helpers::$controller_path</a></td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">mixed[] </td>
<td><b>$options</b> </td>
<td><ul><li><strong>string:</strong><br />
The string value is returned immediately with no
substitutions.</li><li><strong>array:</strong>
<ul><li><samp>':controller'=></samp><em>controller value</em></li><li><samp>':action'=></samp><em>action value</em></li><li><samp>':id'=></samp><em>id value</em></li></ul></li></ul></td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
</div><br />
<div class="credit">
<hr />
Documentation generated on Thu, 04 May 2006 19:48:05 -0600 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC4</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>