2,040
questions
0
votes
0
answers
27
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
35
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
62
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
64
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 ...
0
votes
0
answers
21
views
why object of my model return all values string in phalcon 4.1
in my model Course extended \Phalcon\MVC\Model
and when i want get data like this:
$course = \App\Models\Course::findFirst($courseId);
$course->id ->>>> "196"
why is string ...
1
vote
0
answers
35
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 ...
0
votes
0
answers
49
views
phalcon and phalcon devtools installation issue in windows 10
I am trying to create a new phalcon project in my machine which has windows 10 with wamp server installed. I tried to create the project in different ways. I have tried with pecl and phalcon windows ...
2
votes
1
answer
2k
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
1
answer
257
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
72
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
31
views
Phalcon - Swiftmailer send email with invitation of event
I'm try to send a email on Phalcon adding an invitation with an event. This are the versions of my backend:
"phalcon/devtools": "^4.0",
"phalcon/migrations": "^1.2&...
0
votes
0
answers
61
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
260
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
172
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
28
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 ...