Skip to main content

Assets for ProcessWire

·233 words·2 mins
Hari KT
Author
Hari KT
Freelancer | Founder of Tripti and Tanvish | Maintainer of Aura for PHP, created by Paul M Jones

Processwire is a content management framework.

I was looking to change the directory structure of the Processwire.

1
2
3
4
5
|-- index.php
|-- installer.php
|-- README.md
|-- site
`-- wire

I am not the first person to talk on the subject. There are other threads like Installation paths and moving folders, Common practices

Anyway I thought of trying the same and for serving the js, css, images I wrote my first processwire module Assets

Some of the portions are from Aura.Framework and Aura.View

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|-- cli
|-- composer.json
|-- index.php ( which is moved to web folder )
|-- installer.php
|-- README.md
|-- site
|   |-- assets
|   |-- config.php
|   |-- hello.css
|   |-- install
|   |-- modules
|   `-- templates
|-- vendor (3rd party vendors from PHP, Eg: Aura.Includer )
|-- httpdocs ( you can name this folder what ever you like )
|   |-- index.php
|   |-- site ( css, js and images copied from realpath )
|   `-- wire ( css, js and images copied from realpath )
`-- wire
    |-- config.php
    |-- core
    |-- index.config.php
    |-- modules
    |-- README.txt
    `-- templates-admin

You also need to change the $rootPath in index.php accordingly. Hope someone will find it useful. I am releasing it under BSD-2-Clause

Related

Using Aura.Dispatcher in Silex

·527 words·3 mins
2 days back Paul M Jones wrote an awesome post A Peek At Aura v2 – Aura.Dispatcher the idea behind Aura.Dispatcher and how it was born. So today, let us try to integrate Aura.Dispatcher with Silex. This post is inspired by the comment made by Luis Cordova. Thank you. 1 2 3 composer create-project silex/silex --no-dev silexproject cd silexproject composer require aura/dispatcher dev-develop-2 I hope you have composer installed else get composer. I am not going to explain each and everything, the code is self explanatory. You can move the classes according to your wish (may be to another folder). I am trying to show a simple use case.

Looking at Aura v2

·919 words·5 mins
If you have noticed recently, there have been tons of commits from Paul M Jones for aura version 2. More standalone repos born. Everyone should try and give feedback as much as possible. Interesting stuffs split from Aura.Sql v 1.3 are Extended PDO, As the name says, it is an extended version of PDO. Good thing is it is PHP 5.3 compatible. If you have worked with PDO you know the good and bad. One of the difficulty is, it cannot use an array for an in clause.

Aura Framework Released

·67 words·1 min
It is a great feeling, and one of the happiest moment in my life when aura releases its stable framework. Aura is one of my first framework, which helped me to learn the inner working of a framework, how to create a framework, rather than playing with full stack framework. If you are interested to learn or contribute in the next version of Aura join the group.