phalcon

Phalcon tutorial error PhalconException: TestController handler class cannot be loaded

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-02 05:32:27
问题 I'm having some trouble getting Phalcon Tutorial 1 to work. In the end I've cloned the version of it on Github to make sure I'm not missing something; still getting the same behavior from that. Pointing the browser to localhost/test as shown in the tutorial gives: ` "PhalconException: TestController handler class cannot be loaded". Going to localhost/test.php , however, loads the "Hello!" test message correctly. Phalcon is shown in phpinfo() and get_loaded_extensions() . I get this behaviour

Problems compile phalcon on osx 10.9

给你一囗甜甜゛ 提交于 2019-12-31 02:08:44
问题 Trying to follow instruction from documentation: running $ sudo ./install and get this: gcc -I. -I/Users/honky/cphalcon/build/64bits -DPHP_ATOM_INC -I/Users/honky/cphalcon/build/64bits/include -I/Users/honky/cphalcon/build/64bits/main -I/Users/honky/cphalcon/build/64bits -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib -DPHALCON

Namespaces with Phalcon

半世苍凉 提交于 2019-12-30 03:26:25
问题 All my controllers are under the namespace MyApp\Controllers so, as the documentation recommended, I've set my default namespace to it: $dispatcher->setDefaultNamespace('MyApp\Controllers'); But now I need to not only organize my controllers in folders but also namespace them and have friendly URLs like: /features/featureX/ and /wizards/featureX/ . So from that example I got MyApp\Controllers\Features\FeaturesX and MyApp\Controllers\Wizards\FeaturesX . I believe that they shouldn't be

[PHP] Phalcon应用升级PHP7记录

此生再无相见时 提交于 2019-12-30 00:56:01
升级主要有 php7, phalcon, extension 这三个方面工作。 【php7】 我选择从 git 中源码包安装,下面是主要安装步骤: git clone -b php-7.0.14 https://github.com/php/php-src.git cd php-src/ ./buildconf --force ./configure --with-libdir=lib64 --prefix=/usr/local/php7.0.14 --with-mysqli --with-pdo-mysql=/usr/local/mysql --enable-inline-optimization --enable-fpm --with-freetype-dir=/usr/local/freetype --with-gd --with-zlib --with-png-dir --with-jpeg-dir --enable-mbstring --with-iconv --enable-sockets --with-curl --with-openssl --enable-pcntl --enable-soap --enable-calendar --enable-bcmath --enable-opcache=no make && make install cp php.ini

windows wamp加载Phalcon

二次信任 提交于 2019-12-30 00:55:18
我的环境是64位的 Win7,Wampserver2.4 集成包(Apache 2.4.4,php5.4.12,MySQL 5.0.10)。 安装 Phalcon 也极其简单,只需要下载一个文件(php_phalcon.dll), 要以 phpinfo() 里面“Architecture”属性为准! 下载地址是 http://phalconphp.com/download。把php_phalcon.dll 解压出来放在 {WampServer安装目录}\bin\php\php5.4\ext 目录下面, 然后修改php.ini文件 PHP.ini配置文件增加参数“extension=php_phalcon.dll”, 然后重启 Apache 服务就好了, 重启后用phpinfo查看是否安装成功。 如果服务器报 500 internal server error, 一般就是 Phalcon 版本和环境不统一。 比如“Phalcon 1.1.0 - Windows x86 for PHP 5.4.0 NTS (VC9)”, 就是给32位系统(x86)用的,对应的PHP版本是5.4.0(只要是5.4就可以,比如5.4.1也行)。 NTS是非线性安全的,如果你的phpinfo()显示“Thread Safety”是“enable”的状态, 那么你需要下载不带“NTS”这个标志的。“VC9

安装Phalcon框架

