phalcon | 基于Phalcon集成Composer,事件监听,中间件,MongoDB,Redis | Model View Controller library
kandi X-RAY | phalcon Summary
kandi X-RAY | phalcon Summary
基于Phalcon集成Composer,事件监听,中间件,MongoDB,Redis
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- publish message to queue
- do demo demo
- create qr code
- Mount resources .
- Set default environment variables
- Run after check routes
- Get Translator instance
- Before query is executed .
- Determine if a request is allowed .
- Index action .
phalcon Key Features
phalcon Examples and Code Snippets
Community Discussions
Trending Discussions on phalcon
QUESTION
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.
ANSWER
Answered 2021-Jun-13 at 10:59The issue was that I did not install phalconphp dev tools properly in the first place. I had multiple versions of php installed on my machine. So I uninstalled all unwanted versions of php and stuck with php7.2 and reinstalled phalcon and the dev-tools and everything worked fine.
Leaving it out there for someone in the future.
QUESTION
I'm trying to implement Sentry in our application.
I've used sentry/sdk
but got some errors (probably due to some PHP settings), so I'm now trying to switch the transport method.
I removed sentry/sdk
from my composer.json file and replaced it with sentry/sentry
and php-http/guzzle7-adapter
. Please note that in the documentation, they use the guzzle6-adapter
, but that gave dependency errors (I was already using "guzzlehttp/guzzle": "^7.3"
, so I need to use version 7).
When now trying to initialize Sentry, I get the following error:
...ANSWER
Answered 2021-May-26 at 14:23The docs are incorrect at the moment and reference the old dependencies required.
In case that you want to use Guzzle the following should work:
QUESTION
I try to use relationShip ManyToMany with PHP Pahlcon 3.4
My models :
...ANSWER
Answered 2020-Dec-01 at 16:42Because you didn't specified an alias during relation declaration.
QUESTION
I'm trying to install Phalcon on my RHEL 7 VM. I downloaded files and folders from GitHub and place them on my VM via WinSCP in /opt/
(using remi repo or git clone
from VM is blocked)
When I move into /opt/phalcon/build/
and try to sudo ./install
, I got a notice that PHP 5 is no longer supported, currently on my Red Hat, I have PHP 7.3.11 version running (checked using php -v
and config page).
I installed things like php-devel or gcc.
I have rh-php73-php installed and running on my VM
Maybe someone can help me, because I have no idea how to fix it.
...ANSWER
Answered 2020-Nov-19 at 14:16I have rh-php73-php installed and running on my VM
Sorry, but phalcon extension package doesn't exist for this PHP stack.
Using the full php stack from "remi-php73" repository or php73 SCL from "remi-safe" will give you "php-phalcon4" package with latest version of this extension.
using remi repo or git clone from VM is blocked
Use a proxy, or download packages and install them manually.
Tips: test installation from another computer, connected to internet, to get the full package list. You can even retrieve them later from /var/cache/yum (using keepcache=1 in yum.conf)
For memory, for a proper installation, follow the Wizard instructions
QUESTION
I recently entered in a company but I'm currently making an API in Laravel, but the old API was built with Phalcon, but some functions need to be working in a New Server, so I installed the phalcon 4 with php 7.4 but when I try to call the Constant Phalcon\Db::FETCH_OBJ, returns an error that shown
Fatal error: Uncaught Error: Class 'Phalcon\Db' not found in
But I the Router, Application and all others stuffs are okay for now, but I'm stuck in that problem, that never happened with me before
...ANSWER
Answered 2020-Nov-12 at 20:09In Phalcon 4 this is moved to 'Phalcon\Db\Enum'. The application was probably written in Phalcon 3.
https://github.com/phalcon/cphalcon/blob/v4.0.6/phalcon/Db/Enum.zep
QUESTION
I have three models with these relations :
Permission :
...ANSWER
Answered 2020-Nov-12 at 11:04I tried to find permission with Permission::find which is an instance of ResultSet. To fix this i used findFirst which is an instance of Permission.
QUESTION
I have the following in my code:
...ANSWER
Answered 2020-Oct-26 at 22:07There must be some issue with the gd installation on your host and/or the font file.
Internally, text()
calls PHP's imagettfbbox. If you create as simple PHP script that will use this method with your parameters, you could get a lot more information regarding what is going on
QUESTION
I currently have this in my Phalcon v2 code:
...ANSWER
Answered 2020-Oct-23 at 20:43Looking at this line in the sourcecode: https://github.com/phalcon/cphalcon/blob/65183349743e899977adc643f103b887612ffe98/phalcon/crypt.zep#L391, it looks like you add it when you set the encryption cipher.
->setCipher('aes-256-cfb')
The documentation says the default cipher is aes-256-cfb
, so it looks like you don't need to set the mode manually anymore.
QUESTION
I have this docker-compose config file:
...ANSWER
Answered 2020-Sep-02 at 03:54You need to remove the volumes declaration at this end of your docker-compose.yml. This is used for named volume not for volumes mapped with host directory Docker Documentation.
QUESTION
I'm using PHP 7.3 on my dev machine. I've installed the latest version of MPDF with composer. I've an action in my MVC framework (Phalcon 3.4) where I create an object of Mpdf. On the dev machine it works. I get my PDF on screen. This is my action code.
...ANSWER
Answered 2020-Aug-28 at 17:45In the library mPDF, an exception is throw but wasn't catched. Instead of HTTP 500, it resulted in a 404 error.
The library hadn't write permission on the temp folder.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install phalcon
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page