title: executing shell from command in Yii
body: <p>The book I'm using to learn Yii, is telling me that we're going to use the yiic shell command to invoke other commands. </p>
  
  <p>To use yiic shell, it's telling me </p>
  
  <pre><code>cd /Webroot/demo
  </code></pre>
  
  <p>So I moved into my demo folder, which is inside htdocs on my MAMP setup. See first image below. </p>
  
  <p>It is then telling me, from within my demo folder, to execute this</p>
  
  <pre><code>  YiiRoot/framework/yiic shell
  </code></pre>
  
  <p>where it defines the <code>YiiRoot</code> as "the folder where I have installed Yii". In my set up, I believe YiiRoot is htdocs. See image 2 below. </p>
  
  <p>so, from within demo folder,  I tried running</p>
  
  <pre><code>htdocs/framework/yiic shell
  </code></pre>
  
  <p>and also </p>
  
  <pre><code>/htdocs/framework/yiic shell
  </code></pre>
  
  <p>but in both cases I get "no such file or directory" </p>
  
  <p>Any idea what I'm doing wrong?</p>
  
  <p><strong>Demo</strong> and <strong>Framework</strong> inside htdocs</p>
  
  <p><img src="https://i.stack.imgur.com/0r0kS.png" alt="demo in htdocs"></p>
  
  <p>Yiic Inside <strong>Framework</strong></p>
  
  <p><img src="https://i.stack.imgur.com/5JNTY.png" alt="Yiic inframework"></p>