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 3.0 to Phalcon 2.0 compatibilty

I had created a barebone Phalcon 3.0 project with Devtools 3.0, it worked fine on my machine Then I uploaded to my web host service, and it reproduced error message: Argument 1 passed to Phalcon\Di\Injectable::setDI() must implement interface…
0
votes
1 answer

Error in executing query in Phalcon but query works on phpMyAdmin

I have following table structure headline is_user_article is_approved updated_date created_date I want to sort record in such a way that if is_approved = 0, sort by is_user_article DESC, updated_date…
WatsMyName
  • 4,240
  • 5
  • 42
  • 73
0
votes
2 answers

Phalcon 2 output flash with twig template

I'm using twig as the template engine, works good, but I'm having an issue outputing the flash messages there. none of these show anything. {{ this.flash.output() }} Only {{ content }} works, but it outputs notice and php warning messages as…
0
votes
0 answers

Cannot find route from IndexController file to index.php file

I have a little problem launching index.php file witch is most important to launch a website. I downloaded whole webpage from one server and i want it to launch from XAMPP. I already have imported all databases and every server file in htdocs.…
0
votes
1 answer

Required to access the 'request' service, when use HTTP Method Restrictions -phalcon

I am new to Phalcon. Today I had an error, when I tried use the HTTP Method Restrictions. My router settings are like: $di->setShared('router',function(){ $router = new Router(); $router->addPost('/admin_cp/posts/add',[ …
kevindang
  • 37
  • 6
0
votes
1 answer

Phalcon Fatal Error on hasMany Relationship

I have this ERD below: Relations are as follow, Entity to Host is One to One Host to Portal is One to Many ( One Host to Many Portal ) class Entity extends Model { public function initialize() { $this->hasOne( …
user1149244
  • 711
  • 4
  • 10
  • 27
0
votes
1 answer

Phalcon rendering half the page/rendering weirdly

^What my page looks like. For some reason I get this error PHP Fatal error: Uncaught Error: Call to a member function getHash() on null in /var/www/html/coinpot/application/views/index/index.volt.php:146\nStack trace:\n#0 [internal function]:…
Recon
  • 608
  • 9
  • 18
0
votes
1 answer

Phalcon Tools model create alias is duplicated for FK to same table

I am trying to scaffold a model using Phalcon Tools. Problem is that I have various FK's that reference the same table, for instance: user_created and user_modified in User table. The model then aliases them both as follows: $this->hasMany('id',…
J. Reynolds
  • 151
  • 3
  • 14
0
votes
0 answers

PHP buit in server error

For local development I'm using the php built in server. Everythig works finde so far, but if in a url is a point or a file suffix the built in server returns a 404 even before it hitting my application Im using the phalcon framework This is my…
ghovat
  • 1
  • 2
0
votes
0 answers

PHP Phalcon Routing with file extension

In my PHP Phalcon 3 Application I have a custom route: $router->add("/{chapter}/{name}.{type:[a-z]+}", array( "controller" => 'images', "action" => 'getFile', )); I test the application local with PHP Builtin Server, other…
ghovat
  • 1
  • 2
0
votes
2 answers

Progress OpenEdge database with Phalcon

In one of my applications, I need to connect to a Progress OpenEdge database from Phalcon framework. I was looking for ODBC connection or ORM wrapper to the database. Is there any plug-in/adapter available for this task?
joy d
  • 408
  • 2
  • 13
0
votes
2 answers

Add Pre default text in phalcon flash messages

In phalcon default flash messaging service only provide with default error div.
Our message
But i want to add something inside div box like this.
0
votes
1 answer

Looking for case-insensitive in Phalcon Datatables Library (m1ome)

I use this Library : https://github.com/m1ome/phalcon-datatables This is how i use it : $resultset = $this->modelsManager ->createQuery("SELECT protId, protUsmsName, protUsmsId, protComsName, protAddress, protQty, protPrice,…
code K.O.
  • 171
  • 1
  • 1
  • 14
0
votes
1 answer

Commands in Dockerfile don't seem to be running

So i'm extremely new to docker, and I am having trouble setting up my docker environment. My Dockerfile looks like so FROM php:7.0-apache # Enable mod_rewrite RUN a2enmod rewrite RUN /usr/bin/apt-get update && \ apt-get -y install git php5-dev…
user3010617
  • 137
  • 1
  • 12
0
votes
2 answers

Webtools and developer tools issue on Phalcon framework

I installed phalcon 3.0.1-14 on an Ubuntu 14.04 box. Also installed Phalcon DevTools (3.0.1). Initially, I enabled the webtools and when I visit that page, some warnings appear all the time: Cannot bind an instance to a static closure in…
Roland Pish
  • 815
  • 1
  • 9
  • 21