Questions tagged [phalcon]

Phalcon is an open source, full stack framework for PHP. Functionality is exposed as PHP classes ready to be used. Written as a C extension, it is optimized for extremely high performance, being the fastest possible framework available for PHP developers.

Filter by
Sorted by
Tagged with
0 votes
2 answers
399 views

How to install phalcon framwork? [closed]

It is the first time to use phalcon framwork .I followed the tutorials on the internet to install and It was easy but It fails and I can't run phalcon framework. Can anybody help me? my php version is ...
Gebo's user avatar
  • 3
0 votes
2 answers
235 views

i was execute phalcon (php) on xampp but i got messages "Wrong number of parameters"

Wrong number of parameters #0 C:\xampp1\htdocs\crud_by_phalcon\app\config\router.php(7): Phalcon\Mvc\Router->handle() #1 C:\xampp1\htdocs\crud_by_phalcon\public\index.php(20): include('C:\xampp1\...
Tediace's user avatar
0 votes
1 answer
140 views

Does PHP Phalcon PHQL INSERT INTO supports ON DUPLICATE KEY UPDATE?

Working on Phalcon 4.x with PHP 7.x, I am trying to do a PHQL query for INSERT. $phql = "INSERT INTO example ( user_id, answer, date_last ) VALUES ( :user_id:, :answer:, ...
Louie Miranda's user avatar
0 votes
1 answer
588 views

How to install Phalcon php

I downloaded Phalcon from official website I copied php_phalcon.dll file to my xampp's php/ext directory Edited the php.ini file located at D:\xampp\php\php.ini. and add there line extension=...
Michaela 's user avatar
1 vote
1 answer
333 views

How big is the upgrade from phalcon 4 to phalcon 5?

How is the upgrade from version 4 -> 5 compared to 3 -> 4? Is it much bigger or same effort? Thanks
Nghia Le's user avatar
  • 343
-1 votes
1 answer
361 views

About using Phalcon4 and Phalcon3 with PHP8.0

Do you agree with the recognition that you cannot use Phalcon4 and Phalcon3 with PHP8.0?
島田拓弥's user avatar
1 vote
1 answer
119 views

php query array in array

I am using php phalcon5 framework. I have 2 columns on a product table. Product title and keyword. The product title contains 1 complete sentence and the keyword contains multiple comma separated ...
Styled Bee's user avatar
0 votes
1 answer
243 views

how to define variable in phalcon php volt blade and assign data to it?

i have a variable in my blade that its set to the blade in controller $this->view->->setVar("formData", $formData); my formData is an array from my submitted form now i want to ...
Sina Ghafarian's user avatar
0 votes
1 answer
223 views

Installing Phalcon on Linux Mint

I've recently been hired to assist a lead developer with a company that uses the PHP framework Phalcon. I'm trying to get familiar with it but I'm having the hardest time getting installed on my ...
Lew Ashby 85's user avatar
0 votes
1 answer
429 views

Add solution cache file with redis [phalcon, php7.4-redis]

