forked from wingman007/fmi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding DocBlocks to Fmi\Controller\IndexController
- Loading branch information
1 parent
f2e7edd
commit d7bdc66
Showing
4 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* FMI (https://github.com/wingman007/fmi/) | ||
* | ||
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository | ||
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* This is my long <b>description</b> | ||
* | ||
* @link https://github.com/wingman007/fmi for the canonical source repository | ||
* @copyright Copyright (c) 2005-2013 LightSoft 2005 Ltd. Bulgaria | ||
* @license https://github.com/coolcsn/CsnUser/blob/master/LICENSE BSD(3-Clause)License | ||
* @author Stoyan Cheresharov <[email protected]> | ||
*/ | ||
|
||
/** | ||
* This is our custom namespace for FMI project | ||
*/ | ||
namespace Fmi\Controller; | ||
|
||
use Zend\Mvc\Controller\AbstractActionController; | ||
|
@@ -26,8 +32,27 @@ | |
|
||
use Fmi\Entity\User; | ||
|
||
/** | ||
* FMI controller | ||
* | ||
* This controller has been build with <b>educational</b> purposes | ||
*/ | ||
class IndexController extends AbstractActionController | ||
{ | ||
/** | ||
* Property to hold Doctrine Entity Manager | ||
* | ||
* @var object | ||
*/ | ||
protected $_em = null; | ||
|
||
/** | ||
* Retrieve action from CRUD | ||
* | ||
* The method uses Doctrine Entity Manager to retrieve the Entities from the virtual database | ||
* | ||
* @return Zend\View\Model\ViewModel|array colection of objects | ||
*/ | ||
public function indexAction() | ||
{ | ||
$entityManager = $this->getServiceLocator()->get('doctrine.entitymanager.orm_default'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters