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.

phalcon
Filter by
Sorted by
Tagged with
0 votes
0 answers
19 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 ...
MD. Farhad Hossan's user avatar
2 votes
1 answer
44 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) ...
ceaiius's user avatar
  • 157
1 vote
1 answer
198 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 ...
ceaiius's user avatar
  • 157
1 vote
1 answer
50 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 ...
Denis's user avatar
  • 99
0 votes
0 answers
24 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&...
andres castellanos's user avatar
0 votes
0 answers
48 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 ...
Naisarg Parmar's user avatar
0 votes
1 answer
132 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 ...
Styled Bee's user avatar
0 votes
0 answers
111 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->...
samirapadidar's user avatar
0 votes
0 answers
22 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 ...
Mathieu's user avatar
1 vote
0 answers
44 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 ...
Shane Sanjaya's user avatar
0 votes
0 answers
31 views

Phalcon url encrypt decrypt issue

I'm using phalcon 5.2.2. trying to encrypt url but failed to get expected result cause url is encrypting but with error. unable to find what I'm doing wrong? [Module.php] use Phalcon\Encryption\Crypt; ...
Styled Bee's user avatar
0 votes
0 answers
30 views

Mysqli Match subquery for search factor

I'm using phalcon php V5.2.2. I want to apply a search query for my online store which can find data by product_title, keywords and specification. Noted: keywords is array. I did my query like below ...
Styled Bee's user avatar
0 votes
0 answers
41 views

Can I cross join to tables using phalcon query builder?

I have 2 tables that use the 3rd table's id as their primary key id. They look like this Accounts Table id 1 GNCC accountsID 1 Payments accountsID 1 Currently, I'm getting the data that I ...
ceaiius's user avatar
  • 157
0 votes
1 answer
164 views

Error: Adapter Phalcon\Db\Adapter\Pdo\Mysql is not supported, HOWEVER

Edit: Phalcon version 4.2.0 and php 7.4.3 versions are the compatible versions I was told to used and Im sure that I had scaffolded the users table. But now when I am trying to rescaffold since I ...
Caroline Craig's user avatar
0 votes
0 answers
65 views

Phalcon Session

I have set my session, however it is not being seen on the other pages. within the loginController, the login function has: $session->set('auth', $user->id); I want when the person log in, ...
Caroline Craig's user avatar
0 votes
0 answers
247 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
26 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
147 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
72 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
  • 157
1 vote
0 answers
72 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
  • 157
0 votes
1 answer
167 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
126 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
249 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,523
0 votes
1 answer
118 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
  • 157
0 votes
0 answers
919 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
51 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
110 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
806 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
147 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
112 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
503 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
44 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
3 answers
2k 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
43 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
  • 856
0 votes
1 answer
540 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
331 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
218 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
428 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
75 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
94 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
1 answer
244 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
112 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
261 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
1 vote
2 answers
2k 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: [email protected] Location: ~/Documents/cphalcon I am trying to set up my new repository by ...
The Blind Hawk's user avatar
0 votes
0 answers
29 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
102 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
42 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
759 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
61 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
102 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

1
2 3 4 5
41