TheVyom
TheVyom

Reputation: 533

Magento: How do I debug if class_exist

In Magento I am getting the error

'Model class does not exist: Cerulean_School_Model_Observer'

However I clearly have the file:

$ ls -l app/code/local/Cerulean/School/Model/Observer.php
-rw-r--r-- 1 vyom webuser 877 Oct 24 02:27 app/code/local/Cerulean/School/Model/Observer.php

I have no idea on how to debug this.

Upvotes: 0

Views: 624

Answers (1)

Anton S
Anton S

Reputation: 12750

Open up that file and see if it really states

<?php class Cerulean_School_Model_Observer

and if it really exists then you can do for testing

<?php $test = new Cerulean_School_Model_Observer(); 

and every time you encounter a new framework , app with a structure you should familiarize with naming conventions as a first step that helps you understand the structure

you should follow http://framework.zend.com/manual/en/coding-standard.naming-conventions.html

Upvotes: 3

Related Questions