php - Calling a function in Magento Admin Module Controller via URL -
i under impression (after viewing tutorials on alan storms site models) should able call function on controller via url so:
http://www.localhost.com:8080/magento/index.php/mymodule/adminhtml_mymodule/somefunction
and in controller declare:
public function somefunctionaction() { mage::log("im in"); }
the problem nothing being logged. there special admin modules prevents working?
note: haven't included rest of code declaring module working fine, merely curious calling controller function via url in way please let me know if require more information in order answer properly.
you can't call action direct url, because magento uses nonces in admin section. can read here: http://alanstorm.com/magento_admin_hello_world_revisited , "magento admin urls"-section.
Comments
Post a Comment