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.
2,018
questions
0
votes
0
answers
75
views
Connection reset by peer while reading response header from upstream (NGINX)
Im trying to run the local project (php phalcon) using nginx on macOS but it seems nginx can't load the project correctly.
Here is my nginx log given :
2023/01/12 11:38:04 [error] 6170#0: *1 kevent() ...
0
votes
1
answer
24
views
Value of field "db_file_id" does not exist on referenced table
Value of field "..." does not exist on referenced table
Trying to use phalcon model relationships to save related models but get an error:
Value of field "db_file_id" does not ...
0
votes
2
answers
55
views
Phalcon routing correctly pattern
Help with routing settings, there is the following request template with frontend: /books/([0-9]+)/book-authors/([0-9]+)/images
There is a controller located in namespace: Shop\Controllers\Books\...
0
votes
1
answer
103
views
Fatal Error: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
I'm trying to run "/vendor/bin/phalcon-migrations run" but I keep getting this error message:
Fatal Error: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: ...
0
votes
3
answers
70
views
Phalcon - How to call a model in another controller? "Error: Class not found"
How to call a model in another controller?
I explain myself, I created a controller and I try to call another model in this controller, but I have the error "Error: Class not found".
You can ...
0
votes
1
answer
30
views
Install Framework Phalcon PHP in Ubuntu Desktop
how to install phalcon php in Windows?
I installed wamp and followed the manual from the official page but I couldn't
1
vote
2
answers
92
views
Phalcon Fatal error: Class 'Phalcon\Mvc\Application' not found in
I have this file directory:
When I open this project in browser: Fatal error: Class 'Phalcon\Mvc\Application' not found in...
I read that I have to install composer but when I install composer this ...
0
votes
1
answer
21
views
Phalcon Debug component CSS/JS broken
I am currently using version 3.4.5 of phalcon with which I use the Debug component. But the problem is that the CSS and JS files associated with the Debug component are not loaded (error 500). You ...
0
votes
2
answers
230
views
Fatal error: Uncaught Error: Class 'Phalcon\Config' not found
Hello im trying to install phalcon and devtools but something is going wrong. I did everything I saw in tutorials installed phalcon, changed the php.ini, intalled devtools but it still doesn't no work....
0
votes
0
answers
35
views
Unable to call function to class in different namespace
I have some functionality in namespace:
namespace LyteeAPI\Models\Order;
Now, I need to call SaveOrder() function, that resides in a controller in different namespace:
namespace Lytee\Library\Helpers\...
0
votes
1
answer
130
views
"Connection reset by peer while reading response header from upstream" error while using PHP(7.4) Exception
I am getting 502 bad gateway whenever I throw an Exception in Phalcon 4 application. I am using default PHP Exception class that implements Throwable interface.
throw new Exception ("Some error ...
0
votes
2
answers
111
views
PHP Phalcon 3.4 - Can I specify connection per query , using Phalcons/Model query methods?
sorry if it'll be a bit messy (English is not my native tongue so excuse me for anything not clear enough!)
I'm Using Phalcon 3.4, with PHP 7.3.16
Let's say I have got a basic setup of
class A extends ...
0
votes
1
answer
104
views
Phalcon 4 validation multipart/form-data multiple
Is it possible to configure the file validator of Phalcon4, where it can validate multiple uploaded files?
I cannot find any documentation about multiple files upload, just file upload with different ...
1
vote
1
answer
45
views
PHP Phalcon, Loader class doesn't load
Fatal error: Uncaught Error: Class 'Phalcon\Loader' not found in...
I Just installed Phalcon framework and is in phpinfo and also it showed up in the output of php -m command. The other classes such ...
1
vote
2
answers
53
views
how to implement two layer of layout in Phalcon?
I'm using Phalcon and Volt ,
this is folder Structure in my project for layout
app/views/layouts/default.volt
and structure is like this
default.volt is main layout that come with all pages .
now I ...
0
votes
1
answer
40
views
How Can I use operator ternary in phalcon version 3.4 in volt?
I would like to use the phalcon ternary operator provided by version 3.4, but I would like to use it with the one validation at the same time.
{% set pageType = 'basicSetting' %} {{ pageType == '...
0
votes
0
answers
77
views
Phalcon 5 cannot load assets
My repository
I just started on Phalcon, so the issue might be unrelated to Phalcon's version.
I created a new Phalcon 5.0.0RC4 repository and am following the steps on the phalcon 5 docs to add ...
0
votes
1
answer
67
views
How to Pass array in Volt Template to javascript
I'm using Phalcon and Volt template engine .
This index.volt and I'm going to pass an array to JavaScript
<script type="text/javascript" >
var usersList= {{ array_from_volt }} ;
&...
0
votes
1
answer
46
views
Phalcon 5.0 Camelize throws a text not found error
I'm at Phalcon 5.0 and I am having issues calling camelize. I reached out to the community and was told that they will fix the help links that goes to 404.
Here's my issue:
$options['className'] = ...
0
votes
0
answers
55
views
Prevent new line in rows in mPDF
I am trying to make an A4 page with mPDF with 20 lines. It should always fit on one page with the same font size and line height. The text in each line can vary in length. If it's too long, I just ...
0
votes
1
answer
511
views
Phalcon\Loader\Loader not found
I have a newly cloned phalcon repository:
software: MacOS
Phalcon: 5.0.0RC4
PHP: 8.1
Zephir: 0.16.0
brew: phalcon@4.1.0
Location: ~/Documents/cphalcon
I am trying to set up my new repository by ...
0
votes
0
answers
27
views
Fatal error: Unknown: Timezone database is corrupt - this should *never* happen! in Unknown on line 0 [duplicate]
Fatal error: include(): Timezone database is corrupt - this should never happen! in /var/www/dresscode2/app/Providers/Database.php on line 5 in nginx and mariadb with pahalcon 3.3
0
votes
1
answer
58
views
timezone issue in coming with mariadb,ngnix with phalcon
PDOException: SQLSTATE[HY000]: General error: 1298 Unknown or incorrect time zone: 'Asia/Kolkata' in /var/www/dresscode2/app/Providers/Database.php:34 Stack trace: #0 [internal function]: PDO->exec(...
0
votes
0
answers
31
views
phalcon php model not created in ubutu 20.04 with nginx with phalocn model model_name
i am using ubuntu-20.04 focal fossa. my Phalcon dev-tool version is 4.1 and phalcon version is 3.4.5 when i create model inside project it's not working following details shown as attchemnt.enter ...
0
votes
2
answers
186
views
getting "command not found: phalcon" after successfully installing phalcon/devtools via composer
Software: MacOS
Phalcon: 5.0.0RC4
Phalcon/Devtools: 4.2.0
I have newly created phalcon 5.0 repository.
I successfully ran
composer install
composer require phalcon/devtools
however when I try to run ...
0
votes
1
answer
35
views
How to dynamically change value in .volt on screen view
I am using phalcon, .volt template
I am getting some data from database(predictability). Svg has one line starting on line 0 and finishing on 30.
Another line is draw about first line and it should ...
0
votes
1
answer
30
views
Phalcon Installation on Macbook MacOs Catalina
I tried installing phalcon with homebrew this error comes occurring. How can I install PSR on mac?
0
votes
2
answers
69
views
Zephir build throws "exhausted allowed memory size" on newly cloned Phalcon repo
General
software: MacOS
Phalcon: 5.0.x
PHP: 8.1
Zephir: 0.16.0
brew: phalcon@4.1.0
Location: ~/Documents/cphalcon
Details
I have just cloned phalcon following the instructions here.
I have already ...
0
votes
1
answer
48
views
How to make package visible to PHP in Linux?
I uninstalled phalcon7.4-phalcon4 and installed php-phalcon4 package in Linux (Debian GNU/Linux 11). But I can't see phalcon in phpinfo();. Should I register package in fpm php.ini file? If yes how ...
0
votes
1
answer
36
views
cannot insert new data to database using phalcon
I have created a function insert on phalcon but when I try to run my API the data cant be insert and
I got no error in this code the http route is everything good
public function insertAction()
{
...
1
vote
1
answer
158
views
Can not access array with valid key in PHP 7.4
When I try to see actual keys of array with:
dd(array_keys($this->credentials));
it shows me following:
Array (4) (
[0] => String (7) "*data"
[1] => String (14) "*...
0
votes
0
answers
38
views
i was trying to check api on postman using phalcon and i got respon 400
I got this error when i try to check using postman... u can see the error below
i got this massage
"code":400,"response":"Failed","message":"Your username ...
0
votes
2
answers
88
views
Check if update happened in put request
I am new at PHP. We are creating REST API in Phalcon and I've created a put request. It already works, but I would like to check if update has really happened before sending a success response. So I'...
0
votes
2
answers
202
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 ...
0
votes
2
answers
114
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\...
0
votes
1
answer
57
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:,
...
0
votes
1
answer
349
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=...
0
votes
1
answer
210
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
-1
votes
1
answer
190
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?
1
vote
1
answer
95
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 ...
0
votes
1
answer
112
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 ...
0
votes
1
answer
156
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 ...
0
votes
1
answer
265
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 = $...
-1
votes
1
answer
108
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....
0
votes
0
answers
110
views
Phalcon Volt directory can't be written template engine on vagrant 2.9 and php-fpm-7.4
2022/05/16 07:41:39 [error] 10380#10380: *1 FastCGI sent in stderr: "PHP message: PHP Deprecated: The 'compiledPath' option is deprecated. Use 'path' instead. in /vagrant/mishop/public/index.php ...
0
votes
0
answers
143
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 / ...
0
votes
0
answers
109
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 ...
0
votes
0
answers
83
views
How to do show selected option in the phalcon volt syntax
I have an html code something like
<label>Is Pan Verification Enabled</label>
<select class="form-control" name="ispanverified">
<...
0
votes
1
answer
170
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 ...
0
votes
1
answer
68
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....