안녕을 호출하면 내 코드입니다 :은 젠드 프레임 워크 내가 여기 여기서, 메일을 보낼 다른 컨트롤러 액션을 호출의 문제가 다른 컨트롤러 조치
user.php
public function followAction()
{
$follow_id = $this->_getParam('id');
$response = "<a href='javascript: void(0)' class='i-wrap ig-wrap-user_social i-follow_small-user_social-wrap'><i class='i i-follow_small-user_social ig-user_social'></i>Stop Following</a>";
notifyEmail() ------> need to call Notity Controller with notifyEmail() Action along with
params
$this->_helper->json($response); ----> return json response
}
NotifyController.php
<?php
class NotifyController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function index()
{
}
public function notifyEmailAction()
{
// rest of email code goes here
}
}
도움 주셔서 감사합니다.
마음 낭비 자원에 계속 최선의 해결책이 아닙니다. [Zend Action Helper] (http://framework.zend.com/manual/1.12/en/zend.controller.actionhelpers.html) –