Im creating a dependent dropdown & everything works fine for me.
CHtml::dropDownList('country_id','', array(1=>'USA',2=>'France',3=>'Japan'),
array(
'ajax' => array(
'type'=>'POST', //request type
'url'=>CController::createUrl('ajax/subcategories'),
'update'=>'#city_id', //selector to update
)));
AjaxController.php
class AjaxController extends Controller
{
...
}
Now I want to hide the url "mydomain.com/ajax/subcategories". If anyone tries to directly access this url it'll show a 404 error page. Is this possible?