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

HOW TO to call another controller from current controller?

Postby administrator on 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();
User avatar
administrator
Site Admin
Site Admin
 
Posts: 5911
Joined: Jan 7th, '09, 23:18

Return to ApPHP Directy CMF {developers/users}

Who is online

Users browsing this forum: No registered users and 1 guest