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 is an open source, full stack framework for and written as a extension, optimized for high performance. Developers don't need to learn or use the C language, since the functionality is exposed as PHP classes ready to be used.

Phalcon is loosely coupled, allowing developers to use the the whole or selected objects as glue components, based on the needs of the application.

Phalcon strives for performance while keeping the framework robust and easy to use.

Phalcon is written in , a language resembling or in syntax.

Downloading

The source for Phalcon is on Github. Compiled packages for Windows can be found on the download page.

Documentation:

  • Tutorial - Begin with a background of the project, go through installation and start by writing a simple hello, world! application. Move on rapidly to the MVC implementation, models, views and tie it all together.

  • API reference - All classes that the framework offers listed and documented.

  • Developer tools - Phalcon offers a set of command line tools that make creating and managing Phalcon projects easier. It is strongly recommended that you install and use them, as many answers and tutorials will depend on them.

  • Incubator - Includes PHP code snippets that are written from the community for the community. These snippets are designed to be drop-ins to current projects to extend the framework according to the needs of the developer.

Help And Support

Help can be found on the official forum, bugs and issues can be reported on Github. There is also a Discord server for informal discussion.

Sample Projects:

Some projects have been created to illustrate how Phalcon works and shared on Github. You can fork and clone these projects as a starting point for your own, or just to get to know the framework.

  • Forum - Perhaps the most practical Phalcon application out there, which is readily available to the public, requiring users to use their github account for authentication. Currently powering the official Phlacon forums.

  • INVO - Sample lightweight application showing you how you could use Phalcon to write an invoicing or accounting application.

  • Vokuro - Sample lightweight application demonstrating authentication and authorization using Phalcon.

  • MVC Examples - Micro MVC example as well as multiple modules examples (with or without namespaces).

  • REST example - REST Micro MVC application with middleware, utilizing .

There is also a list of live sites that are Powered by Phalcon.

2031 questions
3
votes
3 answers

Where exactly can I check error logs for 500 error?

I just uploaded my changes to server which contains a functionality of sending email to the user but on sending email i get Failed to load resource: the server responded with a status of 500 (Internal Server Error) error in console. I am unable to…
Imad uddin
  • 147
  • 1
  • 2
  • 11
3
votes
1 answer

Phalcon PHP : Jquery Datatable Server Side individual column filtering only gives first pages selection options

Here is my Jquery Server Side DataTable set up, correctly returning data from my database and the filtering does actually work, but the problem is that the selection box for each column only shows values off the first page of data. And i m using…
S.Void
  • 31
  • 3
3
votes
0 answers

Class entry requested for an object without PHP class - segfault

We've recently began seeing segfaults occurring with the following crash message: Class entry requested for an object without PHP class in .../StatementTransformer.php on line 140 The error occurs intermittently and I'm unable to recreate it.…
Mike Kaperys
  • 160
  • 1
  • 1
  • 9
3
votes
1 answer

Phalcon + Beanstalkd, how to link my controller?

I have a restful API powered by Phalcon that needs to background some tasks. In a MailController I have a method that fetches mails from Imap. As I need to put here some slow stuff, I want to process it through a job. My route calls a mailAction,…
Finkle
  • 53
  • 6
3
votes
2 answers

Exception: Parameter 'index' must be a int

I'm trying to insert a row in a MySQL database using PDO, and I'm using parameter binding, but I'm getting a stranger error. The important functions are: private static function getConnection() : \Pdo { $con = new…
ayrtonvwf
  • 304
  • 1
  • 8
3
votes
0 answers

Phalcon: Custom Access Control List not setting permissions

I am trying to follow an online tutorial in Phalcon PHP, and I'm at the stage where we are creating an ACL, and setting permissions based on the user's role (which is pulled from a session variable). However, even when a user logs in, and their role…
mpdc
  • 3,550
  • 5
  • 25
  • 48
3
votes
3 answers

Phalcon - Raw Query Insert Syntax error

I've got the following INSERT code : $reservationSuccess = $app->modelsManager->executeQuery( "INSERT INTO MastersReservedTime (master_id, service_id, date, time, desc) VALUES (:master_id:, :service_id:, :date:, :time:, :desc:)", …
Nikita Semenov
  • 2,111
  • 4
  • 18
  • 31
3
votes
1 answer

Phalcon - mock models for unit testing

I am trying to perform a Unit test in my Phalcon app. I have setup the Unit test environment according to the tutorial provided. What I am trying to do is to mock database adapter only for several functions. I want a mocked DB adapter, and when I…
masterFly
  • 1,072
  • 12
  • 24
3
votes
1 answer

How to foreach form to volt in Phalcon?

Please advise me, how to foreach the form elements to volt template engine in Phalcon ? This is my form class RegisterForm extends \Phalcon\Forms\Form : public function initialize(){ $usmsName = new Text('usmsName',[ …
code K.O.
  • 171
  • 1
  • 1
  • 14
3
votes
1 answer

Model could not be loaded while executing query

I have a query like this: $phsql = " SELECT s.id AS siteId, s.name FROM site s INNER JOIN profiles p ON s.id = p.siteId INNER JOIN users_profiles up ON up.profilesId = p.id AND p.name = 'admin' AND up.usersId =…
Volatil3
  • 14,253
  • 38
  • 134
  • 263
3
votes
1 answer

How tu use recaptcha google with phalcon framework

I'm still trying to add a recaptcha to my website, I want try the recaptcha from Google but I can't use it properly. Checked or not, my email is still sent. I tried to understand the code of How to validate Google reCaptcha v2 using phalcon/volt…
Falundrim
  • 63
  • 6
3
votes
1 answer

Encrypt with CryptoJs and Decrypt with Phalcon

I am trying to Encrypt some text from CryptoJS and decrypt it with Phalcon. I encrypt as follows, CryptoJS.AES.encrypt("MyText", 'key123'); Now to compare I encrypt the same value with Phalcon as, $this->crypt = new…
masterFly
  • 1,072
  • 12
  • 24
3
votes
1 answer

Phalcon speed query

Good day! I test phalcon in my project. I thought, it's very faster then others. But... Look at my test $app = new Micro($di); $app->get('/', function () use ($app) { $users = $app->modelsManager->executeQuery("SELECT * FROM TEST WHERE NAME IN…
PapaRoach
  • 51
  • 1
3
votes
4 answers

How to clear Phalcon 2.0 form element values

EDIT: This question is for old version of phalcon. Phalcon now has 3.1 version, on which this issue seems to be fixed. I have following controller action to sign user in. public function signinAction() { $form = new SigninForm; if…
traditional
  • 942
  • 10
  • 19
3
votes
1 answer

Forward anchor withing page in Phalcon

In Phalcon I finish one of my actions with forward response with parameters and I would need adding an anchor (e.g. to end the forwarded response with #blabla. return $this->dispatcher->forward(array( 'controller' => 'foo', 'action' =>…
Jan Drábek
  • 146
  • 6