AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Sam_78 on February 14, 2017, 11:46:29 AM

Title: HOw to attach controller to block
Post by: Sam_78 on February 14, 2017, 11:46:29 AM
I was making some changes in Category block and by mistake I lost the connection of controller. Now if I look at category block I see blank in "controller: " how do I attach controller there???
Title: Re: HOw to attach controller to block
Post by: abolabo on February 14, 2017, 12:48:36 PM
do you mean column "controller" of the database table "blocks" ?
Title: Re: HOw to attach controller to block
Post by: Sam_78 on February 14, 2017, 01:10:54 PM
Yes...


I have placed my block at the location I want in my layout and edited category_top.tpl but I did some mistake and now in controller it shows blank   means no controller is attached to that block which is "category block"
Title: Re: HOw to attach controller to block
Post by: Sam_78 on February 14, 2017, 01:18:24 PM
In DB table Block I see the controller but when I go through admin panel into blocks I don't see it
Title: Re: HOw to attach controller to block
Post by: abolabo on February 14, 2017, 01:50:49 PM
In DB table Block I see the controller but when I go through admin panel into blocks I don't see it

i think you should to check relations of the tables "blocks" and "block_templates" for your block.