Welcome Guest, Not a member yet? Register   Sign In
URL segment depth problems
#14

[eluser]Michael Wales[/eluser]
Code:
class Wizard extends Controller {
  function wand($size = 'small', $color = 'red') {
    $data['size'] = $size;
    $data['color'] = $color;
    // Note the 2nd parameter here - passing our array (or an object) of vars
    $this->load->view('wands', $data);
  }
}

Code:
<body>
  <h1>&lt;?= $size; ?&gt; &lt;?= $color; ?&gt; Wands!</h1>
&lt;/body&gt;


Messages In This Thread
URL segment depth problems - by El Forum - 05-27-2008, 09:32 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:36 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:37 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:37 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:37 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:38 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:41 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:41 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:44 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:51 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:55 AM
URL segment depth problems - by El Forum - 05-27-2008, 09:57 AM
URL segment depth problems - by El Forum - 05-27-2008, 10:02 AM
URL segment depth problems - by El Forum - 05-27-2008, 10:06 AM
URL segment depth problems - by El Forum - 05-27-2008, 03:59 PM
URL segment depth problems - by El Forum - 05-27-2008, 10:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB