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
1 answer
32 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
46 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
16 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
2 answers
1k 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 ...
1 vote
0 answers
25 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 ...
3 votes
2 answers
1k views

Phalcon 4 How to get URL of current page?

In phalcon 3.4 we had the below function to get the current URL, $current_url = $this->router->getRewriteUri(); However, it seems to be that, it was dropped in version 4.0 however there is no ...
0 votes
0 answers
27 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; ...
0 votes
1 answer
22 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 ...
0 votes
0 answers
32 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 ...
2 votes
2 answers
3k views

How to retrieve data from database Phalcon php

I'm using tutorial-master https://docs.phalconphp.com/en/latest/reference/tutorial.html the Create step from CRUD is awesome, I can input data to database. But I don't understand how to generating ...
0 votes
1 answer
108 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 ...
0 votes
0 answers
39 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, ...
0 votes
0 answers
98 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: ...
1 vote
0 answers
22 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 ...
0 votes
2 answers
100 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' => '...
-1 votes
1 answer
55 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 ...
1 vote
0 answers
152 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\...
0 votes
1 answer
118 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 ...
0 votes
3 answers
172 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->...
1 vote
0 answers
52 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....
0 votes
1 answer
92 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/...
0 votes
1 answer
248 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
1 answer
106 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 ...
0 votes
3 answers
400 views

Define dynamic actions/slugs with Routers in PhalconPHP

I have a website made in PHP Phalcon, and it has several controllers. Now I need this website to receive words in the URL (example.com/WORD) and check if they exist in the database, but I must ...
2 votes
3 answers
1k views

how to install specific phalcon framework version 2.0.?

i have a application which is working fine with version 2.0 for that i am unable to install phalcon version 2.0 only latest version version 3.2.2 is installing.. so how can i install v 2.0..?? ...
5 votes
4 answers
9k views

What CMS can be used with Phalcon framework?

I've been using Wordpress for the past 4 years for developing small and medium websites. Now I have an enterprise project and I'm considering using Phalcon PHP framework. My enterprise project will ...
0 votes
0 answers
572 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
47 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
3 answers
136 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
2 answers
95 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
725 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: ...
1 vote
0 answers
242 views

php phalcon error:the image cannot be displayed because it contains errors

firefox browser. codes below: the return value in function getQRcode is an image, i want to display it directly . then the erorr show in browser.
0 votes
1 answer
97 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
3 answers
28k views

PHP/Phalcon Error: Closed without sending a request; it was probably just an unused speculative preconnection

I have a basic controller action: public function createAction() { $this->view->disable(); $formData = $this->request->getJsonRawBody(); $user = new Users(); ...
1 vote
3 answers
4k views

phalcon MVC model how can delete data?

I am searching for a long time on net, but no luck. Please help or try to give some ideas how to achieve this. I want to delete some data like: $articleIds = '1,2,3,5,8'; $User = new User(); $...
1 vote
2 answers
330 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
38 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 ...
-1 votes
1 answer
122 views

What are pivot tables in layman terms?

I think my problem calls for a pivot table but I want to be clear before spending a huge amount of time trying to implement. I have not yet used pivot tables for any projects. I have a new project ...
0 votes
2 answers
1k 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
1 answer
402 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
0 answers
39 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\...
83 votes
5 answers
104k views

Error building : fatal error: pcre.h: No such file or directory

I'm just finished installing Ubuntu 13.10. I want try Phalcon, and when I build the source (phalcon.so), I have this error : from /home/fabrice/Downloads/cphalcon/build/32bits/phalcon.c:204: /...
0 votes
2 answers
266 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
4 answers
6k views

Phalcon : Exception: Wrong number of parameters

I want to execute a prepared insert : <?php function add_record($tab) { $champs= ""; $value = ""; $separateur =""; $ins = array(); foreach ($tab as $k =&...
1 vote
3 answers
9k views

PhalconException: NameController handler class cannot be loaded

Tried with the question but it didn't fix my issue. : Phalcon tutorial error PhalconException: TestController handler class cannot be loaded My application is in AWS ubuntu 14.0 and some pages are ...
0 votes
1 answer
201 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
2 answers
71 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 ...
1 vote
1 answer
261 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
1 answer
51 views

Is there a github repo release, branch or tag for Phalcon PHP 3.4 documentation and tutorials?

I seem to only find 3 branches at https://github.com/phalcon/docs [4.0, l10n_4.0, master]. The same thing seem to be true for the tutorials code documented on the web site under version 3.4. The code ...
0 votes
1 answer
78 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 == '...

1
2 3 4 5
41