i have a jquery ajax function, something like:
$(".content").load("test-content.phtml", function() {
//some logic
});
and my zend framework module:
content
- controllers
- TestController.php
- public function testContentAction(){}
- views
- scripts
- test
- test-content.phtml
My question is how to tell the load() function where the test-content.phtml is to load content from it.
do i have to call the content/test/test-content function from my controller ?
Also, i know that there is a AjaxContext helper in the framework but i need to load this file using ajax.
any ideas how to go about solving this issue?
That .phtml file should be rendered by a controller, then your load function should take the action url as a parameter.