As of May 31, 2023, we have updated our Code of Conduct.

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
0 answers
40 views

php.ini - Install Phalcon not appearing in PHPInfo

I installed my own server for the very first time with the objective to test Phalcon but it doesn't seems to be enabled, or even present: echo Phalcon\Version::get(); Returns error: Fatal error: ...
Emma K's user avatar
  • 1
1 vote
0 answers
15 views

Phalcon PHP in RunCloud

To install Phalcon PHP on servers managed by RunCloud, something special to do as RunCloud installs multiple versions of PHP? How to install Phalcon for an X version of PHP? Thanks. I'm having some ...
fabioemerson's user avatar
0 votes
2 answers
63 views

phalcon GET routes allowing any other non http method to make successful request to that route

I'm using Phalcon\Mvc\Router to map the routes and I have a GET route /api/test like this, $router = new \Phalcon\Mvc\Router(false); $router->addGet('/api/test', [ 'module' => '...
Chamara Abeysekara's user avatar
-1 votes
1 answer
32 views

Can I get an id of a submitted button in my Controller in Phalcon?

I'm looking for a way to get the id of a button when the button is submitted. Right now, when I submit the form and dump it in my controller, I can only access the value of the button, nothing else. I ...
ceaiius's user avatar
  • 103
1 vote
0 answers
86 views

Phalcon not showing up in phpinfo() [closed]

I am able to run in cmd phalcon -v I am also able to create a project from cmd, but whenever I open the project in the local host it throws the error: ( ! ) Fatal error: Uncaught Error: Class 'Phalcon\...
Caroline Craig's user avatar
1 vote
0 answers
34 views

How to get the value of a select input in Phalcon?

I have a small form with a select input and a textarea for commenting. I want to make the textarea required only if the value of the select input is 1, for example, otherwise, it shouldn't be required....
ceaiius's user avatar
  • 103
0 votes
1 answer
89 views

Using views in Phalcon Task

for one of my developments, I would like to run a Phalcon task that can retrieve the HTML code of a .volt view. The purpose of using a .volt view is to pass parameters to my .volt view before ...
Mathieu's user avatar
0 votes
1 answer
67 views

PHP Phalcon getConfig() error: #0 /var/www/html/gadgetsplash/ui/public/index.php(46): Phalcon\Di->__call() #1 {main}

I have build a phalcon MVC project, it runs fine on my local machine which is Ubuntu 18.04, while deploying on the server, CentOS 7, it throws this error. It's Phalcon v4. #0 /var/www/html/...
asega's user avatar
  • 33
0 votes
3 answers
122 views

How to invalidate Model cache | Phalcon 4

I've the following to cache model query and it is working fine, public static function getSubcategories($partnerId) { $instance = new self(); $q = $instance->modelsManager->...
Gammer's user avatar
  • 5,353
0 votes
1 answer
86 views

Can't connect phalcon project with mysql database

I'm new into learning phalcon, I'm trying to setup a phalcon project, I've managed to serve it on my localhost and it kinda works except for when an interaction with the database is needed. I got a ...
ceaiius's user avatar
  • 103
0 votes
0 answers
388 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() ...
Delta7's user avatar
  • 41
0 votes
1 answer
39 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 ...
Никита Прокопенко's user avatar
0 votes
2 answers
77 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\...
Роман Коростелёв's user avatar
0 votes
1 answer
512 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: ...
Memories's user avatar
0 votes
3 answers
120 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 ...
cecilia dousset's user avatar
0 votes
1 answer
57 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
Jhon H. Barbosa González's user avatar
1 vote
2 answers
214 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 ...
Azizxon Zufarov's user avatar
0 votes
1 answer
31 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 ...
Mathieu's user avatar
0 votes
2 answers
907 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....
Mateus J. Machado's user avatar
0 votes
0 answers
37 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\...
SubjectX's user avatar
  • 828
0 votes
1 answer
220 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 ...
Vüsal Hüseynli's user avatar
0 votes
2 answers
201 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 ...
Deanz's user avatar
  • 13
0 votes
1 answer
165 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 ...
user3741232's user avatar
1 vote
1 answer
123 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 ...
Antonio Frioli's user avatar
1 vote
2 answers
68 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 ...
morteza mortezaie's user avatar
0 votes
1 answer
62 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 == '...
Cristobal Nyram's user avatar
0 votes
0 answers
109 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 ...
The Blind Hawk's user avatar
0 votes
1 answer
144 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 }} ; &...
morteza mortezaie's user avatar
0 votes
1 answer
83 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'] = ...
Caroline Craig's user avatar
0 votes
0 answers
107 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 ...
AlesSvetina's user avatar
0 votes
1 answer
944 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 ...
The Blind Hawk's user avatar
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
cresol's user avatar
  • 1
0 votes
1 answer
73 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(...
cresol's user avatar
  • 1
0 votes
0 answers
37 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 ...
cresol's user avatar
  • 1
0 votes
2 answers
377 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 ...
The Blind Hawk's user avatar
0 votes
1 answer
43 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 ...
michaela šatarova's user avatar
0 votes
1 answer
40 views

Phalcon Installation on Macbook MacOs Catalina

I tried installing phalcon with homebrew this error comes occurring. How can I install PSR on mac?
Sandesh Dhakal's user avatar
0 votes
2 answers
85 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 ...
The Blind Hawk's user avatar
0 votes
1 answer
51 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 ...
user avatar
0 votes
1 answer
53 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() { ...
Tediace's user avatar
1 vote
1 answer
228 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) "*...
Vüsal Hüseynli's user avatar
0 votes
0 answers
55 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 ...
Tediace's user avatar
0 votes
2 answers
111 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'...
Castle Shield's user avatar
0 votes
2 answers
329 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
184 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
97 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
501 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
282 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
  • 333
-1 votes
1 answer
286 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
114 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

1
2 3 4 5
41