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

Can't find mvc folder in htdocs

I want to create aproject in phalcon. I downloaded and installed the phalcon and the phalcon web tools from this page. I see the phalcon extansion when execute this:. The problem is I don't see a phalcon…
coolest
  • 677
  • 1
  • 6
  • 17
0
votes
1 answer

Phalcon + AngularJS upload

I'm working in a form with AngularJS for the front-end and Phalcon PhP for the backend and I'm implementing a upload. I'm using this directive to do so. My problem is that I don't know how handle this upload on a phalcon php action. Would you have a…
André Luiz
  • 6,642
  • 9
  • 55
  • 105
0
votes
2 answers

Phalcon Rest Api

I'm trying to create Rest Api on Phalcon. The main question is - how to use BaseController in different controllers (it would be very conveniently get translations or info for logined user or check if user is logined in Base controller). When I do…
0
votes
0 answers

Phalcon is not recognised as an internal command

I'm trying to install phalcon for first time on Windows 8.1. I made the right config and I saw the phalcon ext in phpinfo(). Now I want to install the tools of phalcon. I installed them as in the documentation page:…
coolest
  • 677
  • 1
  • 6
  • 17
0
votes
2 answers

Trying to update phalcon to 3.0 on Debian 8 v-server

First of all: I only know some basics on linux, but I wanted to try out Phalcon. So I've rented a small v-server with Debian 8 and installed php7. At the time phalcon was at version 2.1.0r and I followed the tutorials until it seemed to work. Then…
Fanmade
  • 307
  • 4
  • 14
0
votes
1 answer

Downgrade Phalcon 2.0 to 1.3 OS X

I installed phalcon using homebrew but I need to downgrade for the time being to 1.3 and can't find any documentation on how to do this with on osx. Thanks
Arthur
  • 2,622
  • 4
  • 28
  • 46
0
votes
0 answers

Phalcon pagination break sorting order

After this pagination Phalcon auto pagination with jquery find out that query is not rendering its sorting order. and in my controller i try like [Controller] $bloger = Blogs::find(["order" => "datetime DESC"]); $numberPage =…
0
votes
1 answer

Phalcon 3 and PHP 7 breaking the existing site

My problem started right after I upgraded PHP to Version 7 and Phalcon to Version 3. Problem I m getting blank page, no error messages (Error is turned on), no `500 Internal server' error in console. The site used to work flawlessly before. I have…
WatsMyName
  • 4,240
  • 5
  • 42
  • 73
0
votes
1 answer

phalcon email filter not work

Here's the code which is not working: $email = $this->request->get('emailFromPost','email',''); What I want is getting a right validated email variable $email. While it's not working anyhow. Can anyone help me please?
X.Herry
  • 65
  • 1
  • 3
0
votes
1 answer

Trouble installing Phalcon with MAMP PRO - PHP 7.0.8

I am having some trouble installing phalcon on my Macbook Pro with MAMP. I used this guide to do my installation (https://www.extreme-creations.co.uk/blog/how-to-install-phalcon-php-framework-with-mamp-on-osx/), I also tried this guide…
J. Doe
  • 9
  • 2
0
votes
2 answers

models not loading on phalcon multi module

I'm trying to implement phalcon multi module with namespace. normally its working. but models not loading from its location(/apps/models/). if I paste all of my models file into controller dir then its working. It should load from models dir. how…
0
votes
1 answer

How to get the post parameters in before dispatch loop phalcon

We can access post data in controller something like this: $request = $this->di->get("request"); $data = $request->getJsonRawBody(); But is there any way to access POST data in services.php. I wanted to access it in an event: if ($event->getType()…
user1740757
  • 87
  • 1
  • 10
0
votes
3 answers

I need some understanding of the routing of a multi module Phalcon application

I need some help with a multi module Phalcon application. I followed the instructions as per https://github.com/phalcon/mvc/tree/master/multiple but cannot get the variable routing working for the non default module. $router = new…
Alvin Bakker
  • 1,456
  • 21
  • 40
0
votes
1 answer

How create multi site setup in phalcon with some shared controllers , models, views with out duplicating views folder?

I need to setup multisite in phalcon where I need some common functionalities to be done among all sites and also will have site specific. Say it would have some common controllers modals and views, if I need anything to be changed in one particular…
0
votes
1 answer

phalcon: how pass parameters to partial volt which setTemplateAfter

I have a partial view called head and I render this partial before index view and i got client information from model and then i want to pass this client model to head partial but i can not. this is my code : class IndexController extends…
Hanik
  • 317
  • 2
  • 6
  • 25