sponsored_by

basic_features

  • low_overhead

    low_overhead

    low_overhead_description

  • mvc_hmvc

    mvc_hmvc

    mvc_hmvc_description

  • dependency_injection

    dependency_injection

    dependency_injection_description

  • rest

    rest

    rest_description

  • autoloader

    autoloader

    autoloader_description

  • router

    router

    router_description

low_overhead

low_overhead_title

  • low_overhead_1
  • low_overhead_2
  • low_overhead_3
  • low_overhead_4

Data & storage

  • orm

    orm

    orm_description

  • phql

    phql

    phql_description

  • odm_for_mongo

    odm_for_mongo

    odm_for_mongo_description

  • transactions

    transactions

    transactions_description

  • cache

    cache

    cache_description

orm

orm_1

                    
use Phalcon\Mvc\Model;

class Robots extends Model
{
    public $id;

    public $name;

    public function initialize()
    {
        $this->hasMany('id', 'RobotsParts', 'robots_id');
    }
}
                    
                

views_and_frontend

  • template_engines

    template_engines

    template_engines_description

  • template_engine_volt

    template_engine_volt

    template_engine_volt_description

  • i18n

    i18n

    i18n_description

  • forms_builder

    forms_builder

    forms_builder_description

  • flash_messages

    flash_messages

    flash_messages_description

template_engines

template_engines_1

                    
<html>
    <body>
    <div class='top'><?php $this->partial('shared/ad_banner'); ?></div>
    <div class='content'>
        <h1>Robots</h1>
        <p>Check out our specials for robots:</p>
        ...
    </div>
    <div class='footer'><?php $this->partial('shared/footer'); ?></div>
    </body>
</html>                    
                

more

  • acl

    acl

    acl_description

  • sharding

    sharding

    sharding_description

  • crypt

    crypt

    crypt_description

  • events

    events

    events_description

  • queueing

    queueing

    queueing_description

acl

acl_1

                    
use Phalcon\Acl;
use Phalcon\Acl\Role;
use Phalcon\Acl\Adapter\Memory as AclList;

// acl_2
$acl = new AclList();

// acl_3
$acl->setDefaultAction(Acl::DENY);

// acl_4
// acl_5
$roles = array(
    'users'  => new Role('Users'),
    'guests' => new Role('Guests')
);

foreach ($roles as $role) {
    $acl->addRole($role);
}
                    
                

polling_app

watch_demo

join_our_community

join_our_community_description