Home kellton

Main navigation

  • Services
    • Digital Business Services
      • Digital Experience
        • Product Strategy & Consulting
        • Product Design
        • Product Management
      • Product Engineering
        • Digital Application Development
        • Mobile Engineering
        • IoT & Wearables Solutions
        • Quality Engineering
      • Data Engineering & AI
        • Data Engineering
        • Data Science & ML
        • Generative AI & ChatGPT
        • Visualisation & Analytics
        • Integration & API
        • RPA
      • Cloud Engineering
        • Cloud Consulting
        • Cloud Migration
        • Cloud Managed Services
        • DevSecOps
      • NextGen Services
        • Blockchain
        • Web3
        • Metaverse
    • SAP
      • SAP Services
        • S/4HANA Implementations
        • SAP AMS Support
        • SAP Automation
        • SAP Security & GRC
        • SAP Value Added Solutions
        • Other SAP Implementations
  • Platforms & Products
    • Kellton4Health
    • Kellton4NFT
    • Kellton4Commerce
    • KLGAME
    • tHRive
    • Optima
  • Industries
    • Fintech, Banking, Financial Services & Insurance
    • Retail, E-Commerce & Distribution
    • Pharma, Healthcare & Life Sciences
    • Non-Profit, Government & Education
    • Travel, Logistics & Hospitality
    • HiTech, SaaS, ISV & Communications
    • Manufacturing, Automotive & Chemicals
    • Oil,Gas & Mining
    • Energy & Utilities
  • Insights
    • Blogs
    • Brochures
    • Success Stories
    • News / Announcements
    • Webinars
    • White papers
  • Careers
    • Life At Kellton
    • Jobs
  • About
    • About Us
    • Our Partners
    • Our Leadership
    • Testimonials
    • Investors
    • Privacy-Policy
    • Contact Us
Search

Breadcrumb

  1. Home
  2. Blogs
  3. Automated Controls for Application Development ...

Automated Controls for Application Development on the PHP Platform

Product Engineering
Mobility
August 23rd , 2017
Posted By:
Kellton
linkedin
Automated Controls for Application Development on the PHP Platform

Related Post

How blockchain-driven innovations can transform global supply chains
Blog
Breaking down barriers: How blockchain-driven innovations can transform global supply chains?
25 May, 2023
Generative AI and ChatGPT
Blog
Redefining the game: Generative AI and ChatGPT unlock new possibilities across industries
11 May, 2023
android testing frameworks
Blog
Best Android automated app testing frameworks in 2023
08 May, 2023

Phalcon, a high-performance web framework developed on PHP, is based on the model-view-controller (MVC) pattern. This framework has its own benefits and limitations. While using Phalcon, developers have to write code for creating models and controllers for the specific application due to its varying features. Additionally, they have to perform input operations from the HTML document or form to create views for each table in the database.
 

The main challenge arises when the developer has to insert validations according to datatypes for each column in the tables, write code for controller and models, and define actions for saving form values. We have recently contributed a module to the development community phalcon_codegenmysql that enables smooth, agile, and quick development of Phalcon applications. Using this module, developers can easily:
 

  • Create new controllers and actions
  • Append new actions in existing controllers
  • Create models for the selected tables automatically, if they have not been created earlier
  • Create views for the actions defined in the corresponding directory. These views are created for the input form with respective table columns having validations
  • Submit data using forms after creation


How to Install the Module?


To install this module, developers need to follow the following steps.


1. Install PHP, MySql, and Web server—Apache2, NGINX—on your machine. If you are working on the Debian/Ubuntu operating system, you have to perform the following steps:
 

            1.          apt-get install tasksel

            2.          Run command tasksel and choose LAMP server. Follow the instructions

If you are working on the Windows operating system, you need to Install Xampp or wampp on your system.

 

2. Ensure that your system has the latest version of Phalcon. Install on Ubuntu and Windows

 

3. Clone phalcon_codegenmysql on your webserver directory

           

4. Go to config file—phalcon_codegenmysql/app/config/config.php—and edit
                                    

                        #configure username and password to use code gen

defined('USER_NAME') || define('USER_NAME', 'your username');

                        defined('PASSWORD') || define('PASSWORD', 'your password');

           

                                     #edit database details

                                     'database' => [

                                'adapter'     => 'Mysql',

                                'host'        => 'localhost',

                                'username'    => 'your mysql root username',

                                'password'    => 'your password',

                                'dbname'      => 'your database',

                                'charset'     => 'utf8',

                            ]


5. Open URL http://localhost/data and enter your username and password to see the list of tables.
 

Automated Controls 1


6. On the table listing page, choose tables and fill details by clicking expand (+) button before the table name and submit. You can give existing controller name in order to append your action in the controller.


The model is created for the table if it is not available and the view is created in the view folder of the controller directory.
 

Automated Controls 2



Automated Controls 3

7. Once the submit button is pressed, controller files, model files, and view files are automatically created.
 

Final


                                                        LearnMore

We have technical expertise in providing PHP development solutions from planning, assembling, and implementation, making us the best choice for our clients.

Posted By:
Kellton
linkedin

Want to know more?

android testing frameworks
Blog
Best Android automated app testing frameworks in 2023
08 May, 2023
Blog image
Blog
10 Best Backend Web Development Frameworks for 2023
17 Apr, 2023
Blog image
Blog
What is Kubernetes? Discover the top 3 Kubernetes trends on the rise in 2023
20 Mar, 2023

Leading you through Digital Transformation journey

North America: +1.844.469.8900

Asia: +91.124.469.8900

Europe: +44.203.807.6911

Email: ask@kellton.com

Footer menu right

  • Digital Experience
  • Data Engineering & AI
  • Nextgen Services
  • About
  • Contact

Footer Menu Left

  • Product Engineering
  • Cloud Engineering
  • SAP Services
  • Careers
  • Success Stories

© 2023 Kellton