How to make a prestashop admin controller

08:44:00 10 Comments

Really simple working steps to create controllers/admin/AdminPageController.php with the follwing content:
    class AdminPageController extends AdminController
{
public function initContent()
{
parent
::initContent();
$smarty
= $this->context->smarty;

$smarty
->assign('test', 'test1');

}
}

Delete: /cache/class_index.php

Create: admin\themes\default\template\controllers\page\content.tpl
zzz{$test}zzz

At BackOffice -> Administration -> Menus -> [Add New]:
Name: Page
Class: AdminPage
Parent: Catalog

Click the [Save] button and the menu item should appear at the "Catalog" menu.

Joel

Joel Fernandes,I am a Very Smart,Innovative Creative and One of the Best Webdevelopers.I am an expert in Webdevelopment.My other interest include Cars and Vehicles.My desire is to be the best and serve you with the best information I have .I will always share all my tips and tricks on this website and provide you with the best themes so that your life may be simpler.Keep visiting www.joelwebsites.com for the best website related ,tips and tricks and news.Meet me on FaceBook

10 comments:

  1. PrestaShop designers can likewise help with modified needs like building new modules with their PrestaShop module advancement administrations. https://www.templatemonster.com/blog/creado-grid-css-wordpress-theme/

    ReplyDelete
  2. You can likewise tweak a topic as indicated by your business necessities. A prestashop engineer will comprehend what elements to incorporate and how to display your administrations in the most ideal way imaginable. https://www.templatemonster.com/blog/how-to-create-woocommerce-store/

    ReplyDelete
  3. Enlist PrestaShop designers to construct an adaptable and versatile PrestaShop site for your business.
    https://www.templatemonster.com/blog/how-not-to-suck-freelancing-educational-cards/

    ReplyDelete
  4. PrestaShop Website advancement is a well known alternative for building up your own eCommerce store. It offers little and medium-sized organizations an opportunity to modify the capable PrestaShop stage into an adaptable store. https://www.templatemonster.com/blog/glory-thieves-guide-biggest-template-marketplace-became-scammers-paradise/

    ReplyDelete
  5. The most ideal approach to get the correct store for extending your business is to procure prestashop engineer. https://www.templatemonster.com/blog/make-website-wordpress-template-8-steps-guide/

    ReplyDelete
  6. They are specialists which is as it should be. They recognize what they are doing and what should be done to construct a viable online site. https://www.templatemonster.com/blog/create-website-2017-ultimate-guide/

    ReplyDelete
  7. There are many components and modules accessible on the stage. In any case, not all things are fundamental amid PrestaShop advancement.https://www.templatemonster.com/blog/hidden-truth-themeforest/

    ReplyDelete
  8. With their experience, prestashop engineers can pick the correct elements to control your store. They can likewise help in meeting your tweaked needs. https://www.templatemonster.com/blog/wix-visual-builder-unknown-side/

    ReplyDelete
  9. One such administration incorporates PrestaShop module improvement. A module can improve your convoluted business forms into one finish arrangement. https://www.templatemonster.com/blog/50-free-vintage-fonts-forget-about-lobster/

    ReplyDelete
  10. For instance, you may require a different evaluating for your clients and traders and offer diverse rebates. You can contract prestashop engineer to fabricate a particular module for your prerequisite. https://www.templatemonster.com/blog/7-pro-tips-selling-digital-products/

    ReplyDelete