Coder Social home page Coder Social logo

tym17 / magento2-admin-module-sample Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 16.0 223 KB

Minimal code to create an admin/backend module in Magento2

License: Academic Free License v3.0

PHP 89.70% HTML 10.30%
admin backend hacktoberfest magento2 minimal module php plugin sample

magento2-admin-module-sample's People

Contributors

tym17 avatar vmasciotta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento2-admin-module-sample's Issues

Routes not working

Hey,

I've got this installed at app/code/Tym17/AdminSample

app/etc/config.php
'Tym17_AdminSample' => 1,

but when I try to hit /admin/AdminSample/SampleOne/ or /admin/AdminSample/SampleTwo/ I'm taken to the Dashboard. Any idea what I'm doing wrong or next steps to debug?

Constructor error for Model class AdminSample.php

I am getting an error for constructor parameter (ConfigHelper) of Model class AdminSample.php. I am getting below error.

Warning: Declaration of Tym17\AdminSample\Model\AdminSample::_construct(Tym17\AdminSample\Helper\ConfigHelper $config) should be compatible with Magento\Framework\Model\AbstractModel::_construct() in D:\xampp\htdocs\magento2\app\code\Tym17\AdminSample\Model\AdminSample.php on line 9

after install the admin module the admin/home page displayed the blank page

I downloaded the zip folder and created the name space Tym17 , created the module name AdminSample. Inside the module folder i pasted the Zip folder content , then
php bin/magento setup:upgrade -> using this i upgraded . config.php activate the module. when i open the home page http://127.0.0.1/magentonew/admin It displayed the blank page .As I tried I could not fix this issue in magento 2 and also followed steps given in the online reference but got the same issue.could you please suggest the solution for this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.