{"id":5294,"date":"2013-07-08T13:23:24","date_gmt":"2013-07-08T10:23:24","guid":{"rendered":"http:\/\/blog.belvg.com\/?p=5294"},"modified":"2025-07-02T20:39:59","modified_gmt":"2025-07-02T18:39:59","slug":"how-to-use-the-class-admincontroller-in-prestashop","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html","title":{"rendered":"How To Use The Class AdminC\u043entr\u043eller In Prestashop"},"content":{"rendered":"\n<p>Today we will learn how to use the class AdminC&#1086;ntr&#1086;ller and will create our own model. Our Admin class will use its data. It all will be based on our new module Frequently Asked Questions. Let&rsquo;s first describe the tables which our new module will use.<\/p>\n<p>There will be 3 of them:<!--more--><\/p>\n<ul>\n<li>Belvg_faq<\/li>\n<li>Belvg_lang<\/li>\n<li>Belvg_shop<\/li>\n<\/ul>\n<p>The fields of the table belvg_f&#1072;q:<\/p>\n<ul>\n<li>Id_belvg_faq<\/li>\n<li>Position<\/li>\n<li>Active<\/li>\n<\/ul>\n<p>The fields of the table belvg_l&#1072;ng allow you to use class data in multi language stores.<\/p>\n<ul>\n<li>Id_belvg_faq<\/li>\n<li>Id_lang<\/li>\n<li>Title<\/li>\n<li>Content<\/li>\n<\/ul>\n<p>The fields of the table belvg_sh&#1086;p are responsible for multi-store support<\/p>\n<ul>\n<li>Id_belvg_faq<\/li>\n<li>Id_shop<\/li>\n<\/ul>\n<p>As soon as the database fields have been defined we can create a class-model. Let&rsquo;s call this class FAQ:<\/p>\n<pre class=\"lang:php decode:true\">class FAQ extends ObjectModel\r\n{\r\n    \/ ** Variables, which will be available during the class initialization * \/\r\n    public $content;\r\n    public $title;\r\n    public $position;\r\n    public $active;\r\n\r\n    \/**\r\n     * @see ObjectModel::$definition\r\n     *\/\r\n    public static $definition = array(\r\n        'table' =&gt; 'belvg_faq',\r\n        'primary' =&gt; 'id_belvg_faq',\r\n        'multilang' =&gt; TRUE,\r\n        'fields' =&gt; array(\r\n            'position' =&gt;           array('type' =&gt; self::TYPE_INT),\r\n            'active' =&gt;             array('type' =&gt; self::TYPE_BOOL),\r\n\r\n            \/\/ Lang fields\r\n            'title' =&gt;          array('type' =&gt; self::TYPE_STRING, 'lang' =&gt; true, 'validate' =&gt; 'isGenericName', 'required' =&gt; true, 'size' =&gt; 128),\r\n            'content' =&gt;            array('type' =&gt; self::TYPE_HTML, 'lang' =&gt; TRUE, 'validate' =&gt; 'isString', 'size' =&gt; 3999999999999),\r\n        ),\r\n    );\r\n&hellip;. \/\/For full version see the archive<\/pre>\n<p>So, the model has been created. With its help the data will be stored\\edited in the database tables. In order to work with data, to initiate processes of creating new FAQ blocks, to sort and view the list of already existing blocks we need a class inherited from AdminC&#1086;ntr&#1086;ller. So we create a class with the name AdminFAQ:<\/p>\n<pre class=\"lang:php decode:true\">require_once (dirname(__file__) . '\/belvg_faq.php');\r\nrequire_once (dirname(__file__) . '\/classes\/FAQ.php');\r\n\r\nclass AdminFAQ extends ModuleAdminController\r\n{\r\n    protected $_module = NULL;\r\n\r\n    protected $position_identifier = 'id_belvg_faq'; \/this filed is required if you use position for sorting\r\n\r\n    public function __construct()\r\n    {\r\n        $this-&gt;context = Context::getContext();\r\n        $this-&gt;table = 'belvg_faq';\r\n        \/\/$this-&gt;identifier = 'id_belvg_faq';\r\n        $this-&gt;className = 'FAQ';\r\n        $this-&gt;_defaultOrderBy = 'id_belvg_faq';\r\n        $this-&gt;lang = TRUE;\r\n\r\n        $this-&gt;addRowAction('edit');\r\n        $this-&gt;addRowAction('delete');\r\n\r\n        $this-&gt;bulk_actions = array('delete' =&gt; array('text' =&gt; $this-&gt;l('Delete selected'),\r\n                    'confirm' =&gt; $this-&gt;l('Delete selected items?')), );\r\n\r\n        Shop::addTableAssociation($this-&gt;table, array('type' =&gt; 'shop'));\r\n\r\n        $this-&gt;fields_list = array(\r\n            'id_belvg_faq' =&gt; array('title' =&gt; $this-&gt;l('ID'), 'align' =&gt; 'center', 'width' =&gt; 25),\r\n            'position' =&gt; array('title' =&gt; $this-&gt;l('Position'), 'width' =&gt; 40,'filter_key' =&gt; 'position', 'align' =&gt; 'center', 'position' =&gt; 'position'),\r\n            'title' =&gt; array('title' =&gt; $this-&gt;l('Title'), 'width' =&gt; '300', 'filter_key' =&gt; 'b!title'),\r\n            'active' =&gt; array('title' =&gt; $this-&gt;l('Displayed'), 'width' =&gt; 25, 'align' =&gt; 'center', 'active' =&gt; 'status', 'type' =&gt; 'bool', 'orderby' =&gt; FALSE)\r\n        );\r\n\r\n        parent::__construct();\r\n    }\r\n\r\n    public function l($string)\r\n    {\r\n        if (is_null($this-&gt;_module)) {\r\n            $this-&gt;_module = new belvg_faq();\r\n        }\r\n\r\n        return $this-&gt;_module-&gt;l($string, __class__);\r\n    }\r\n\r\n    public function renderForm()\r\n    {\r\n        $this-&gt;display = 'edit';\r\n        $this-&gt;initToolbar();\r\n\r\n        $this-&gt;fields_form = array(\r\n            'tinymce' =&gt; TRUE,\r\n            'legend' =&gt; array('title' =&gt; $this-&gt;l('Field'), 'image' =&gt;\r\n                    '..\/img\/admin\/tab-categories.gif'),\r\n            'input' =&gt; array(\r\n                array(\r\n                    'type' =&gt; 'text',\r\n                    'label' =&gt; $this-&gt;l('Title:'),\r\n                    'name' =&gt; 'title',\r\n                    'id' =&gt; 'title', \r\n                    'lang' =&gt; TRUE,\r\n                    'required' =&gt; TRUE,\r\n                    'hint' =&gt; $this-&gt;l('Invalid characters:').' &lt;&gt;;=#{}',\r\n                    'size' =&gt; 50),\r\n                array(\r\n                    'type' =&gt; 'textarea',\r\n                    'label' =&gt; $this-&gt;l('Block content'),\r\n                    'name' =&gt; 'content',\r\n                    'autoload_rte' =&gt; TRUE,\r\n                    'lang' =&gt; TRUE,\r\n                    'required' =&gt; TRUE,\r\n                    'rows' =&gt; 5,\r\n                    'cols' =&gt; 40,\r\n                    'hint' =&gt; $this-&gt;l('Invalid characters:').' &lt;&gt;;=#{}'),\r\n                array(\r\n                    'type' =&gt; 'radio',\r\n                    'label' =&gt; $this-&gt;l('Displayed:'),\r\n                    'name' =&gt; 'active',\r\n                    'required' =&gt; FALSE,\r\n                    'class' =&gt; 't',\r\n                    'is_bool' =&gt; FALSE,\r\n                    'values' =&gt; array(array(\r\n                            'id' =&gt; 'require_on',\r\n                            'value' =&gt; 1,\r\n                            'label' =&gt; $this-&gt;l('Yes')), array(\r\n                            'id' =&gt; 'require_off',\r\n                            'value' =&gt; 0,\r\n                            'label' =&gt; $this-&gt;l('No')))),\r\n                ),\r\n            'submit' =&gt; array('title' =&gt; $this-&gt;l('   Save   '), 'class' =&gt; 'button'));\r\n\r\n        if (Shop::isFeatureActive()) {\r\n            $this-&gt;fields_form['input'][] = array(\r\n                'type' =&gt; 'shop',\r\n                'label' =&gt; $this-&gt;l('Shop association:'),\r\n                'name' =&gt; 'checkBoxShopAsso',\r\n                );\r\n        }\r\n\r\n        return parent::renderForm();\r\n    }\r\n\r\n}<\/pre>\n<p>The method renderForm draws this form:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8830 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/07\/12-850x373.jpg\" alt=\"12 850x373\" width=\"850\" height=\"373\" title=\"How To Use The Class AdminC&#1086;ntr&#1086;ller In Prestashop\"><\/p>\n<p style=\"text-align: left;\">The array $this- &gt;fields_list, which is responsible for the data displayed in the controller&rsquo;s grid, is initialized in the constructor:<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8831 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/07\/22-850x310.jpg\" alt=\"22 850x310\" width=\"850\" height=\"310\" title=\"How To Use The Class AdminC&#1086;ntr&#1086;ller In Prestashop\"><\/p>\n<p style=\"text-align: left;\">Download Frequently Asked Questions module.<\/p>\n\n","protected":false},"excerpt":{"rendered":"Today we will learn how to use the class AdminC&#1086;ntr&#1086;ller and will create our own &#8230;","protected":false},"author":12,"featured_media":8829,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,300],"tags":[286,445],"class_list":["post-5294","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-guide","tag-admincntrller","tag-prestashop","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Today we will learn how to use the class AdminC\u043entr\u043eller and will create our own model. Our Admin class will use its data. It all will be based on our new module Friendly Asked Question.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Aliaksandr Simonchik\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#article\",\"name\":\"How To Use The Class AdminC\\u043entr\\u043eller In Prestashop | BelVG Blog\",\"headline\":\"How To Use The Class AdminC\\u043entr\\u043eller In Prestashop\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/07\\\/presta-18.jpg\",\"width\":682,\"height\":170},\"datePublished\":\"2013-07-08T13:23:24+02:00\",\"dateModified\":\"2025-07-02T20:39:59+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":14,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#webpage\"},\"articleSection\":\"Prestashop, Prestashop Guide, AdminC\\u043entr\\u043eller, Prestashop, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"name\":\"Prestashop Guide\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"position\":3,\"name\":\"Prestashop Guide\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#listItem\",\"name\":\"How To Use The Class AdminC\\u043entr\\u043eller In Prestashop\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#listItem\",\"position\":4,\"name\":\"How To Use The Class AdminC\\u043entr\\u043eller In Prestashop\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"name\":\"Prestashop Guide\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik\",\"name\":\"Aliaksandr Simonchik\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Aliaksandr Simonchik\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html\",\"name\":\"How To Use The Class AdminC\\u043entr\\u043eller In Prestashop | BelVG Blog\",\"description\":\"Today we will learn how to use the class AdminC\\u043entr\\u043eller and will create our own model. Our Admin class will use its data. It all will be based on our new module Friendly Asked Question.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/07\\\/presta-18.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html\\\/#mainImage\",\"width\":682,\"height\":170},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/how-to-use-the-class-admincontroller-in-prestashop.html#mainImage\"},\"datePublished\":\"2013-07-08T13:23:24+02:00\",\"dateModified\":\"2025-07-02T20:39:59+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How To Use The Class AdminC\u043entr\u043eller In Prestashop | BelVG Blog","description":"Today we will learn how to use the class AdminC\u043entr\u043eller and will create our own model. Our Admin class will use its data. It all will be based on our new module Friendly Asked Question.","canonical_url":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#article","name":"How To Use The Class AdminC\u043entr\u043eller In Prestashop | BelVG Blog","headline":"How To Use The Class AdminC\u043entr\u043eller In Prestashop","author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/07\/presta-18.jpg","width":682,"height":170},"datePublished":"2013-07-08T13:23:24+02:00","dateModified":"2025-07-02T20:39:59+02:00","inLanguage":"en-US","commentCount":14,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#webpage"},"articleSection":"Prestashop, Prestashop Guide, AdminC\u043entr\u043eller, Prestashop, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","name":"Prestashop Guide"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","position":3,"name":"Prestashop Guide","item":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#listItem","name":"How To Use The Class AdminC\u043entr\u043eller In Prestashop"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#listItem","position":4,"name":"How To Use The Class AdminC\u043entr\u043eller In Prestashop","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","name":"Prestashop Guide"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author","url":"https:\/\/belvg.com\/blog\/author\/alex-simonchik","name":"Aliaksandr Simonchik","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Aliaksandr Simonchik"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#webpage","url":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html","name":"How To Use The Class AdminC\u043entr\u043eller In Prestashop | BelVG Blog","description":"Today we will learn how to use the class AdminC\u043entr\u043eller and will create our own model. Our Admin class will use its data. It all will be based on our new module Friendly Asked Question.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/07\/presta-18.jpg","@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html\/#mainImage","width":682,"height":170},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html#mainImage"},"datePublished":"2013-07-08T13:23:24+02:00","dateModified":"2025-07-02T20:39:59+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"5294","title":"How To Use The Class AdminC\u043entr\u043eller In Prestashop | #site_title","description":"Today we will learn how to use the class AdminC\u043entr\u043eller and will create our own model. Our Admin class will use its data. It all will be based on our new module Friendly Asked Question.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:38:09","updated":"2026-11-03 18:38:09"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide\" title=\"Prestashop Guide\">Prestashop Guide<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow To Use The Class AdminC\u043entr\u043eller In Prestashop\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"Prestashop Guide","link":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide"},{"label":"How To Use The Class AdminC\u043entr\u043eller In Prestashop","link":"https:\/\/belvg.com\/blog\/how-to-use-the-class-admincontroller-in-prestashop.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/5294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=5294"}],"version-history":[{"count":3,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/5294\/revisions"}],"predecessor-version":[{"id":29783,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/5294\/revisions\/29783"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/8829"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=5294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=5294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=5294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}