HOW TO to call another controller from current controller?

Discuss everything related to ApPHP Durecty CMF. All versions. Any questions related to the Directy CMF developing or using should be posted to this forum.

Moderators: ne_moj, alexmst, zewa

administrator
Site Admin
Site Admin
Posts: 5922
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO to call another controller from current controller?

Postby administrator » Dec 11th, '15, 12:55

Sometime you may need to perform a call to another controller from the current controller (or even a model).
In such case you may use the following syntax:

Code: Select all

$controller = new AnotherController();
$result = $controller->ActionName();

Return to “ApPHP Directy CMF {developers/users}”