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

Getting undefined variable when using Phalcon filter?

I am unclear here! I got error Notice: Undefined variable: filter when running below code! But when I remove declare public $filter line,It worked !!! Why ? use Phalcon\Filter; class Auth extends Component { public $filter;//remove this line…
Jack jdeoel
  • 4,554
  • 5
  • 26
  • 52
0
votes
1 answer

phalcon phql fetch vs fetch all

i am getting a fetchAll when using PHQL. is there anyway to set it to just a fetch? $result = $this->modelsManager->executeQuery ( $phql , [ "id" => $id ] ); i have to set the results to: return $result[0]; cheers.
diogenes
  • 1,865
  • 3
  • 24
  • 51
0
votes
1 answer

Phalcon PHP Ajax error model

When i'm trying to save my model like this if( !$myModel->save() ) I have to surround in try catch my condition if I want to get the errors messages... I can't check if the save() is false, because this will not returns the errors. How can I do to…
John
  • 4,711
  • 9
  • 51
  • 101
0
votes
1 answer

How to count the total documents in phalcon mongodb collection

I need to count the total users from users collection in phalcon that should not include some users. I have query the result in mongo shell: db.users.find({"_id": {"$ne": ObjectId("5704a9f3f0616e61138b4618")}}).count() And it works fine. But when i…
Bijesh Shrestha
  • 371
  • 2
  • 15
0
votes
0 answers

File uploads in Codeception(Phalcon2) acceptance testing

I am using Codeception(with PHP Browser) on a Phalcon2 project and writing acceptance tests. We have a form to create new users Form contain a file field to upload profile image If form successfully submitted, it getting redirected to /user/edit/n…
0
votes
0 answers

Install phalcon on osx

I did everything described here (for OS X) https://docs.phalconphp.com/en/latest/reference/install.html#mac-os-x https://phalconphp.com/en/download I also added extension=phalcon.so to the php.ini and restarted the webserver. I copied the compiled…
LaMiy
  • 103
  • 7
0
votes
0 answers

Phalcon 2.1.0 executeQuery() - subquery

$phql = "SELECT t1.* FROM (SELECT u.* FROM \App\Models\User as u) as t1"; $modelsManager = new \Phalcon\Mvc\Model\Manager(); $modelsManager->setDI($this->getDi()); $query = $modelsManager->executeQuery($phql); Syntax error, unexpected token (,…
kenikori
  • 11
  • 3
0
votes
1 answer

iOS Safari loads a wrong page

I've met a very strange bug when tried to open my web site http://akr-congress2016.ru/ in iOS Safari. Please see the screenshot below. It seems like some elements are loaded from a completely other web site. The new site is a copy of the old one,…
shelbalart
  • 43
  • 6
0
votes
1 answer

Blog archive with Phalcon

I am trying to create a blog archive with phalcon. but i cant figure it perfectly. in my blog table i have a field datetime which is like "2016-04-15 23:08:40" this format. i'm unable to separate year, month, date, and time. and how could i…
munaz
  • 166
  • 2
  • 14
0
votes
1 answer

Configuring PhpStorm 2016.1 with PhalconPHP 2.1

I have installed PhpStorm 2016.1 and configured it to use the Phalcon Devtools for Phalcon 2.1.0 RC1 also I configured the PHP language level to PHP 7 with the interpreter to PHP 7.0.5 (I have that version installed), I can run commands using the…
Ultranuke
  • 1,735
  • 2
  • 15
  • 21
0
votes
1 answer

Phalcon Multi module common model magic getter not working

I'm using Phalcon PHP with multi modules structure and I want to use a magic getter on my object but the getter is null when I'm trying to do a var_dump. Snippet Model Users namespace Apps\Common\Models; use Phalcon\Mvc\Model; class Users extends…
John
  • 4,711
  • 9
  • 51
  • 101
0
votes
1 answer

Phalcon Template "Undefined variable" (variable is set)

I want to show a template file (ajax include) with variable from controller. I want to create a simple shoutbox. development environment: PHP Version 5.6.19 (xampp) Phalcon 2.1.0r (php c-ext) Windows 10 IDE Netbeans This is the include part: (it…
0
votes
0 answers

Redirection form Micro application to Phalcon controller Not working

Im trying a application with phalcon and all the operations by web service .So Using Micro application for RestFul services. See below my code: Usertypecontroller.php public function createAction() { $ch = curl_init(); curl_setopt($ch,…
Jackhad
  • 411
  • 3
  • 8
  • 19
0
votes
1 answer

Phalcon multi module - volt not working

I wish use this template engine in phalcon 2.0. I created project via phalcon-devtools - should be fine. This template engine doesn't work. The default is *.phtml it works but I wish volt. Now project has this hierarchy: phalcon-project folder: -…
betty39johnson
  • 151
  • 1
  • 2
  • 12
0
votes
1 answer

Hyperlink does not work on volt in phalcon

i have a menu in my volt which is by default hidden by css, and its shows by jquery slide. its every links are getting its url but when i click its not go to that page. its work when i call its url by jquery. im not understanding whats the problem…
munaz
  • 166
  • 2
  • 14
1 2 3
99
100