Author Topic: HOw to attach controller to block  (Read 3313 times)

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
HOw to attach controller to block
« 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???

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: HOw to attach controller to block
« Reply #1 on: February 14, 2017, 12:48:36 PM »
do you mean column "controller" of the database table "blocks" ?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: HOw to attach controller to block
« Reply #2 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"

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: HOw to attach controller to block
« Reply #3 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

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: HOw to attach controller to block
« Reply #4 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.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod