Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

_getControllersDirectoryResource(
\Zend_Tool_Project_Profile $profile, string $moduleName
=
null
)
:
\Zend_Tool_Project_Profile_Resource
_getControllersDirectoryResource()
Name | Type | Description |
---|---|---|
$profile | \Zend_Tool_Project_Profile | |
$moduleName | string |
Type | Description |
---|---|
\Zend_Tool_Project_Profile_Resource |

create(
string $name, bool $indexActionIncluded
=
true, $module
=
null
)
:
void
Create a new controller
Name | Type | Description |
---|---|---|
$name | string | The name of the controller to create, in camelCase. |
$indexActionIncluded | bool | Whether or not to create the index action. |
$module |

createResource(
\Zend_Tool_Project_Profile $profile, string $controllerName, string $moduleName
=
null
)
:
\Zend_Tool_Project_Profile_Resource
createResource will create the controllerFile resource at the appropriate location in the profile. NOTE: it is your job to execute the create() method on the resource, as well as store the profile when done.
Name | Type | Description |
---|---|---|
$profile | \Zend_Tool_Project_Profile | |
$controllerName | string | |
$moduleName | string |
Type | Description |
---|---|
\Zend_Tool_Project_Profile_Resource |

hasResource(
\Zend_Tool_Project_Profile $profile, string $controllerName, string $moduleName
=
null
)
:
boolean
hasResource()
Name | Type | Description |
---|---|---|
$profile | \Zend_Tool_Project_Profile | |
$controllerName | string | |
$moduleName | string |
Type | Description |
---|---|
boolean |