<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.yaf-request-abstract.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'yaf-request-abstract.setbaseuri.php',
    1 => 'Yaf_Request_Abstract::setBaseUri',
    2 => 'Set base URI',
  ),
  'up' => 
  array (
    0 => 'class.yaf-request-abstract.php',
    1 => 'Yaf_Request_Abstract',
  ),
  'prev' => 
  array (
    0 => 'yaf-request-abstract.setactionname.php',
    1 => 'Yaf_Request_Abstract::setActionName',
  ),
  'next' => 
  array (
    0 => 'yaf-request-abstract.setcontrollername.php',
    1 => 'Yaf_Request_Abstract::setControllerName',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/yaf_request_abstract/setbaseuri.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaf-request-abstract.setbaseuri" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Yaf_Request_Abstract::setBaseUri</h1>
  <p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Request_Abstract::setBaseUri</span> &mdash; <span class="dc-title">Set base URI</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-request-abstract.setbaseuri-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">function</span> <span class="methodname"><strong>Yaf_Request_Abstract::setBaseUri</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$uir</code></span>): <span class="type"><span class="type"><a href="class.yaf-request-abstract.php" class="type Yaf_Request_Abstract">Yaf_Request_Abstract</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Set base URI, base URI is used when doing routing, in routing phase request
   URI is used to route a request,  while base URI is used to skip the
   leading part(base URI) of request URI.

   That is, if comes a request with request URI a/b/c, then if you set base
   URI to &quot;a/b&quot;, only &quot;/c&quot; will be used in routing phase.
   <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
    <p class="simpara">
     generally, you don&#039;t need to set this, Yaf will determine it automatically.
    </p>
   </p></blockquote>
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-request-abstract.setbaseuri-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">uir</code></dt>
    <dd>
     <p class="para">
       base URI
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-yaf-request-abstract.setbaseuri-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">Returns the request object itself on success, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.</p>
 </div>


 <div class="refsect1 examples" id="refsect1-yaf-request-abstract.setbaseuri-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="methodname"><strong>Yaf_Request_Abstract::setBaseUri()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
$request </span><span style="color: #007700">= new </span><span style="color: #0000BB">Yaf_Request_Simple</span><span style="color: #007700">(</span><span style="color: #DD0000">"GET"</span><span style="color: #007700">, </span><span style="color: #DD0000">"Index"</span><span style="color: #007700">, </span><span style="color: #DD0000">"Product"</span><span style="color: #007700">, </span><span style="color: #DD0000">"View"</span><span style="color: #007700">);

</span><span style="color: #FF8000">// The application lives under /myapp,
// requests come in as /myapp/product/view
</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setBaseUri</span><span style="color: #007700">(</span><span style="color: #DD0000">"/myapp"</span><span style="color: #007700">);
</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setRequestUri</span><span style="color: #007700">(</span><span style="color: #DD0000">"/myapp/product/view"</span><span style="color: #007700">);

</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getBaseUri</span><span style="color: #007700">());
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getRequestUri</span><span style="color: #007700">());
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">string(6) &quot;/myapp&quot;
string(19) &quot;/myapp/product/view&quot;</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-yaf-request-abstract.setbaseuri-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="yaf-request-abstract.getbaseuri.php" class="methodname" rel="rdfs-seeAlso">Yaf_Request_Abstract::getBaseUri()</a> - Retrieve the base URI</span></li>
   <li><span class="methodname"><a href="yaf-request-abstract.setrequesturi.php" class="methodname" rel="rdfs-seeAlso">Yaf_Request_Abstract::setRequestUri()</a> - Set the request URI</span></li>
   <li><span class="methodname"><a href="yaf-request-abstract.getrequesturi.php" class="methodname" rel="rdfs-seeAlso">Yaf_Request_Abstract::getRequestUri()</a> - Retrieve the request URI</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>