title: Should I mix AngularJS with a PHP framework?
body: <p>AngularJS is very powerful when it comes to interactive HTML5 and model binding. On the other hand, PHP frameworks like Yii enable quick, well-structured, safe and powerful web application development. Both technologies provide sophisticated means for data access, iteration and page layouting.</p>
  
  <p>Is it good or bad practice to mix those two approaches (client-side and server-side "page setup") or is this rather against the meaning of interactive, seamless HTML5 AJAX web applications?</p>
  
  <p>I am not talking about generating JS using PHP (<a href="https://stackoverflow.com/questions/549506/should-php-frameworks-generate-javascript/">See this question</a>) - I'm talking about generating a view that will make use of AngularJS.</p>
  
  <p>I also know that an AngularJS page should (or can) communicate with the server via REST services to get data (<a href="https://stackoverflow.com/questions/13067607/angularjs-client-mvc-pattern/">See this question</a>) instead of retrieving it from for example PHP variables directly. But to me it seems more convenient to design the "frame" for the entire web application separately in PHP (e.g. build the main menu or handle authorization/ sessions etc.)</p>