Harsh.daffodil Posted March 5, 2014 Share Posted March 5, 2014 (edited) I have got an error while extending the Object Class in module file other than bootstrap file? how to extend it? I m calling this file using ajax and this returning an error "Class not found in this file". Edited March 5, 2014 by Harsh.daffodil (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted March 5, 2014 Share Posted March 5, 2014 I assume you are using 1.6. Can you share the code you used? Clear cache so the class is auto loaded as well. Where did you place the class file? Link to comment Share on other sites More sharing options...
Harsh.daffodil Posted March 5, 2014 Author Share Posted March 5, 2014 (edited) actually i m calling this file using ajax from tpl file. And i want to apply Sql query to fetch data, but when i m using Db::method ; then it showing the fatal error that this Db file doesnt exist in this context. How to implement this? I m using 1.5 Edited March 5, 2014 by Harsh.daffodil (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted March 6, 2014 Share Posted March 6, 2014 Can you show use the code? I thought you were using 1.6 as you referred to a bootstrap file (and I thought you really meant THAT one ) Link to comment Share on other sites More sharing options...
Harsh.daffodil Posted March 6, 2014 Author Share Posted March 6, 2014 nope for bootstrap I mean the file with same name as module name. Sorry but i changed my strategy. But for future scope also I just want to know that If i certain file only using ajax then it gives me the above error.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now