天大地大妈咪最大 提交于 2019-12-30 00:54:46
转载于:http://blog.csdn.net/maildocgaojingru/article/details/24801549?utm_source=tuicool 我的环境是64位的 Win7,Wampserver2.4 集成包(Apache 2.4.4,php5.4.12,MySQL 5.0.10)。 安装 Phalcon 也极其简单,只需要下载一个文件(php_phalcon.dll), 要以 phpinfo() 里面“Architecture”属性为准! 下载地址是 http://phalconphp.com/download。把php_phalcon.dll 解压出来放在 {WampServer安装目录}\bin\php\php5.4\ext 目录下面, 然后修改php.ini文件 PHP.ini配置文件增加参数“extension=php_phalcon.dll”, 然后重启 Apache 服务就好了, 重启后用phpinfo查看是否安装成功。 如果服务器报 500 internal server error, 一般就是 Phalcon 版本和环境不统一。 比如“Phalcon 1.1.0 - Windows x86 for PHP 5.4.0 NTS (VC9)”, 就是给32位系统(x86)用的,对应的PHP版本是5.4.0(只要是5.4就可以,比如5.4

PHP在win7安装Phalcon框架

谁说胖子不能爱 提交于 2019-12-30 00:54:27
我的环境是64位的 Win7。 安装 Phalcon 也极其简单,只需要下载一个文件(php_phalcon.dll), 要以 phpinfo() 里面“Architecture”属性为准! 下载地址是 http://phalconphp.com/zh/download/windows。 把php_phalcon.dll 解压出来放在 {WampServer安装目录}/bin/php/php5.4/ext 目录下面, 然后修改 php .ini文件, PHP.ini配置文件增加参数“extension=php_phalcon.dll”, 然后重启 Apache 服务就好了, 重启后用phpinfo查看是否安装成功。 如果服务器报 500 internal server error, 一般就是 Phalcon 版本和环境不统一。 比如“Phalcon 1.1.0 - Windows x86 for PHP 5.4.0 NTS (VC9)”, 就是给32位系统(x86)用的,对应的PHP版本是5.4.0(只要是5.4就可以,比如5.4.1也行)。 NTS是非线性安全的,如果你的phpinfo()显示“Thread Safety”是“enable”的状态, 那么你需要下载不带“NTS”这个标志的。“VC9”是用来标记 编译器 的,现在只有 VC9 的可以下载。 当然也可以根据

phalcon - how to loop through associative (array) model::find(); to output keys

谁都会走 提交于 2019-12-25 12:46:56
问题 I want to loop through the columns of the model::find results. What I thought was possible is to cast the returning object to an array to be able to loop throught the columns, but that does not work. Here is my Controller code: <?php class ManageController extends ControllerBase { public function indexAction() { $this->view->setVar("pages",(array) Pages::find()); } } And view code: {% for key,value in pages %} <p>key: {{key}}</p> {% endfor%} Any help would be usefull 回答1: Use this; <?php

Phalcon Volt Array is of string type

北战南征 提交于 2019-12-25 06:33:35
问题 I have a Phalcon volt template I wanted to call in my custom helper, it will accept an array but the array sent to the helper is of string type. In my list.volt I have this code, {% set myfolder = data.foldername %} {% set key = data.folderkey %} {% set url = convert([myfolder, key]) %} In my loader.php, I have declared the helper directory and have this code: //$params should be single dimensional array $compiler->addFunction('convert', function($params){ var_dump($params); return

Router not working (Heroku + Nginx + PHP Phalcon)

旧时模样 提交于 2019-12-25 03:43:32
问题 I don't get it why the mvc routes are not working. When I access the home page, all the css and js are loaded. "GET /css/main.css HTTP/1.1" 304 But when I access any other controller, I got: method=GET path="/transaction/add" [error] open() "/app/public/transaction/add" failed (2: No such file or directory) "GET /transaction/add HTTP/1.1" 404 Here's my procfile --Procfile-- web: vendor/bin/heroku-php-nginx public/ location / { # try to serve file directly, fallback to rewrite try_files $uri