Cree un módulo y lo agregué al menú del admin, al ingresar desde el menú del admin me redirecciona al dashboard y me muestra el mensaje: “Invalid security or form key. Please refresh the page Custom Module”. menu.xml <?xml version="1.0"?> <add id="Wolf_MyModule::MyModule" title="My Module" module="Wolf_MyModule" sortOrder="51" resource="Wolf_MyModule::MyModule"/> <add id="Wolf_MyModule::cars" title="Cars" […]
Blog
app/code/local/Info/news/Bock/Adminhtml/news/Grid.php <?php class Info_News_Block_Adminhtml_News_Grid extends Mage_Adminhtml_Block_Widget_Grid{ public function __construct(){ parent::__construct(); $this->setId('newsGridView'); $this->setDefaultSort('news_id'); $this->setDefaultDir('DESC'); $this->setSaveParametersInSession(true); } protected function _prepareCollection(){ //$collection=new Varien_Data_Collection(); $collection = Mage::getModel('news/news')->getCollection(); $this->setCollection($collection); return parent::_prepareCollection(); } protected function _prepareColumns(){ $this->addColumn("news_id",array( "header"=>Mage::helper("news")->__("ID"), "type"=>"number", "index"=>"news_id" )); $this->addColumn("news_title",array( "header"=>Mage::helper("news")->__("Title"), "type"=>"text", "index"=>"news_title" )); $this->addColumn("news_content",array( "header"=>Mage::helper("news")->__("Content"), "type"=>"text", "index"=>"news_content" )); } } app/code/local/Info/News/Model/News.php <?php class […]
Badge headings can be used to label the latest information about the headings. The size of badges scales in accordance with the heading size. It… Read More The post Bootstrap 5 Badge Headings appeared first on GeeksforGeeks.
Are you one of those people who gets jittery when it comes to answering behavioral interview questions in a proper manner that can actually impress… Read More The post How to Use the STAR Interview Method To Ace Your Job Interview? appeared first on GeeksforGeeks.
Gone are the days when only CS/IT guys could get into IT jobs. If you are from a Non-IT branch like Mechanical, Electrical, Civil, Auto,… Read More The post How to Switch Your Career From Non-IT to IT? appeared first on GeeksforGeeks.
Given an array arr[] of size N and you need to fill another empty array of size N with positive integers. Each element in the… Read More The post Count ways to fill Array with distinct elements with given limitation appeared first on GeeksforGeeks.
Given a positive integer array arr[] of size N, the task is to find the longest subarray such that the bitwise AND of every pair… Read More The post Longest Subarray whose bitwise AND of every pair of elements is 0 appeared first on GeeksforGeeks.
Anyone knows how to “fix” the blurry font in the new Gmail UI without enabling Clear Type for the whole OS? Chrome: Firefox:
We cant reach any of our devices in the same network and they can’t reach our new windows 11 computer. Pings do work fine, but http requests, curl and other requests do not. I tried updating the network card driver … no success. I reinitialized the network cards … no […]