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
0
votes
2 answers

How to integrate Mustache template engine into Phalcon PHP application?

How to integrate Mustache template engine into Phalcon PHP 3 application to use it instead of built-in volt?
Roman
  • 1,946
  • 3
  • 20
  • 28
0
votes
1 answer

Unable to install phalcon 2.x on VPS from 1and1 hosting

I ran into a troublesome issue. I'm using 1 and 1 virtual private server redhat linux. The server's default PHP version is PHP 5.3. I do have installed PHP 5.5 on the server. I switch to PHP 5.5 using alias php='path to php'. I run command php -v…
user3186034
  • 45
  • 1
  • 10
0
votes
2 answers

How to connect Oracle DB with phalcon 3.0

I have a project with Phalcon 2.0 and Oracle 11g database and running successfully. I tried to upgrade to Phalcon 3.0 but it is not working.
Nobel
  • 17
  • 6
0
votes
0 answers

Phalcon Installation error on Windows server 2008 R2, PHP 5.5.24

my client's server is windows Server 2008 R2 with which they have installed PHP on IIS PHP version 5.5.24 I have tried to install Phalcon dll Extension x86, also added the "extension=php_phalcon.dll" to the php.ini file as per instructed on the…
AJAY
  • 17
  • 3
0
votes
3 answers

Is it possible to Debug with Phalcon PHP?

Is it possible to debug Phalcon PHP? I'm using Sublime 3 editor but am willing to use any editor if debugging is possible. I found a similar question on Stack Overflow but the only answer was a sales pitch about how great Phalcon is. Updated: I'm…
Rich Bianco
  • 4,141
  • 3
  • 29
  • 48
0
votes
1 answer

Phalcon PHP - Controller handler class cannot be loaded

I have an application written in Phalcon 2. This application runs locally normally, everything works. My problem is to make it run on an Amazon Ec2 Linux server. Some controllers work normally, the routes are OK. My problem is with some controller…
André Luiz
  • 6,642
  • 9
  • 55
  • 105
0
votes
1 answer

Phalcon Column name Prefixes

I have this users table below. In phalcon, is it possible to map columnnames so that i can remove all the prefix names when executing all model related processes? In YII, this is doable. so lets say, $user->id will point to…
user1149244
  • 711
  • 4
  • 10
  • 27
0
votes
1 answer

Phalcon DB Criteria in Model ORM

In Phalcon model is there a way to use SQL "IN" condition and other database criteria? For example, i want to execute this query in phalcon SELECT user_fullname, user_email FROM tbl_users WHERE user_id IN (1,2,3,4,5) I know you can use query…
user1149244
  • 711
  • 4
  • 10
  • 27
0
votes
2 answers

Initialize() method doesn't work in micro application in Phalcon

I want to do some actions before executing a controller method. But I can't because the initialize() method doesn't work in a micro application. I can check the way in Base controller and do some actions, but I think it is not valid.
0
votes
0 answers

Phalcon Oracle throws error in query execution findFirst

I am using a phalcon application connecting to the oracle db. When I am trying to call a native model function findFirst('id=23') its throwing Pdoexception and the query string became different, below is the query string. SELECT Z2.* FROM (SELECT…
MANOJ
  • 177
  • 5
  • 14
0
votes
2 answers

Phalcon Volt, how to print translation with a variable

I'm using Phalcon with Volt for my multilanguage application. I've setup a translation file which contains the following variables: 'numbervalidation-field' => '%field% is a number', 'Teams' => 'Teams', And this is how I print 'Teams is a number'…
Pablo Santamaria
  • 727
  • 1
  • 8
  • 20
0
votes
1 answer

Missing 'className' parameter

I am working on a old project change request and the project was developed in phalcon 1.2.6 verson. When I am trying to execute the application the application returns an error. After doing some R&D I found that the system did not find the config…
MANOJ
  • 177
  • 5
  • 14
0
votes
0 answers

Phalcon PhP currency volt filter

I've been reading Phalcon template engine documentation and so far I couldn't find a filter for currency. Do it exist in volt engine? If not, how can I create one? Thanks for any help!
André Luiz
  • 6,642
  • 9
  • 55
  • 105
0
votes
0 answers

Phalcon findby result count is -1

I have a working phalcon application. I moved it from windows to linux server everything works proper. But when i want to use phalcon model findby resultset it returns different result. I use Phalcon 2.0.13 $userRoles =…
0
votes
1 answer

Phalcon Volt Array is of string type

I have a Phalcon volt template I wanted to call in my custom helper, it will accept an array but the array sent to the helper is of string type. In my list.volt I have this code, {% set myfolder = data.foldername %} {% set key = data.folderkey %} {%…
user1149244
  • 711
  • 4
  • 10
  • 27