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
3 answers

Delete multiple selected rows in phalcon

I want to delete selected multiple rows or all rows on a single click. But i cant figure it. how could i do this with my code? please edit my code for expected result. Here is my jquery for select all rows [Jquery] function…
munaz
  • 166
  • 2
  • 14
0
votes
2 answers

Phalcon multi module routes for other modules

I'm using Phalcon php. I have to try to use the multi modules architecture. I have a frontend and backend. The frontend app is the default module. But I don't understand something about the other modules. If I have 50 controllers in the backend with…
John
  • 4,711
  • 9
  • 51
  • 101
0
votes
1 answer

Phalcon image resize

In phal im using GD Adapter and my code sample is like this. Its resize image properly but not as expected. i want to resize image if its width more than 458px, this case its working ok but if the is lower then 457px it should not resize it should…
munaz
  • 166
  • 2
  • 14
0
votes
2 answers

What is wrong with this closure?

I have the next code snippet: $di = new FactoryDefault(); ... $di->setShared('mongo', function($di) use ($di) { return new Models\MongoDb\Manager($di); }); The code works fine, but PHP log says: Warning: Missing argument 1 for {closure}()…
ramiromd
  • 2,019
  • 8
  • 33
  • 62
0
votes
2 answers

How to retrieve similar tags data from db in phalcon?

I'm New in Phalcon. I decided to look at Phalcon php as an alternate php framework to Codeigniter. I'm Implementing a blog with tags. where first of im inserting tags value into a single column into the db. I follow tags plugin example from:…
munaz
  • 166
  • 2
  • 14
0
votes
1 answer

Phalcon multiple module doesn't work

I want to work with multiple modules. Therefore I created via phalcon command frontend and backend modules. To use this command phalcon module frontend I had to write a line in config.php 'modulesDir' => APP_PATH . '/app/modules/', After use…
betty39johnson
  • 151
  • 1
  • 2
  • 12
0
votes
0 answers

Process returned value in afterExecuteRoute

I want to do something with the returnedValue of a controller and action in phalcon here is my code: public function afterExecuteRoute(Dispatcher $dispatcher){ $controllerName = $dispatcher->getControllerName(); $actionName =…
charm
  • 45
  • 1
  • 1
  • 10
0
votes
0 answers

running dynamic PREPARE STATEMENT

currently I'm experimenting with http://buysql.com/mysql/14-how-to-automate-pivot-tables.html I need basic idea to run the dynamic sql below. table: +----+---------+---------------+--------+ | id | item_id | property_name | value …
Fazal Rasel
  • 4,446
  • 2
  • 20
  • 31
0
votes
1 answer

Controller usage get crash on Phalcon 2.0.9

So now, I code on my project using micro phalcon. It seems work without using controllers. By the time my code get bigger and bigger for increasing number of API routes. I put all of my codes in app.php. Is there any chance of me to get better…
0
votes
1 answer

How to work with Oauth2 in phalcon?

I am looking for some simple creation of Token to authenticate for each Rest Api call. Actually I am new to this authentication process, I gone through some websites and forums but I didn't get proper idea on where to store the token after login and…
John Sk
  • 107
  • 1
  • 2
  • 10
0
votes
2 answers

How to bind flashSession alert block to current button container in Phalcon framework?

I need to make alert blocks the children of any button container. In Phalcon framework there's only one instance of flashSession initialization: flashSession->output(); ?> This code can be used in specific place of html file. And it's…
netsplatter
  • 559
  • 3
  • 14
0
votes
1 answer

Phalcon - Asset Management - The collection does not exist in the manager

In my website i have some pages with jquery lightbox and some pages without lightbox, to load the packages i use following in my controller function which loads the package and assign that to the placeholder. public function loadJSLightbox2() { …
mahen3d
  • 7,047
  • 13
  • 51
  • 103
0
votes
2 answers

Micro Application Phalcon "/" route redirect to not Not found

I started to learn Phalcon Micro Application and generated the project using phalcon dev tools. I am facing problem for routes. Below are the codes for .htaccess and my routes, but whenever i go to any other root other than "/" , it works, but for…
user280960
  • 711
  • 15
  • 30
0
votes
2 answers

Nginx Configuration not working in RHEL 6.3 version

I am using Red Hat Enterprise server for hosting my phalcon based application. But after deployment the application is not working and showing "Please enable rewrite module on your web server to continue". I am using the below configuration in my…
MANOJ
  • 177
  • 5
  • 14
0
votes
2 answers

Installing phalcon on apps Mac OS

I am really struggling with getting phalcon up and running in my ampps installation. I believe its correctly installed on my system because when I run php -m, I see the phalcon module. However, when I put in a file (info.php)…
user3010617
  • 137
  • 1
  • 12
1 2 3
99
100