2,033 questions
1 vote
1 answer
64 views
Phalcon custom validator's allowEmpty method is ignored, how to fix?
I've created a custom validator in Phalcon by extending Phalcon\Filter\Validation\AbstractValidator. I implemented the allowEmpty method to define a custom rule for what should be considered an "...
3 votes
1 answer
106 views
Phalcon 4.2 to 5.4 Migration – HTML Escaping Issue in Form Labels
At my company, we're migrating Phalcon from version 4.2 to 5.4 while using PHP 7.4. We're facing an issue with form initialization, specifically with the HTML inside labels being escaped. We define ...
0 votes
0 answers
41 views
Issue with Data Returning [false, false, false] after looping updated data in Phalcon
I am working on a project using Phalcon and encountering an issue while trying to save DrugOrder objects. Below is the relevant part of my code: $drug_order = DrugOrder::find([ 'conditions' => &...
1 vote
0 answers
69 views
How do I handle 500 and 200 error on phalcon?
I was wondering, what's the best way to handle 500 and 200 error in Phalcon? I'd like to create a default error page for when an error occurs. In my app/config/service.php: use \Phalcon\Mvc\Dispatcher ...
0 votes
0 answers
80 views
Localhost keep reloading
I have a PHP Phalcon setup on Ubuntu with the following versions: PHP = 7.4.33 Phalcon = 4.0 Phalcon Dev Tools = 4.2 Ubuntu = 20.02 Server = Apache 2 The issue I am facing is that my localhost ...
0 votes
0 answers
119 views
Update mysql 5.7 for 8.0 in phalcon 4.1 and php 7.4
i have a problem in update mysql version of my application, 8.0 version causes a 300% more loewst process in database compare of 5.7 version. Any sugestions or cases for improve performance in this ...
1 vote
0 answers
65 views
Using Phalcon models inside migrations
Iam trying to use my phalcon models inside migrations like you can in laravel. The problem is with namespaces. I try to load the namespaces with loader to solve the namespace issues by calling a ...
2 votes
1 answer
5k views
How to change datatables row background color
In my Phalcon project, I'm trying to change the color of a row based on some data. I'd appreciate any help. This is what I'm working with. In my controller : private function dataTablesAjax($request) ...
1 vote
0 answers
298 views
Adding multi select form to filter query and export the filtered data into an excel file
I'm working on the project that uses a lot of mysql data importing into excel files. So far I've been writing queries in my controller and then simply exporting the result data as an excel file. But ...
1 vote
1 answer
96 views
Phalcon 5 query betweenWhere OR betweenWhere
I can't get to make this query to work in phalcon, depending on how I change the query I get "Invalid parameter number: parameter was not defined" : SELECT start_date, end_date ...
0 votes
0 answers
73 views
php phalcon micro api endpoint return 404 except root url
I am trying to setup very simple, 2 api endpoints using Php Phalcon Micro. I am getting 404 not found on endpoint route with "/api/healthcheck". But when I call root "/", I get ...
0 votes
1 answer
364 views
phalcon 5 'request' service issue
I had a project running on phalcon 5.3.0. But after upgrading to phalcon 5.3.1 with php 8.2 i'm facing some errors. and unable fix it. i did no change but errors are occurred. Also i did not get any ...
0 votes
0 answers
225 views
Phalcon PHP - Token not being read from Authorization Header in Postman
I have a Phalcon PHP application where I'm trying to implement token-based authentication. I have a method in my code like this: public function infoAction() { $access_token = $this->request->...
0 votes
0 answers
46 views
Phalcon 4 Multi-Module MVC Application: Default Module and Controller Issues
I'm coming to you because I'd like to set up a multi-module MVC application with phalcon 4. I have followed the documentation and my bootstrap file is as follows: <?php use Phalcon\Debug; use ...
1 vote
0 answers
64 views
Can Aspecktmock used in Codeception API testing?
We use Codeception with Phalcon. We are trying to add testing around an API. This API has DB saves and other application logic. Assume our requirement is to receive 403 HTTP status If the DB save has ...