$di['cache'] = function () use ($di, $config) { $serializerFactory = new \Phalcon\Storage\SerializerFactory(); $adapterFactory = new \Phalcon\Cache\AdapterFactory($serializerFactory); $frontend = $...
Phát Lê's user avatar
-1 votes
1 answer
121 views

Error *170 FastCGI sent in stderr on Phalcon 4.*

2022/05/17 09:02:46 [error] 22404#22404: *170 FastCGI sent in stderr: "PHP message: PHP Deprecated: The 'compiledPath' option is deprecated. Use 'path' instead. in /vagrant/phalcon/public/index....
Phát Lê's user avatar
0 votes
1 answer
245 views

About phalcon / incubator that can be used with phalcon 5.0.0 beta3

I need to update from PHP 7.3 to PHP 8.0 or PHP 8.1. About composer.json php from ~ 7.3.0 to ^ 8.0, ext-phalcon from ^ 3.3.0 to 5.0.0 beta3 I think I have to update to I'm looking for a phalcon / ...
島田拓弥's user avatar
0 votes
0 answers
153 views

use Phalcon \ Session \ Adapter \ Database as Database not found

I need to update from PHP 7.3 to PHP 8.0 or PHP 8.1. About composer.json php from ~ 7.3.0 to ^ 8.0, ext-phalcon from ^ 3.3.0 to 5.0.0 beta3 I think I have to update to When I updated it, I found the ...
島田拓弥's user avatar
0 votes
1 answer
286 views

\ Mvc \ User \ Plugin not found

I need to update from PHP 7.3 to PHP 8.0 or PHP 8.1. About composer.json php from ~ 7.3.0 to ^ 8.0, ext-phalcon from ^ 3.3.0 to 5.0.0 beta3 I think I have to update to It changed as follows I was ...
島田拓弥's user avatar
0 votes
1 answer
86 views

About \ phalcon \ mvc \ Application.zep

I need to update from PHP 7.3 to PHP 8.0 or PHP 8.1. About composer.json php from ~ 7.3.0 to ^ 8.0, ext-phalcon from ^ 3.3.0 to 5.0.0 beta3 I think I have to update to It changed as follows cphalcon-3....
島田拓弥's user avatar
0 votes
1 answer
280 views

Uncaught Error: Class "Phalcon\Debug" not found

I need to update from PHP 7.3 to PHP 8.0 or PHP 8.1. About composer.json php from ~ 7.3.0 to ^ 8.0, ext-phalcon from ^ 3.3.0 to 5.0.0 beta3 I think I have to update to I updated and started it I was ...
島田拓弥's user avatar
0 votes
1 answer
238 views

how to install Phalcon on XAMP

I am following document instruction to install Phalcon on XAMP , from here It is said to download x86 version for windows in document but when I go to Download page there is not that version there ...
morteza mortezaie's user avatar
-2 votes
3 answers
361 views

how to use php and volt parameter together?

I am using Volt and PHP in phalcon volt partial I want to iterate a loop and in the loop I have php code that accept a parameter this is my code {% for header in headers %} <th> <?=...
morteza mortezaie's user avatar
0 votes
1 answer
134 views

volt : pass variable to include from parent template

I am beginner with volt , I have a template that use a partials like this main.volt <div> hello to {{ partial("partials/tst",["name":"kevin"]) }} </div> ...
morteza mortezaie's user avatar
0 votes
2 answers
518 views

Using variable with string for new class initialization

I need to initialize new class Safe with constructor call. The way it works: $paymentPortal = new Safe($order); The way it doesnt: $portal = 'Safe'; $paymentPortal = new $portal($order); I get error:...
SubjectX's user avatar
  • 836
0 votes
1 answer
358 views

502 Bad Gateway Error In Nginx using Phalcon and jQuery on submit

I'm having some trouble resolving a 502 error on an NGINX server using the Phalcon 4.0.x Framework. Specifically on forms that send Ajax data to the PHP controller. These do not seems to arrive, but ...
dovad's user avatar
  • 1
0 votes
1 answer
356 views

How to solve this error: Declaration error in Phalcon

When I run a simple project with Phalcon, It is Ok. But I'm going to run another Phalcon project that wrote by another person but I get an error: Fatal error: Declaration of Core\Config::toArray() ...
Mohamad Shabihi's user avatar
0 votes
1 answer
1k views

Fatal error: Uncaught Error: Class "Phalcon\Config" not found in Phalcon Php application

I installed Phalcon PHP version 5.0.0beta3 in my Ubuntu, because it's compatible with PHP 8.0, but when I run my application some Phalcon classes are not found, I already installed the psr module ...
Zicato's user avatar
  • 3
0 votes
1 answer
372 views

I can't install phalcon php in macbook air m1 with monterey.. why?

I try to install Phalcon in a mac os m1 with monterey, but say this, anyone can help me?
FaridEspadas's user avatar
0 votes
1 answer
832 views

Phalcon 5 - Sending post request to controller results in empty post data

I'm using a docker setup with php 8.0.15 + phalcon 5.0.0beta2 and i'm trying to do a simple post request using the fetch api to a route. /* inside router.php */ $apiGroup = new Router\Group(); $...
C Apetrei's user avatar
0 votes
2 answers
2k views

Phalcon - Class "Phalcon\Config" not found

I've installed Phalcon and trying to create new project: phalcon project store. But instead of this I get these errors: PHP Fatal error: Uncaught Error: Class "Phalcon\Config" not found in ...
Jeep's user avatar
  • 21
0 votes
1 answer
266 views

Phalcon performance issue

I've picked up Phalcon framework because of the best declared performance. I was trying to analyse my application and discovered something really weird. I am using version 4.1.0. Please advise if I am ...
Krzysztof Dabrowski's user avatar
0 votes
1 answer
35 views

How to call a Jasper report (.jasper) from Phalcon

I have many PHP scripts that call compiled Jasper reports (.jasper), using the PHPJavaBridge. I would like to convert all those scripts to the Phalcon framework, which gets complied into a C ...
Merrill's user avatar
  • 21
0 votes
1 answer
47 views

Php phalcon join query doesn't return anything

I am trying to run a query in phalcon php $c_inv = ClientInvoices::query()->columns(['supplier_invoice_number', ' client_payment_req_id', 'net_amount','markup_value','markup_type','...
technogeek's user avatar
1 vote
1 answer
192 views

How to pass an array to js button click in phalcon volt template engine

I am passing an associative array from my controller to my view and then iterating it on the template engine <tbody class="text-center"> {% for inv in inv_list ...
technogeek's user avatar
0 votes
2 answers
898 views

Globally installed Phalcon PHP devtools do not work on Windows 10, Why?

I installed Phalcon PHP as described in https://docs.phalcon.io/3.4/en/webserver-wamp. In this case the URL reads 3.4 because it applies alike for versions 4 and 5. The WAMP server version is 3.2.6 ...
jgarcias's user avatar
  • 347
1 vote
3 answers
1k views

Can't install phalcon php on Apple M1 Pro

I've been trying to install Phalcon 3.4 on my xampp PHP 7.3 setup (Macbook Pro 16 M1 Pro chip). Following I've tried: Tried with macports, but it is installing the file in /opt/local/lib/php73/...
Zaen Khilji's user avatar
0 votes
0 answers
201 views

Phalcon 4 update/insert/delete several row inside table on database

I'm using Phalcon 4 and I have a table CompanyProduct table that contains the foreign key: companyId, productId 123 1 123 80 And I have to insert or update or delete the row of this ...
Luca95's user avatar
  • 109
0 votes
1 answer
81 views

Phalcon 4 data strange symbol during getJsonRawBody

I'm using Phalcon 4 and I send a POST in JSON format to Phalcon controller. The JSON is: birthday "12/12/2020" country "ddf" id "15bbde30-3714-11ec-95e7-8163123e4768" ...
Luca95's user avatar
  • 109
0 votes
1 answer
195 views

Phalcon Controller $this->session and Phalcon\Session\Manager()

I'm using Phalcon v.4 and I have seen that are two ways to create the session inside a controller: class PostController extends Controller { public function postAction(): Response { $...
Luca95's user avatar
  • 109
0 votes
1 answer
168 views

Phalcon DB block database in order to check it is possible to insert data

I'm using Phalcon and I have a database in MySql. I have three tables in the database: user: id, name, sold company: id, name, cost transactions: id_company, id_user, cost An user has to do a ...
Luca95's user avatar
  • 109
0 votes
0 answers
89 views

Phalcon installation on Mac by pecl but command doesn't exist

I have installed Phalcon on macOS Big Sur (v 11.4) using pecl install phalcon but the command Phalcon doesn't exit on the terminal. I have also install the skeleton of the project by composer, but ...
Luca95's user avatar
  • 109
0 votes
0 answers
76 views

: (colon) operator gives error in Phalcon route

I have recently upgrade phlacon to Version 4. And below route not woring. http://domain_name/api/30-3-2020-10:00/getdata $app->post('/api/{date}/getdata', function ($date) use ($app) { $...
Nisha's user avatar
  • 1
0 votes
1 answer
237 views

Phalcon paginate return model

I have a relational table. I want to paginate one table and return as Model. Because I need to model that belongs other model. But $paginator->paginate()->getItems() always return Phalcon\...
Soner B's user avatar
  • 311
0 votes
1 answer
1k views

pecl: command not found

Im trying to install Phalcon on my mac with Pecl. When I use any pecl command (for example: pecl channel-update pecl.php.net I get the error: Pecl: command not found. I have installed pear and to my ...
marry's user avatar
  • 51
0 votes
2 answers
485 views

Phalcon.ini is loaded in phpifo but phalcon is not installed

I am trying to install the Phalcon4 with php7.4-fpm and I see that the ini file for phalcon is loaded in my phpinfo() here But I am still getting the below error Problem 1 - phalcon/incubator-...
baig772's user avatar
  • 3,404
1 vote
2 answers
124 views

How can i specify a hasOne relationship while there are many record in Phalcon

there are two tables,Task and Report Task(id,name,latest_report_id); Report(id,content,feedback,task_id); one task has many report but it only has one latest report.I wanna how can I get this hasOne ...
ITKnight's user avatar
0 votes
0 answers
99 views

Error routes in phalcon ..how to resolve this configuration?

Hello some one can help me i have installed phalcon 3.4 -v but the router dont work correctly in my server localhost ?? [Router.php image] [index.php image] [Error page on localhost] .htaccess in ...
Ignacio Olivieri's user avatar
1 vote
1 answer
57 views

Libmemached lagging not getting the cache value from the server after memcached rebooted

Am using phalcon libmemcached my php application. Once i deleted and recreate the memcache server after that i can set the token in the cache it is working and also i can get the token from the cache ...
user2589998's user avatar
0 votes
1 answer
92 views

Mongodb Phalcon how to search by ObjectId?

I need help with my rhyme; Working in Robo3T db.getCollection('aa').find({aa_id: ObjectId('5f10f1c013d7c9e017000033'),loai: 'mamnon'}) In phalcon not working $docs= \aa::find([ [ '...
cannv's user avatar
  • 17
2 votes
1 answer
1k views

Phalcon failed install on mac m1

I followed those step to install phalcon on my mac m1, my php version is 7.4.20 step1: brew tap tigerstrikemedia/homebrew-phalconphp step2: brew install php72-phalcon step3: add this line to php.ini ...
leojail's user avatar
  • 317
0 votes
1 answer
704 views

Phalcon install failed

I want to install phalcon, so followed this step: I download the phalcon_x64_vc15_php7.4_nts.zip.zip, from here(https://github.com/phalcon/cphalcon/releases/tag/v5.0.0-alpha.2) I go to this pages(...
leojail's user avatar
  • 317
0 votes
1 answer
384 views

Phalcon 4.0 PHP - Controller handler class cannot be loaded

I am trying to create a basic application with Phalcon locally. I followed the documentation (https://docs.phalcon.io/4.0/en/tutorial-basic) and I created the same file structure and I copied the code ...
CyberHunter's user avatar
-1 votes
1 answer
221 views

Issues with phalcon dev tools

I'm new to phalcon and I'm having issues with phalcon dev tool commands. When I type phalcon serve I get the following error. Phalcon DevTools (4.1.2) PHP Fatal error: Class 'Phalcon\Mvc\User\...
Krish's user avatar
  • 401
-2 votes
1 answer
832 views

Phalcon - Composer install of Dev-Tools error: requested PHP extension -

composer install with file compose.json { "require-dev": { "phalcon/devtools": "~3.4" } } should install Phalcon Dev-Tools. Actual Behavior Instead, it ...
mahen3d's user avatar
  • 7,077

1
2
3 4 5
41