Missing Method in PostsController

Error: The action elanewsByCategoryId is not defined in controller PostsController

Error: Create PostsController::elanewsByCategoryId() in file: app/Controller/PostsController.php.

<?php
class PostsController extends AppController {


	public function elanewsByCategoryId() {

	}

}

Notice: If you want to customize this error message, create app/View/Errors/missing_action.ctp

Stack Trace