phalcon

Phalcon 4 documentation controller handler issue

≯℡__Kan透↙ 提交于 2021-02-08 10:18:42
问题 I'm Using Phalcon 4.0.6 on windows 10,x64bit with psr & php version is 7.4.7. I follow basic tutorial example from "https://docs.phalcon.io/4.0/en/tutorial-basic" but I'm getting error like: "Exception: SingleController handler class cannot be loaded". Is it phalcons problem or am i doing anything wrong? File Structure: [Bootstrap] <?php use Phalcon\Loader; use Phalcon\Di\FactoryDefault; use Phalcon\Mvc\View; use Phalcon\Mvc\Application; use Phalcon\Url; // Define some absolute path constants

Phalcon 4 documentation controller handler issue

☆樱花仙子☆ 提交于 2021-02-08 10:15:05
问题 I'm Using Phalcon 4.0.6 on windows 10,x64bit with psr & php version is 7.4.7. I follow basic tutorial example from "https://docs.phalcon.io/4.0/en/tutorial-basic" but I'm getting error like: "Exception: SingleController handler class cannot be loaded". Is it phalcons problem or am i doing anything wrong? File Structure: [Bootstrap] <?php use Phalcon\Loader; use Phalcon\Di\FactoryDefault; use Phalcon\Mvc\View; use Phalcon\Mvc\Application; use Phalcon\Url; // Define some absolute path constants

Access denied for 'user'@'localhost'

↘锁芯ラ 提交于 2021-02-05 07:56:31
问题 I'm trying to create model using phalcon. But when I type phalcon model polls I get an error as ERROR: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) . I can get into mysql using mysql -p . So I tried to create new user and grant him all privileges, but it didn't help. I also can login into phpmyadmin using root and password. I also tried to specify the port as 3306 in config file, but still nothing. My config file: defined('BASE_PATH') || define('BASE

Access denied for 'user'@'localhost'

假装没事ソ 提交于 2021-02-05 07:56:07
问题 I'm trying to create model using phalcon. But when I type phalcon model polls I get an error as ERROR: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) . I can get into mysql using mysql -p . So I tried to create new user and grant him all privileges, but it didn't help. I also can login into phpmyadmin using root and password. I also tried to specify the port as 3306 in config file, but still nothing. My config file: defined('BASE_PATH') || define('BASE

installation error phalcon on MAMP or XAMPP on macOS

孤者浪人 提交于 2020-12-12 21:28:38
问题 I'm trying to install phalcon on xampp or MAMP on macOS please tell me how to install correctly phalcon on MAMP(I get the same errors during installation on XAMPP) i use this tutorial https://madebyextreme.com/insights/how-to-install-phalcon-php-framework-with-mamp-on-osx please, help me! I use php 7.3.7 errors: ./install: line 133: aclocal: command not found configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. appending configuration tag "CXX" to

installation error phalcon on MAMP or XAMPP on macOS

瘦欲@ 提交于 2020-12-12 21:24:52
问题 I'm trying to install phalcon on xampp or MAMP on macOS please tell me how to install correctly phalcon on MAMP(I get the same errors during installation on XAMPP) i use this tutorial https://madebyextreme.com/insights/how-to-install-phalcon-php-framework-with-mamp-on-osx please, help me! I use php 7.3.7 errors: ./install: line 133: aclocal: command not found configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. appending configuration tag "CXX" to

installation error phalcon on MAMP or XAMPP on macOS

三世轮回 提交于 2020-12-12 21:24:25
问题 I'm trying to install phalcon on xampp or MAMP on macOS please tell me how to install correctly phalcon on MAMP(I get the same errors during installation on XAMPP) i use this tutorial https://madebyextreme.com/insights/how-to-install-phalcon-php-framework-with-mamp-on-osx please, help me! I use php 7.3.7 errors: ./install: line 133: aclocal: command not found configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. appending configuration tag "CXX" to

Install phalcon dev tools 3.4

本秂侑毒 提交于 2020-06-29 03:36:17
问题 How can I install phalcon dev-tools 3.4 instead of 4? My phalcon extension is v3.4.5, installed this version because version 4 has some problems with Ubuntu. So these are the steps I did I git cloned from their official repo https://github.com/phalcon/phalcon-devtools.git Checked out to remotes/origin/3.4.x Then I run composer install, but I get the following error: The requested PHP extension ext-phalcon ^4.0.0 has the wrong version (3.4.5) installed. Install or enable PHP's phalcon

学习PHP好,还是Python好呢?

人走茶凉 提交于 2020-04-25 04:47:57
首先简单介绍一下Python。 Python在出现以来,已经有数以千计基于这项技术的网站和软件项目,Python因其独有的特点从众多开发语言中脱颖而出,深受世界各地的开发者喜爱。 下面,我们列举了Python最显著的一面。所有这些优点使它非常流行,也正因于此,众多跨国公司选择了Python作为他们的编程语言。 1、简单 我们可以说Python是简约的语言,非常易于读写,遇到问题时,程序员可以把更多的注意力放在问题本身上,而不用花费太多精力在程序语言、语法上。 2、免费 Python是免费开源的。这意味着程序员不用花钱,就可以共享、复制和交换它,这也帮助Python形成了强壮的社区,使用它更加完善,技术发展更快。专业人士可以在社区和初学者分享他们的知识和经验。 找到你可以使用的开源库会得到什么好处?削减一半的项目支出! 3、兼容性 Python兼容众多平台,所以开发者不会遇到使用其他语言时常会遇到的困扰 4、面向对象 Python既支持面向过程,也支持面向对象编程。在面向过程编程中,程序员复用代码,在面向对象编程中,使用基于数据和函数的对象 尽管面向对象的程序语言通常十分复杂,PYTHON却设法保持简洁。 5、库 Python社区创造了一大堆各种各样的Python库。在他们的帮助下,你可以管理文档,执行单元测试、数据库、web浏览器、电子邮件、密码学、图形用户界面和更多的东西

linux下安装msgpack,yar,phalcon

醉酒当歌 提交于 2020-04-03 09:09:49
安装msgpack扩展 下载: http://pecl.php.net/package/msgpack cd /usr/local tar zxvf msgpack-0.5.5.tgz cd msgpack-0.5.5 phpize ./configure --with-php-config=/usr/local/php5/bin/php-config make && make install 会在no-debug-non-zts-20090626中生成msgpack.so 在php.ini中加入extension=/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/msgback.so 安装yar扩展 下载:http://pecl.php.net/package-stats.php cd /usr/local tar zxvf yar-1.2.4.tgz cd yar-1.2.4 phpize ./configure --with-php-config=/usr/local/php5/bin/php-config make && make install 会在no-debug-non-zts-20090626中生成yar.so 在php.ini中加入extension=/usr/local/php5/lib