Error While Compiling Magento 2 admin page module
I'm getting error while compiling the Magento 2 admin module. The error which I'm getting is
Fatal error:
Class TutorialSimpleNewsControllerAdminhtmlNews
contains 1 abstract method and must therefore be declared abstract or
implement the remaining methods
(MagentoFrameworkAppActionInterface::execute)
in
/Applications/XAMPP/xamppfiles/htdocs/MagentoTest/app/code/Tutorial/SimpleNews/Controller/Adminhtml/News.php
on line 60
Here is my code:
<?php
namespace TutorialSimpleNewsControllerAdminhtml;
use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewResultPageFactory;
use TutorialSimpleNewsModelNewsFactory;
class News extends Action
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry;
/**
* Result page factory
*
* @var MagentoFrameworkViewResultPageFactory
*/
protected $_resultPageFactory;
/**
* News model factory
*
* @var TutorialSimpleNewsModelNewsFactory
*/
protected $_newsFactory;
/**
* @param Context $context
* @param Registry $coreRegistry
* @param PageFactory $resultPageFactory
* @param NewsFactory $newsFactory
*/
public function __construct(
Context $context,
Registry $coreRegistry,
PageFactory $resultPageFactory,
NewsFactory $newsFactory
) {
parent::__construct($context);
$this->_coreRegistry = $coreRegistry;
$this->_resultPageFactory = $resultPageFactory;
$this->_newsFactory = $newsFactory;
}
/**
* News access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');
}
}
magento2 admin-controller compilation
add a comment |
I'm getting error while compiling the Magento 2 admin module. The error which I'm getting is
Fatal error:
Class TutorialSimpleNewsControllerAdminhtmlNews
contains 1 abstract method and must therefore be declared abstract or
implement the remaining methods
(MagentoFrameworkAppActionInterface::execute)
in
/Applications/XAMPP/xamppfiles/htdocs/MagentoTest/app/code/Tutorial/SimpleNews/Controller/Adminhtml/News.php
on line 60
Here is my code:
<?php
namespace TutorialSimpleNewsControllerAdminhtml;
use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewResultPageFactory;
use TutorialSimpleNewsModelNewsFactory;
class News extends Action
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry;
/**
* Result page factory
*
* @var MagentoFrameworkViewResultPageFactory
*/
protected $_resultPageFactory;
/**
* News model factory
*
* @var TutorialSimpleNewsModelNewsFactory
*/
protected $_newsFactory;
/**
* @param Context $context
* @param Registry $coreRegistry
* @param PageFactory $resultPageFactory
* @param NewsFactory $newsFactory
*/
public function __construct(
Context $context,
Registry $coreRegistry,
PageFactory $resultPageFactory,
NewsFactory $newsFactory
) {
parent::__construct($context);
$this->_coreRegistry = $coreRegistry;
$this->_resultPageFactory = $resultPageFactory;
$this->_newsFactory = $newsFactory;
}
/**
* News access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');
}
}
magento2 admin-controller compilation
add a comment |
I'm getting error while compiling the Magento 2 admin module. The error which I'm getting is
Fatal error:
Class TutorialSimpleNewsControllerAdminhtmlNews
contains 1 abstract method and must therefore be declared abstract or
implement the remaining methods
(MagentoFrameworkAppActionInterface::execute)
in
/Applications/XAMPP/xamppfiles/htdocs/MagentoTest/app/code/Tutorial/SimpleNews/Controller/Adminhtml/News.php
on line 60
Here is my code:
<?php
namespace TutorialSimpleNewsControllerAdminhtml;
use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewResultPageFactory;
use TutorialSimpleNewsModelNewsFactory;
class News extends Action
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry;
/**
* Result page factory
*
* @var MagentoFrameworkViewResultPageFactory
*/
protected $_resultPageFactory;
/**
* News model factory
*
* @var TutorialSimpleNewsModelNewsFactory
*/
protected $_newsFactory;
/**
* @param Context $context
* @param Registry $coreRegistry
* @param PageFactory $resultPageFactory
* @param NewsFactory $newsFactory
*/
public function __construct(
Context $context,
Registry $coreRegistry,
PageFactory $resultPageFactory,
NewsFactory $newsFactory
) {
parent::__construct($context);
$this->_coreRegistry = $coreRegistry;
$this->_resultPageFactory = $resultPageFactory;
$this->_newsFactory = $newsFactory;
}
/**
* News access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');
}
}
magento2 admin-controller compilation
I'm getting error while compiling the Magento 2 admin module. The error which I'm getting is
Fatal error:
Class TutorialSimpleNewsControllerAdminhtmlNews
contains 1 abstract method and must therefore be declared abstract or
implement the remaining methods
(MagentoFrameworkAppActionInterface::execute)
in
/Applications/XAMPP/xamppfiles/htdocs/MagentoTest/app/code/Tutorial/SimpleNews/Controller/Adminhtml/News.php
on line 60
Here is my code:
<?php
namespace TutorialSimpleNewsControllerAdminhtml;
use MagentoBackendAppAction;
use MagentoBackendAppActionContext;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewResultPageFactory;
use TutorialSimpleNewsModelNewsFactory;
class News extends Action
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry;
/**
* Result page factory
*
* @var MagentoFrameworkViewResultPageFactory
*/
protected $_resultPageFactory;
/**
* News model factory
*
* @var TutorialSimpleNewsModelNewsFactory
*/
protected $_newsFactory;
/**
* @param Context $context
* @param Registry $coreRegistry
* @param PageFactory $resultPageFactory
* @param NewsFactory $newsFactory
*/
public function __construct(
Context $context,
Registry $coreRegistry,
PageFactory $resultPageFactory,
NewsFactory $newsFactory
) {
parent::__construct($context);
$this->_coreRegistry = $coreRegistry;
$this->_resultPageFactory = $resultPageFactory;
$this->_newsFactory = $newsFactory;
}
/**
* News access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');
}
}
magento2 admin-controller compilation
magento2 admin-controller compilation
edited 1 min ago
Rakesh Donga
3159
3159
asked Nov 25 '16 at 5:50
Vadivel Murugan MVadivel Murugan M
738
738
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Yes.. you need to add the execute method in the controller action..eg:-
public function execute() {
$this->resultPage = $this->resultPageFactory->create();
$this->resultPage->setActiveMenu('Tutorial_SimpleNews::manage');
return $this->resultPage;
}
Still I'm getting the same Error..
– Vadivel Murugan M
Nov 25 '16 at 6:11
Actually the correct way of writing a controller action in M2 is we have to create a folder inside Adminhtml and then place the controller in that.Try to do in that way. It seems your controller action file is correct. Dont forget to clear generation.
– Rahul
Nov 25 '16 at 6:59
Sorry I have wrongly updated the code..
– Vadivel Murugan M
Nov 25 '16 at 7:01
I have updated the code. please have a look
– Vadivel Murugan M
Nov 25 '16 at 7:02
You must add the execute method for the controller and then you can add your remaining methods too.
– Rahul
Nov 25 '16 at 7:05
|
show 1 more comment
Default Abstract clss is required.
class News extends Action
change to
abstract class News extends Action
execute method not required.
So your file at appcodeTutorialSimpleNewsControllerAdminhtmlNew.php
<?php namespace TutorialSimpleNewsControllerAdminhtml;
use MagentoBackendAppAction
use MagentoBackendAppActionContext;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewResultPageFactory;
use TutorialSimpleNewsModelNewsFactory;
abstract class News extends Action
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry;
/**
* Result page factory
*
* @var MagentoFrameworkViewResultPageFactory
*/
protected $_resultPageFactory;
/**
* News model factory
*
* @var TutorialSimpleNewsModelNewsFactory
*/
protected $_newsFactory;
/**
* @param Context $context
* @param Registry $coreRegistry
* @param PageFactory $resultPageFactory
* @param NewsFactory $newsFactory
*/
public function __construct(
Context $context,
Registry $coreRegistry,
PageFactory $resultPageFactory,
NewsFactory $newsFactory
) {
parent::__construct($context);
$this->_coreRegistry = $coreRegistry;
$this->_resultPageFactory = $resultPageFactory;
$this->_newsFactory = $newsFactory;
}
/**
* News access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');
}
}
?>
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f147441%2ferror-while-compiling-magento-2-admin-page-module%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes.. you need to add the execute method in the controller action..eg:-
public function execute() {
$this->resultPage = $this->resultPageFactory->create();
$this->resultPage->setActiveMenu('Tutorial_SimpleNews::manage');
return $this->resultPage;
}
Still I'm getting the same Error..
– Vadivel Murugan M
Nov 25 '16 at 6:11
Actually the correct way of writing a controller action in M2 is we have to create a folder inside Adminhtml and then place the controller in that.Try to do in that way. It seems your controller action file is correct. Dont forget to clear generation.
– Rahul
Nov 25 '16 at 6:59
Sorry I have wrongly updated the code..
– Vadivel Murugan M
Nov 25 '16 at 7:01
I have updated the code. please have a look
– Vadivel Murugan M
Nov 25 '16 at 7:02
You must add the execute method for the controller and then you can add your remaining methods too.
– Rahul
Nov 25 '16 at 7:05
|
show 1 more comment
Yes.. you need to add the execute method in the controller action..eg:-
public function execute() {
$this->resultPage = $this->resultPageFactory->create();
$this->resultPage->setActiveMenu('Tutorial_SimpleNews::manage');
return $this->resultPage;
}
Still I'm getting the same Error..
– Vadivel Murugan M
Nov 25 '16 at 6:11
Actually the correct way of writing a controller action in M2 is we have to create a folder inside Adminhtml and then place the controller in that.Try to do in that way. It seems your controller action file is correct. Dont forget to clear generation.
– Rahul
Nov 25 '16 at 6:59
Sorry I have wrongly updated the code..
– Vadivel Murugan M
Nov 25 '16 at 7:01
I have updated the code. please have a look
– Vadivel Murugan M
Nov 25 '16 at 7:02
You must add the execute method for the controller and then you can add your remaining methods too.
– Rahul
Nov 25 '16 at 7:05
|
show 1 more comment
Yes.. you need to add the execute method in the controller action..eg:-
public function execute() {
$this->resultPage = $this->resultPageFactory->create();
$this->resultPage->setActiveMenu('Tutorial_SimpleNews::manage');
return $this->resultPage;
}
Yes.. you need to add the execute method in the controller action..eg:-
public function execute() {
$this->resultPage = $this->resultPageFactory->create();
$this->resultPage->setActiveMenu('Tutorial_SimpleNews::manage');
return $this->resultPage;
}
edited Nov 25 '16 at 6:07
answered Nov 25 '16 at 6:01
RahulRahul
100110
100110
Still I'm getting the same Error..
– Vadivel Murugan M
Nov 25 '16 at 6:11
Actually the correct way of writing a controller action in M2 is we have to create a folder inside Adminhtml and then place the controller in that.Try to do in that way. It seems your controller action file is correct. Dont forget to clear generation.
– Rahul
Nov 25 '16 at 6:59
Sorry I have wrongly updated the code..
– Vadivel Murugan M
Nov 25 '16 at 7:01
I have updated the code. please have a look
– Vadivel Murugan M
Nov 25 '16 at 7:02
You must add the execute method for the controller and then you can add your remaining methods too.
– Rahul
Nov 25 '16 at 7:05
|
show 1 more comment
Still I'm getting the same Error..
– Vadivel Murugan M
Nov 25 '16 at 6:11
Actually the correct way of writing a controller action in M2 is we have to create a folder inside Adminhtml and then place the controller in that.Try to do in that way. It seems your controller action file is correct. Dont forget to clear generation.
– Rahul
Nov 25 '16 at 6:59
Sorry I have wrongly updated the code..
– Vadivel Murugan M
Nov 25 '16 at 7:01
I have updated the code. please have a look
– Vadivel Murugan M
Nov 25 '16 at 7:02
You must add the execute method for the controller and then you can add your remaining methods too.
– Rahul
Nov 25 '16 at 7:05
Still I'm getting the same Error..
– Vadivel Murugan M
Nov 25 '16 at 6:11
Still I'm getting the same Error..
– Vadivel Murugan M
Nov 25 '16 at 6:11
Actually the correct way of writing a controller action in M2 is we have to create a folder inside Adminhtml and then place the controller in that.Try to do in that way. It seems your controller action file is correct. Dont forget to clear generation.
– Rahul
Nov 25 '16 at 6:59
Actually the correct way of writing a controller action in M2 is we have to create a folder inside Adminhtml and then place the controller in that.Try to do in that way. It seems your controller action file is correct. Dont forget to clear generation.
– Rahul
Nov 25 '16 at 6:59
Sorry I have wrongly updated the code..
– Vadivel Murugan M
Nov 25 '16 at 7:01
Sorry I have wrongly updated the code..
– Vadivel Murugan M
Nov 25 '16 at 7:01
I have updated the code. please have a look
– Vadivel Murugan M
Nov 25 '16 at 7:02
I have updated the code. please have a look
– Vadivel Murugan M
Nov 25 '16 at 7:02
You must add the execute method for the controller and then you can add your remaining methods too.
– Rahul
Nov 25 '16 at 7:05
You must add the execute method for the controller and then you can add your remaining methods too.
– Rahul
Nov 25 '16 at 7:05
|
show 1 more comment
Default Abstract clss is required.
class News extends Action
change to
abstract class News extends Action
execute method not required.
So your file at appcodeTutorialSimpleNewsControllerAdminhtmlNew.php
<?php namespace TutorialSimpleNewsControllerAdminhtml;
use MagentoBackendAppAction
use MagentoBackendAppActionContext;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewResultPageFactory;
use TutorialSimpleNewsModelNewsFactory;
abstract class News extends Action
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry;
/**
* Result page factory
*
* @var MagentoFrameworkViewResultPageFactory
*/
protected $_resultPageFactory;
/**
* News model factory
*
* @var TutorialSimpleNewsModelNewsFactory
*/
protected $_newsFactory;
/**
* @param Context $context
* @param Registry $coreRegistry
* @param PageFactory $resultPageFactory
* @param NewsFactory $newsFactory
*/
public function __construct(
Context $context,
Registry $coreRegistry,
PageFactory $resultPageFactory,
NewsFactory $newsFactory
) {
parent::__construct($context);
$this->_coreRegistry = $coreRegistry;
$this->_resultPageFactory = $resultPageFactory;
$this->_newsFactory = $newsFactory;
}
/**
* News access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');
}
}
?>
add a comment |
Default Abstract clss is required.
class News extends Action
change to
abstract class News extends Action
execute method not required.
So your file at appcodeTutorialSimpleNewsControllerAdminhtmlNew.php
<?php namespace TutorialSimpleNewsControllerAdminhtml;
use MagentoBackendAppAction
use MagentoBackendAppActionContext;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewResultPageFactory;
use TutorialSimpleNewsModelNewsFactory;
abstract class News extends Action
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry;
/**
* Result page factory
*
* @var MagentoFrameworkViewResultPageFactory
*/
protected $_resultPageFactory;
/**
* News model factory
*
* @var TutorialSimpleNewsModelNewsFactory
*/
protected $_newsFactory;
/**
* @param Context $context
* @param Registry $coreRegistry
* @param PageFactory $resultPageFactory
* @param NewsFactory $newsFactory
*/
public function __construct(
Context $context,
Registry $coreRegistry,
PageFactory $resultPageFactory,
NewsFactory $newsFactory
) {
parent::__construct($context);
$this->_coreRegistry = $coreRegistry;
$this->_resultPageFactory = $resultPageFactory;
$this->_newsFactory = $newsFactory;
}
/**
* News access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');
}
}
?>
add a comment |
Default Abstract clss is required.
class News extends Action
change to
abstract class News extends Action
execute method not required.
So your file at appcodeTutorialSimpleNewsControllerAdminhtmlNew.php
<?php namespace TutorialSimpleNewsControllerAdminhtml;
use MagentoBackendAppAction
use MagentoBackendAppActionContext;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewResultPageFactory;
use TutorialSimpleNewsModelNewsFactory;
abstract class News extends Action
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry;
/**
* Result page factory
*
* @var MagentoFrameworkViewResultPageFactory
*/
protected $_resultPageFactory;
/**
* News model factory
*
* @var TutorialSimpleNewsModelNewsFactory
*/
protected $_newsFactory;
/**
* @param Context $context
* @param Registry $coreRegistry
* @param PageFactory $resultPageFactory
* @param NewsFactory $newsFactory
*/
public function __construct(
Context $context,
Registry $coreRegistry,
PageFactory $resultPageFactory,
NewsFactory $newsFactory
) {
parent::__construct($context);
$this->_coreRegistry = $coreRegistry;
$this->_resultPageFactory = $resultPageFactory;
$this->_newsFactory = $newsFactory;
}
/**
* News access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');
}
}
?>
Default Abstract clss is required.
class News extends Action
change to
abstract class News extends Action
execute method not required.
So your file at appcodeTutorialSimpleNewsControllerAdminhtmlNew.php
<?php namespace TutorialSimpleNewsControllerAdminhtml;
use MagentoBackendAppAction
use MagentoBackendAppActionContext;
use MagentoFrameworkRegistry;
use MagentoFrameworkViewResultPageFactory;
use TutorialSimpleNewsModelNewsFactory;
abstract class News extends Action
{
/**
* Core registry
*
* @var MagentoFrameworkRegistry
*/
protected $_coreRegistry;
/**
* Result page factory
*
* @var MagentoFrameworkViewResultPageFactory
*/
protected $_resultPageFactory;
/**
* News model factory
*
* @var TutorialSimpleNewsModelNewsFactory
*/
protected $_newsFactory;
/**
* @param Context $context
* @param Registry $coreRegistry
* @param PageFactory $resultPageFactory
* @param NewsFactory $newsFactory
*/
public function __construct(
Context $context,
Registry $coreRegistry,
PageFactory $resultPageFactory,
NewsFactory $newsFactory
) {
parent::__construct($context);
$this->_coreRegistry = $coreRegistry;
$this->_resultPageFactory = $resultPageFactory;
$this->_newsFactory = $newsFactory;
}
/**
* News access rights checking
*
* @return bool
*/
protected function _isAllowed()
{
return $this->_authorization->isAllowed('Tutorial_SimpleNews::manage_news');
}
}
?>
edited Nov 25 '16 at 11:35
Raphael at Digital Pianism
53.6k19112271
53.6k19112271
answered Nov 25 '16 at 11:05
Darshana KalavadiaDarshana Kalavadia
12
12
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f147441%2ferror-while-compiling-magento-2-admin-page-module%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e) {
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom)) {
StackExchange.using('gps', function() { StackExchange.gps.track('embedded_signup_form.view', { location: 'question_page' }); });
$window.unbind('scroll', onScroll);
}
};
$window.on('scroll', onScroll);
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown