\ This is a magento issue. I have this controller called ImagesController.php where
class My_Sell_ImagesController extends Mage_Core_Controller_Front_Action
I am extending/inhering core controller
Now, I have this another class
class My_Advert_Model_Advert extends Mage_Core_Model_Abstract {
public function isValid($arrStepTpCheck){
...
I will like to access isValid inside My_Sell_ImagesController maybe something like
$advert = Mage::registry('current_advert');
$arrError = $this->isValid(array('step1'));
But this gives me
Fatal error: Call to undefined method My_Sell_ImagesController::isValid() in .....ImagesController.php
I am new to Magento backend. So please help?