Blame view

src/vendor/1.2.5/Phalcon/Mvc/Controller.php 1.12 KB
1ea3b987   Administrator   maby first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  <?php 
  
  namespace Phalcon\Mvc {
  
  	/**
  	 * Phalcon\Mvc\Controller
  	 *
  	 * Every application controller should extend this class that encapsulates all the controller functionality
  	 *
  	 * The controllers provide the “flow” between models and views. Controllers are responsible
  	 * for processing the incoming requests from the web browser, interrogating the models for data,
  	 * and passing that data on to the views for presentation.
  	 *
  	 *<code>
  	 *
  	 *class PeopleController extends \Phalcon\Mvc\Controller
  	 *{
  	 *
  	 *  //This action will be executed by default
  	 *  public function indexAction()
  	 *  {
  	 *
  	 *  }
  	 *
  	 *  public function findAction()
  	 *  {
  	 *
  	 *  }
  	 *
  	 *  public function saveAction()
  	 *  {
  	 *   //Forwards flow to the index action
  	 *   return $this->dispatcher->forward(array('controller' => 'people', 'action' => 'index'));
  	 *  }
  	 *
  	 *}
  	 *
  	 *</code>
  	 */
  	
  	abstract class Controller extends \Phalcon\DI\Injectable implements \Phalcon\Events\EventsAwareInterface, \Phalcon\DI\InjectionAwareInterface {
  
  		/**
  		 * \Phalcon\Mvc\Controller constructor
  		 *
  		 */
  		final public function __construct(){ }
  
  	}
  }