

(JSON/TEXT/CVS/XML/RSS) That also need some sort of basic support at least read/write/index. Also it dosn't support XML and CVS just JSON.Įvery function in Phalcon assumes that everyone uses database, but you forget that not all use database for all projects and there is many flat files exists. You are on the right path with Phalcon\Collection in v4, but if I'm not mistaking it does not allow read and write or indexing dirs & files. Because it seperates everything and can be called sepereately when needed. But I think having seperate Phalcon\Json and Phalcon\Text (raw text file read/write) and Phalcon\XML and Phaclon\CVS will be smarter. Then we can just use File::readJson or File::writeJson or File::readXML or File::writeXML or File::readCVS or File::writeCVS etc.Īnother idea, is to use glob() or similar in places like File::Json for example to index all JSON files with something like File::indexJson($path, $regex) etc. It can also be just called Phalcon\File and everything that relates to it can be there. This can also be extended to Phalcon\XML and Phalcon\CVS for example.

Having something like Json::read and Json::write is very useful. I think this will be very useful for those like me who work with flat-files or json files regularly. The idea behind this request is to have something that reads and writes files with performnace of Phalcon instead of having to use PHP functions directly.
Zend json helper code#
It can use native C/Zephir code to achive this for best performance. Also it doesn't have to use PHP's file_get_contents() and file_put_contents() functions. I did see in google a bug with PHP 7 and JSON decode. }Īpp\code\BBC\ProductAdminAccess\composer.So is some other helper functions, but if we are going this route reading/writing files is actually very It can be Phalcon\Json of course, this was just an example. And on our demo, it works fine for you You are not using Mariadb Ill test too again. > Exception trace: () at /home/bbcmanagement/public_html/vendor/magento/zendframework1/library/Zend/Json.php:97 Zend_Json::decode() at /home/bbcmanagement/public_html/vendor/magento/framework/Module/PackageInfo.php:85 Magento\Framework\Module\PackageInfo->load() at /home/bbcmanagement/public_html/vendor/magento/framework/Module/PackageInfo.php:208 Magento\Framework\Module\PackageInfo->getRequire() at /home/bbcmanagement/public_html/vendor/magento/framework/Module/Dependenc圜hecker.php:132 Magento\Framework\Module\Dependenc圜hecker->createGraph() at /home/bbcmanagement/public_html/vendor/magento/framework/Module/Dependenc圜hecker.php:95 Magento\Framework\Module\Dependenc圜hecker->checkDependencyGraph() at /home/bbcmanagement/public_html/vendor/magento/framework/Module/Dependenc圜hecker.php:82 Magento\Framework\Module\Dependenc圜hecker->checkDependenciesWhenEnableModules() at /home/bbcmanagement/public_html/vendor/magento/framework/Module/Status.php:97 Magento\Framework\Module\Status->checkConstraints() at /home/bbcmanagement/public_html/setup/src/Magento/Setup/Console/Command/AbstractModuleManageCommand.php:92 Magento\Setup\Console\Command\AbstractModuleManageCommand->execute() at /home/bbcmanagement/public_html/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257 Symfony\Component\Console\Command\Command->run() at /home/bbcmanagement/public_html/vendor/symfony/console/Symfony/Component/Console/Application.php:874 Symfony\Component\Console\Application->doRunCommand() at /home/bbcmanagement/public_html/vendor/symfony/console/Symfony/Component/Console/Application.php:195 Symfony\Component\Console\Application->doRun() at /home/bbcmanagement/public_html/vendor/magento/framework/Console/Cli.php:96 Magento\Framework\Console\Cli->doRun() at /home/bbcmanagement/public_html/vendor/symfony/console/Symfony/Component/Console/Application.php:126 Symfony\Component\Console\Application->run() at /home/bbcmanagement/public_html/bin/magento:23 I am getting below error > # **php bin/magento module:enable -v BBC_ProductAdminAccess** I have a custom module which is working perfectly in my local machine but while I am trying to enable my module in my magento 2store hosted in cPanel,
