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.
1,978
questions
0
votes
1
answer
17
views
Add solution cache file with redis [phalcon, php7.4-redis]
$di['cache'] = function () use ($di, $config) {
$serializerFactory = new \Phalcon\Storage\SerializerFactory();
$adapterFactory = new \Phalcon\Cache\AdapterFactory($serializerFactory);
$frontend = $...
-1
votes
1
answer
27
views
Error *170 FastCGI sent in stderr on Phalcon 4.*
2022/05/17 09:02:46 [error] 22404#22404: *170 FastCGI sent in stderr: "PHP message: PHP Deprecated: The 'compiledPath' option is deprecated. Use 'path' instead. in /vagrant/phalcon/public/index....
0
votes
0
answers
13
views
Phalcon Volt directory can't be written template engine on vagrant 2.9 and php-fpm-7.4
2022/05/16 07:41:39 [error] 10380#10380: *1 FastCGI sent in stderr: "PHP message: PHP Deprecated: The 'compiledPath' option is deprecated. Use 'path' instead. in /vagrant/mishop/public/index.php ...
0
votes
0
answers
16
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
0
answers
21
views
use Phalcon \ Session \ Adapter \ Database as Database not found
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
When I updated it, I found the ...
0
votes
0
answers
20
views
How to do show selected option in the phalcon volt syntax
I have an html code something like
<label>Is Pan Verification Enabled</label>
<select class="form-control" name="ispanverified">
<...
0
votes
1
answer
30
views
\ Mvc \ User \ Plugin not found
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
It changed as follows
I was ...
0
votes
1
answer
28
views
About \ phalcon \ mvc \ Application.zep
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
It changed as follows
cphalcon-3....
0
votes
1
answer
35
views
Uncaught Error: Class "Phalcon\Debug" not found
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 updated and started it
I was ...
0
votes
1
answer
30
views
how to install Phalcon on XAMP
I am following document instruction to install Phalcon on XAMP , from here
It is said to download x86 version for windows in document
but when I go to Download page there is not that version there ...
-2
votes
3
answers
50
views
how to use php and volt parameter together?
I am using Volt and PHP in phalcon volt partial
I want to iterate a loop and in the loop I have php code that accept a parameter
this is my code
{% for header in headers %}
<th>
<?=...
0
votes
1
answer
30
views
volt : pass variable to include from parent template
I am beginner with volt ,
I have a template that use a partials
like this
main.volt
<div>
hello to
{{ partial("partials/tst",["name":"kevin"]) }}
</div>
...
0
votes
2
answers
75
views
Using variable with string for new class initialization
I need to initialize new class Safe with constructor call.
The way it works:
$paymentPortal = new Safe($order);
The way it doesnt:
$portal = 'Safe';
$paymentPortal = new $portal($order);
I get error:...
0
votes
1
answer
32
views
502 Bad Gateway Error In Nginx using Phalcon and jQuery on submit
I'm having some trouble resolving a 502 error on an NGINX server using the Phalcon 4.0.x Framework. Specifically on forms that send Ajax data to the PHP controller. These do not seems to arrive, but ...
0
votes
1
answer
84
views
How to solve this error: Declaration error in Phalcon
When I run a simple project with Phalcon, It is Ok. But I'm going to run another Phalcon project that wrote by another person but I get an error: Fatal error: Declaration of Core\Config::toArray() ...
0
votes
1
answer
139
views
Fatal error: Uncaught Error: Class "Phalcon\Config" not found in Phalcon Php application
I installed Phalcon PHP version 5.0.0beta3 in my Ubuntu, because it's compatible with PHP 8.0, but when I run my application some Phalcon classes are not found, I already installed the psr module ...
0
votes
1
answer
118
views
I can't install phalcon php in macbook air m1 with monterey.. why?
I try to install Phalcon in a mac os m1 with monterey, but say this, anyone can help me?
0
votes
1
answer
149
views
Phalcon 5 - Sending post request to controller results in empty post data
I'm using a docker setup with php 8.0.15 + phalcon 5.0.0beta2 and i'm trying to do a simple post request using the fetch api to a route.
/* inside router.php */
$apiGroup = new Router\Group();
$...
0
votes
2
answers
308
views
Phalcon - Class "Phalcon\Config" not found
I've installed Phalcon and trying to create new project: phalcon project store. But instead of this I get these errors:
PHP Fatal error: Uncaught Error: Class "Phalcon\Config" not found in ...
0
votes
1
answer
56
views
Phalcon performance issue
I've picked up Phalcon framework because of the best declared performance. I was trying to analyse my application and discovered something really weird. I am using version 4.1.0.
Please advise if I am ...
0
votes
1
answer
26
views
How to call a Jasper report (.jasper) from Phalcon
I have many PHP scripts that call compiled Jasper reports (.jasper), using the PHPJavaBridge. I would like to convert all those scripts to the Phalcon framework, which gets complied into a C ...
0
votes
1
answer
20
views
Php phalcon join query doesn't return anything
I am trying to run a query in phalcon php
$c_inv = ClientInvoices::query()->columns(['supplier_invoice_number', ' client_payment_req_id',
'net_amount','markup_value','markup_type','...
1
vote
1
answer
45
views
How to pass an array to js button click in phalcon volt template engine
I am passing an associative array from my controller to my view and then iterating it on the template engine
<tbody class="text-center">
{% for inv in inv_list ...
0
votes
2
answers
244
views
Globally installed Phalcon PHP devtools do not work on Windows 10, Why?
I installed Phalcon PHP as described in https://docs.phalcon.io/3.4/en/webserver-wamp.
In this case the URL reads 3.4 because it applies alike for versions 4 and 5.
The WAMP server version is 3.2.6 ...
0
votes
0
answers
66
views
Phalcon PHP group by with if statement with query builder
is it possible to set group by parameter in a Phalcon query with an if statement, for example:
->groupBy(IF(Product.cluster_id IS NOT NULL, Product.cluster_id, Product.id))
I cannot seem to get it ...
1
vote
3
answers
654
views
Can't install phalcon php on Apple M1 Pro
I've been trying to install Phalcon 3.4 on my xampp PHP 7.3 setup (Macbook Pro 16 M1 Pro chip). Following I've tried:
Tried with macports, but it is installing the file in /opt/local/lib/php73/...
0
votes
0
answers
59
views
Phalcon 4 update/insert/delete several row inside table on database
I'm using Phalcon 4 and I have a table CompanyProduct table that contains the foreign key:
companyId, productId
123 1
123 80
And I have to insert or update or delete the row of this ...
0
votes
1
answer
37
views
Phalcon 4 data strange symbol during getJsonRawBody
I'm using Phalcon 4 and I send a POST in JSON format to Phalcon controller.
The JSON is:
birthday "12/12/2020"
country "ddf"
id "15bbde30-3714-11ec-95e7-8163123e4768"
...
0
votes
1
answer
70
views
Phalcon Controller $this->session and Phalcon\Session\Manager()
I'm using Phalcon v.4 and I have seen that are two ways to create the session inside a controller:
class PostController extends Controller
{
public function postAction(): Response
{
$...
0
votes
1
answer
69
views
Phalcon DB block database in order to check it is possible to insert data
I'm using Phalcon and I have a database in MySql. I have three tables in the database:
user: id, name, sold
company: id, name, cost
transactions: id_company, id_user, cost
An user has to do a ...
0
votes
0
answers
37
views
Phalcon installation on Mac by pecl but command doesn't exist
I have installed Phalcon on macOS Big Sur (v 11.4) using pecl install phalcon but the command Phalcon doesn't exit on the terminal.
I have also install the skeleton of the project by composer, but ...
0
votes
0
answers
47
views
: (colon) operator gives error in Phalcon route
I have recently upgrade phlacon to Version 4. And below route not woring.
http://domain_name/api/30-3-2020-10:00/getdata
$app->post('/api/{date}/getdata', function ($date) use ($app) {
$...
0
votes
1
answer
68
views
Phalcon paginate return model
I have a relational table.
I want to paginate one table and return as Model.
Because I need to model that belongs other model.
But $paginator->paginate()->getItems() always return Phalcon\...
0
votes
1
answer
431
views
pecl: command not found
Im trying to install Phalcon on my mac with Pecl. When I use any pecl command (for example: pecl channel-update pecl.php.net I get the error: Pecl: command not found. I have installed pear and to my ...
0
votes
2
answers
161
views
Phalcon.ini is loaded in phpifo but phalcon is not installed
I am trying to install the Phalcon4 with php7.4-fpm and I see that the ini file for phalcon is loaded in my phpinfo() here
But I am still getting the below error
Problem 1
- phalcon/incubator-...
1
vote
2
answers
56
views
How can i specify a hasOne relationship while there are many record in Phalcon
there are two tables,Task and Report
Task(id,name,latest_report_id);
Report(id,content,feedback,task_id);
one task has many report but it only has one latest report.I wanna how can I get this hasOne ...
0
votes
0
answers
62
views
Error routes in phalcon ..how to resolve this configuration?
Hello some one can help me i have installed phalcon 3.4 -v but the router dont work
correctly in my server localhost ??
[Router.php image]
[index.php image]
[Error page on localhost]
.htaccess in ...
1
vote
1
answer
38
views
Libmemached lagging not getting the cache value from the server after memcached rebooted
Am using phalcon libmemcached my php application. Once i deleted and recreate the memcache server after that i can set the token in the cache it is working and also i can get the token from the cache ...
0
votes
1
answer
51
views
Mongodb Phalcon how to search by ObjectId?
I need help with my rhyme;
Working in Robo3T
db.getCollection('aa').find({aa_id: ObjectId('5f10f1c013d7c9e017000033'),loai: 'mamnon'})
In phalcon not working
$docs= \aa::find([
[
'...
2
votes
1
answer
531
views
Phalcon failed install on mac m1
I followed those step to install phalcon on my mac m1, my php version is 7.4.20
step1: brew tap tigerstrikemedia/homebrew-phalconphp
step2: brew install php72-phalcon
step3: add this line to php.ini
...
1
vote
1
answer
216
views
Phalcon install failed
I want to install phalcon, so followed this step:
I download the phalcon_x64_vc15_php7.4_nts.zip.zip, from here(https://github.com/phalcon/cphalcon/releases/tag/v5.0.0-alpha.2)
I go to this pages(...
0
votes
1
answer
144
views
Phalcon 4.0 PHP - Controller handler class cannot be loaded
I am trying to create a basic application with Phalcon locally. I followed the documentation (https://docs.phalcon.io/4.0/en/tutorial-basic) and I created the same file structure and I copied the code ...
-1
votes
1
answer
84
views
Issues with phalcon dev tools
I'm new to phalcon and I'm having issues with phalcon dev tool commands.
When I type phalcon serve I get the following error.
Phalcon DevTools (4.1.2)
PHP Fatal error: Class 'Phalcon\Mvc\User\...
0
votes
0
answers
42
views
Phalcon - How to organize RESTFul application
I have a RESTFul application as documented https://docs.phalcon.io/4.0/en/tutorial-rest
Now I'm getting a lot of routes, all managed in index.php file and it's growing a lot.
How can I split index.php ...
-2
votes
1
answer
373
views
Phalcon - Composer install of Dev-Tools error: requested PHP extension -
composer install with file compose.json
{
"require-dev": {
"phalcon/devtools": "~3.4"
}
}
should install Phalcon Dev-Tools.
Actual Behavior
Instead, it ...
0
votes
1
answer
132
views
Phalcon Devtools error: generate controllers, models and scaffold not working (404 not found page)
(this text is automatically translated from Spanish to English.)
Hello, I would like to ask about this error that Phalcon devtools shows when generating a controller, model or scaffold:
my ...
-1
votes
1
answer
153
views
Composer won't install due to strange syntax in composer.json: "package/package": "other-package as x.xx.x"
This composer.json file won't install due to an inline alias. This line appears to be the culprit:
"jms/serializer": "xsd2php-dev as 0.18.0",
I'm not sure what this is trying to do....
0
votes
1
answer
146
views
Insert array PHALCON
I am trying to insert several data from an array but at the time of inserting it only inserts the last one I type.
This is my front-end code where I send the data
let payload = new FormData();
...
0
votes
1
answer
106
views
How do i use namespaces in phalcon framework?
So everything works fine if i use $loader->registerDirs() function, but if i use registerNamespaces function i get dispatcher error, that says: "IndexController handler class cannot be loaded&...
0
votes
1
answer
184
views
php phalcon use composer autoload.php not working
I want to use a class that installs by composer, but I don't get an error that the class does not exist.
use the file_exists to check if the file is being loaded but I always get false.
apparently ...