Isb Posted May 6, 2013 Share Posted May 6, 2013 Hi all, I'm running 1.5.4.1 and i have a problem with tpl files. I have the cache disabled and template cache setted to force compilation. I have installed the module for clearing cache and also deleted all files in /cache/smarty/compile and /cache/smarty/cache and inside my theme cache folder I don't have any caching systems ( like varnish etc ) in background. Hovewer if i edit any tpl file, no changes are visible in the front end. Of course my browser cache is empty. At the moment i'm on localhost with xampp enabled. What should i do? Thanks for all Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 I know that this may be dumb question, but... are you sure that you editing correct theme .tpl files? Moreover, if you editing module .tpl files you should chceck themes/your_theme/modules/your_module/ directory for this file. if this file exists there - you should apply changes there Link to comment Share on other sites More sharing options...
Isb Posted May 6, 2013 Author Share Posted May 6, 2013 You are right: the theme has the module folder inside. ( yes i am a dumb sorry ^^" but i am new to ps ) By the way i have another question about my module tpl file: this is my install code return parent::install() && $this->registerHook( 'top' ) && $this->registerHook( 'header' ); and this is my function for the tpl file public function hookTop( $params ){ return $this->display( __FILE__ , 'blockinfo.tpl' ); } Am i wrong in something? Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 well it looks fine, if it doesnt work for you, try to use: return $this->display( __FILE__ , '/blockinfo.tpl' ); with " / " sign before blockinfo.tpl Link to comment Share on other sites More sharing options...
Isb Posted May 6, 2013 Author Share Posted May 6, 2013 This is my module structure and inside the tpl, there is just a string : "THIS IS A TEST". I added the " / " sign, but in the front end the string isn't displayed Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 have you got this file in views directory? Link to comment Share on other sites More sharing options...
Isb Posted May 6, 2013 Author Share Posted May 6, 2013 (edited) I found on the guide for module developing this text: hookDisplayLeftColumn(): will hook code into the left column – in our case, it will fetch the MYMODULE_NAME module setting and display the module's template file, mymodule.tpl, which must be located in the /views/templates/hook/ folder. So i did this in the first time, but it didn't work. Then i tried to put the tpl file into the root of the module folder and still no results At the moment the file is located in the module root. Edited May 6, 2013 by Isb (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 can you send me this module? i will check it on my onw demo store and fix if some problems occur it's hard to say whats going on without an access to it regards Link to comment Share on other sites More sharing options...
Isb Posted May 6, 2013 Author Share Posted May 6, 2013 Sure, here the download link. Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 hello ichecked your module - it works fine: http://i.imgur.com/WK6NU4r.png maybe try to delete it from modules section, then install it again (install from zip package) Link to comment Share on other sites More sharing options...
Isb Posted May 6, 2013 Author Share Posted May 6, 2013 Ok now there is another problem: when i'm going to install the module ( via upload form ), it triggers the error "module not found", and if i try to uninstall the module, it triggers a fatal error: Fatal error: Call to a member function uninstall() on a non-object in /home/wwwsite/isaytest.com/htdocs/stereomuch/controllers/admin/AdminModulesController.php on line 574 I'm using the same zip i sent to you. Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 try to comment $this->need_instance Link to comment Share on other sites More sharing options...
Isb Posted May 6, 2013 Author Share Posted May 6, 2013 Ok now everything is working! Thank you vekia!!! Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2013 Share Posted May 6, 2013 great :-) i can go ahead and mark this thread as solved if you've got any other questions related to this case - feel free to continue discussion here regards Link to comment Share on other sites More sharing options...
amit.xpertsinfosoft Posted July 24, 2013 Share Posted July 24, 2013 Hi vekia, I have created a different type of module for category, its working fine. When here add a new category then not showing it. and if this file update any small thing then showing it. and again add a new category then same problem vise-verse. Please help me. thanks Amit Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2013 Share Posted July 24, 2013 On 7/24/2013 at 7:22 AM, amit.xpertsinfosoft said: Hi vekia, I have created a different type of module for category, its working fine. When here add a new category then not showing it. and if this file update any small thing then showing it. and again add a new category then same problem vise-verse. Please help me. thanks Amit i think that your question is not related to the main case here, please create separate thread, im conviced that then it will be more visible to other developers and community memberts thanks in advance Link to comment Share on other sites More sharing options...
amit.xpertsinfosoft Posted July 24, 2013 Share Posted July 24, 2013 Hi, let me know how to create a new thread? thanks in advance Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2013 Share Posted July 24, 2013 sorry to bother you but if we all will follow forum rules, then the whole community will be better place for everyone here is a simple pic: just go to the correct forum section and press the blue button "start new topic" Link to comment Share on other sites More sharing options...
amit.xpertsinfosoft Posted July 24, 2013 Share Posted July 24, 2013 Sorry Vekia, i am not getting this link but i have sent a message here. thanks 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