DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > Fire up your webapp with PyroCMS

Fire up your webapp with PyroCMS

Jay Clark user avatar by
Jay Clark
·
May. 25, 10 · Web Dev Zone · Interview
Like (0)
Save
Tweet
7.36K Views

Join the DZone community and get the full member experience.

Join For Free

Lightweight MVC Frameworks like Codeigniter, CakePHP, and Symfony help speed up the process of building your web applications.  However, many times you want to get up and running with your websites even faster than these core frameworks can afford.  Often times, we find that content management systems can offer developers a simple and robust system for creating pages, themes, and layouts for your web applications.  It's not going to write the intricate logic of your web app for you, but using an extended CMS can send developers off in the right direction.  Let's talk about an extended CMS that I recently ran into that certainly seems to fit the bill, PyroCMS.

What is PyroCMS?

PyroCMS is a lightweight, themable, and dynamic modular content management system built as an extension to the CodeIgniter framework.  PyroCMS offers extended security features, customizable themes, web integrations for sites like Twitter, and a simple administration interface for managing your web application's content.

Requirements

To get started with PyroCMS, it's important to have the following software/services installed and ready to go:

  • An HTTP Server (i.e. Apache 2.x)
  • MySQL 5.x or higher
  • PHP 5.2.x or higher
  • PHP GD 2
  • cURL
PyroCMS comes packaged with CodeIgniter, jQuery, and the DWoo Template Engine, so there is no need to worry about downloading and installing those.

Installation

The installation of PyroCMS is fairly straightfoward:

1 - First, download PyroCMS and extract the files to your web-server.

2 - Apply the following file permissions to your files:

cd /home/pyrocms/public_html/
chmod 777 codeigniter/cache
chmod 777 codeigniter/logs
chmod -R 777 application/cache
chmod 666 application/config/config.php
chmod 666 application/config/database.php
chmod -R 777 application/uploads
chmod -R 777 application/assets/img/photos

3 - Run the installer, this can be done by navigating to the /installer page. This will ask you to set up the database and create your config files.

4- Lastly, get rid of the installer directory.

5 - Your installation is complete at this point.  Hit your web root, login as "demo@example.com" with the password "password" and make an admin user account.

6- Login with this new account, and then delete demo@example.com from the accounts database.

 

Creating a Module

For development, there are two kinds of modules that can be created: core modules, and third_party.  For each module directory, they can contain these directories: config, controllers, helpers, libraries, models, views, js, css, img. 

Every module contains an XML file called details.xml.  It is used to contain the metadata about the module, and whether it belongs to the frontend or the backend of the application.

With PyroCMS you have a total of four controller types: Controller, MY_Controller, Admin_Controller, and Public_Controller.  Each of these controllers can be used depending on whether or not the page is public, or requires a user to be logged in.  You can of course bypass the use of these controllers and use the normal CodeIgniter controller class, or find use for these extended controller types for added flexibility.

Creating a Theme

PyroCMS uses themes so that you can easily change the look and feel of your website. Strikingly similar to the RubyOnRails framework, PyroCMS has a master layout file and multiple partials that share its presentation logic between different views. Most of the information on creating views can be located in the Designer's Guide documentation. Themes in PyroCMS use the Template library, which aids in building complex views with the CodeIgniter framework.

Take a look at PyroCMS and determine if its extensions and added functions can help you to 'fire up' your web development.

Content management system Web application

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • A Guide to Events in Vue
  • How to Use Geofences for Precise Audience Messaging
  • Top 20 Git Commands With Examples
  • Building a Kotlin Mobile App with the Salesforce SDK, Part 3: Synchronizing Data

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo