modx-club / modx-console Goto Github PK
View Code? Open in Web Editor NEWThis MODX Extra allow to execute php-code in back-end in simple interface
This MODX Extra allow to execute php-code in back-end in simple interface
Интересная идея: http://community.modx-cms.ru/#comment61858
На MODX 2.3.1 при выполнении кода в консоли с выводом через echo и print выводится ошибка
PHP warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/core/components/console/processors/exec.class.php(20) : eval()'d code:2)Версия 2.0.1 beta
Ace не слушается системной настройки ace.height ("Высота области редактирования")
Если попробовать выполнить в консоли такой скрипт:
$order = $modx->getObject('msOrder', 43);
if($products = $order->getMany('Products')) {
foreach($products as $product) {
echo $product-('parent');
}
}
То ошибка появится во всплывающем окне
Но у него в CSS прописана прозрачность, из-за чего окна не видно, но оно есть и мешается.
Скорее всего, это баг MODX, но надо будет разобраться, как это обойти...
Had recently the problem, that a site didn't display the console cmp because the system settings compress_css and compress_js were activated (probably more the js one), just wanted to write that down somewhere =)!
подправить файл console.php Ссылка
прописать более корректный, например мне постоянно после обновления приходится убирать 1 dirname.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.