title: Beginning Kohana/php with PhpStorm
body: <p>I'm coming from Asp.Net MVC 3 and I'm trying to learn to use Kohana and php, using PhpStorm as IDE.</p>
  
  <p>I really am a beginnner in php, but I want to learn it using Kohana to get my feet wet as quickly as possible with something similar to Asp.Net MVC (i.e. an MVC framework).</p>
  
  <p>But I don't understand how to get PhpStorm to run the project. I have created a simple controller called "home.php", with this extremely simple test class:</p>
  
  <pre><code>class Controller_Home extends Controller {
      public function action_index()
      {
          echo 'Hello World!';
      }
  
  }
  </code></pre>
  
  <p>I changed the routing in bootstrap.php (which I really don't know what it does and where it's called, but I found the routing in there) to this:</p>
  
  <pre><code>Route::set('default', '(&lt;controller&gt;(/&lt;action&gt;(/&lt;id&gt;)))')
      -&gt;defaults(array(
          'controller' =&gt; 'home',
          'action'     =&gt; 'index',
      ));
  </code></pre>
  
  <p>Now, I can run this fine by going to <a href="http://localhost/kohana" rel="nofollow">http://localhost/kohana</a></p>
  
  <p>But, I have no idea how to run it from within PhpStorm. I want to be able to run projects in Kohana just like I do in Visual Studio with Asp.Net MVC projects. So how do I tell PhpStorm how to run this?</p>
  
  <p>I get an error message if I try to run home.php, saying it's not "specified". And in any case it doesn't seem right to specify a particular file at all, since it is to be run through the controllers specified in the routing. So how do I configure it?</p>
  
  <p>Sorry if this is a stupid question, remember I am new to php and Kohana, but I think I've been pampered quite a bit in Visual Studio, where I really don't have to think about these things at all, so I probably don't understand the inner workings very well. I'd appreciate a simple explanation of what I need to do and why.</p>