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
1 answer

Phalcon PhP - flash messages not showing

I'm having trouble showing flash messages with Phalcon PhP. Here is how I register the service: use Phalcon\Flash\Direct as Flash; $di->set('flash', function () { return new Flash(array( 'error' => 'alert alert-danger', …
André Luiz
  • 6,642
  • 9
  • 55
  • 105
0
votes
1 answer

phalcon use index volt except login page

I have an index volt for use every view but I want only don't use it in login page. every volt use index volt.
Hanik
  • 317
  • 2
  • 6
  • 25
0
votes
0 answers

Phalcon : multilanguage like laravel

i am making a website with phalcon framework. i want to make multilanguage. i did it but i don't do it like above : -app/ controllers/ models/ forms/ views/ langs/ en/ login/ …
Hanik
  • 317
  • 2
  • 6
  • 25
0
votes
2 answers

How to update phalcon's version on mac os?

Five days ago, Phalcon release it's new version to 3.0 . But my version was still 2.0.13. In Phalcon's doc site, the installation on mac was brew install php56-phalcon I've checked that phalcon version on homebrew's site was 2.0.13 too :( So anyone…
wizcheu
  • 840
  • 2
  • 9
  • 17
0
votes
1 answer

Installing phalcon dev tools on El Capitan

I have phalcon 2.0 and I used to use the phalcon dev tools with it. In my mac I had Yosemite and this weekend I updated to El Capitan to be able to work with some swift projects. The problem is that after the SO update my phalcon dev tools stopped…
André Luiz
  • 6,642
  • 9
  • 55
  • 105
0
votes
0 answers

WHERE clause on 'date' column

I've got table with column of type date. In my script, I generate date array as follows : $date2 = date('Y-d-m', strtotime($date2)); for ($i = 0; $i <= 7; $i++) { $date1 = str_replace('-', '/', $date2); $tomorrow =…
Nikita Semenov
  • 2,111
  • 4
  • 18
  • 31
0
votes
1 answer

How to execute stored procedure in loop

I am facing an issue. Please have a look at the below code: // $data having 1000 entries foreach($data as $key=>$value) { $resultStore = $this->db->query("call get_parents(" . $value['id'] . ")"); $dataStore =…
amol rajhans
  • 21
  • 1
  • 2
0
votes
1 answer

PHP - Two kind of menu in mvc framework

I use PHP Phalcon and I'd like to implement two different menus. First for regular user and second for admin. I want to have two menu templates to expand menus easily. Now I have something like this: //Main template: [...] if (session->role ==…
Robin71
  • 383
  • 5
  • 26
0
votes
1 answer

Phalcon datatables adapter where condition not working

I'm using phalcon-datatables this is a datatables adapter for Phalcon PHP. I have a where condition in my QueryBuilder, e.g : use \DataTables\DataTable; class TestController extends \Phalcon\Mvc\Controller { public function indexAction() { …
John
  • 4,711
  • 9
  • 51
  • 101
0
votes
1 answer

Datatable data inside another data

Problem I want to define conditions inside the Datatables.. So basically I use a session to filter the output of the Data. Case I logged in as John : | Name | Quantity | Action | | John | 400 | #**CanSeeEditButton** | | Mia …
code K.O.
  • 171
  • 1
  • 1
  • 14
0
votes
1 answer

Phalcon ExecuteQuery inner Join issues

This is Native SQL Query, thats work in MySql: SELECT a.pshdQty FROM production_stock_header a INNER JOIN (SELECT MAX(pshdId) AS pshdId FROM production_stock_header WHERE pshdAuditDelete = 'N' ) b ON a.pshdId = b.pshdId But, why in Phalcon this…
code K.O.
  • 171
  • 1
  • 1
  • 14
0
votes
1 answer

Get select element from a form

I am beginner when it comes to Phalcon framework and his Volt engine but i would really like to learn it. I am following their documentation and i am currently on their INVO project. And they have a database of products, and those products have…
Blitva
  • 3
  • 4
0
votes
1 answer

Phalcon Dev Tools - Database migrations

I would like to know if phalcon php has a tool to create and apply migrations such as django has. I django I create my models and to create the migrations script I just have to type this command: python manage.py makemigrations app_name . And to…
André Luiz
  • 6,642
  • 9
  • 55
  • 105
0
votes
1 answer

Wordpress create account and copy user information to another database

I'm using woocommerce and customer must be logged or create an account to buy. When they create an account I need to get the password to send the password to my web service and create a new user to my other database. This database is used for my web…
John
  • 4,711
  • 9
  • 51
  • 101
0
votes
0 answers

How select a select input type in phalcon form?

I have a select type in phalcon form $category = new Select('category', Category::findForSelect(), [ 'useEmpty' => true, 'emptyText' => 'Select...', 'emptyValue' => '' ]); It works on new form. When i…