PHP on Trax

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

PHP on Trax

Post by Luke »

http://www.phpontrax.com/

Anybody used it? Looks pretty similar to CakePHP. Opinions?
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

make your own?
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

MrPotatoes wrote:make your own?
Opinons ON the two frameworks.*
alvinphp
Forum Contributor
Posts: 380
Joined: Wed Sep 21, 2005 11:47 am

Post by alvinphp »

couldn't they have been a little more original then copying RoR. Plus Php On Trax = POT.

And to answer the question, it does seem a lot like cakePHP. Rest assured 20 more frameworks will come out claiming to be better, just like what happened with Java.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

alvinphp wrote:Rest assured 20 more frameworks will come out claiming to be better, just like what happens with language.
Fixed.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

PHP on Trax. Hmm... the name made me laugh.

Documentation looks more like a skeleton of what is going to be there. It's all empty pages at the moment :?

Indeed, there are a shed load of frameworks and I'm working on yet another; although ours has a control panel to it with a GUI (for admin tasks, creating new apps etc) so it's referred to as an application manager rather than an actual framework.
AshrakTheWhite
Forum Commoner
Posts: 69
Joined: Thu Feb 02, 2006 6:47 am

Post by AshrakTheWhite »

as far as i can see its a ripoff of script.aculo.us


the effects anyway :)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

alvinphp wrote:couldn't they have been a little more original then copying RoR.
The RoR framework is incredibly well thought out. Copying it to PHP is a very good idea.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

d11wtq wrote:PHP on Trax. Hmm... the name made me laugh.

Documentation looks more like a skeleton of what is going to be there. It's all empty pages at the moment :?

Indeed, there are a shed load of frameworks and I'm working on yet another; although ours has a control panel to it with a GUI (for admin tasks, creating new apps etc) so it's referred to as an application manager rather than an actual framework.
Interesting enough, I'm in the process of creating something similar which ties into Zend Framework. As of now each controller requires a model and view (among other things) and becomes very tiresome having to manually place each file, appropriatly named and such, into the respective directly. I plan on having it auto create methods I assign to the controllers aswell (database driven), which is also linked into an authorization system I've made.

Is this something similar or are we on seperate pages? If not, lets discuss (in a seperate thread) because I very much like this idea of an application manager.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

AshrakTheWhite wrote:as far as i can see its a ripoff of script.aculo.us
No, not at all. scriptaculous is an AJAX-toolkit and phpontrax is a rapid development framework (like cakePHP, both of which are based on Ruby On Rails) - two very different pairs of shoes. If you have a bit of a closer look at them, you'll see the difference.

Coming back to Ninja's original question: sorry haven't used phpontrax. I've used cakePHP, was impressed but was still to much in it's early phase for me to entrust it with anything serious. Maybe in 6 months or a year it's a truly mature project.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Jcart wrote:
d11wtq wrote:PHP on Trax. Hmm... the name made me laugh.

Documentation looks more like a skeleton of what is going to be there. It's all empty pages at the moment :?

Indeed, there are a shed load of frameworks and I'm working on yet another; although ours has a control panel to it with a GUI (for admin tasks, creating new apps etc) so it's referred to as an application manager rather than an actual framework.
Interesting enough, I'm in the process of creating something similar which ties into Zend Framework. As of now each controller requires a model and view (among other things) and becomes very tiresome having to manually place each file, appropriatly named and such, into the respective directly. I plan on having it auto create methods I assign to the controllers aswell (database driven), which is also linked into an authorization system I've made.

Is this something similar or are we on seperate pages? If not, lets discuss (in a seperate thread) because I very much like this idea of an application manager.
Fancy exchanging ideas? :)

Sounds like what we're doing. We have each "page" as a record in the database. A "page" can be a child of another page too and the RBAC system can apply to entire branches or just single leaves of the tree.

Let's say you have a page named "Welcome" at the root of your app, then you have pages "Settings" and "Statistics" as children of that page you'd have MVC components at:

Code: Select all

/<framework>/apps/<appname>/welcome/Model.php
/<framework>/apps/<appname>/welcome/View.php
/<framework>/apps/<appname>/welcome/Controller.php
/<framework>/apps/<appname>/welcome/template_runner.php

/<framework>/apps/<appname>/welcome/settings/Model.php
/<framework>/apps/<appname>/welcome/settings/View.php
/<framework>/apps/<appname>/welcome/settings/Controller.php
/<framework>/apps/<appname>/welcome/settings/template_runner.php

/<framework>/apps/<appname>/welcome/statistics/Model.php
/<framework>/apps/<appname>/welcome/statistics/View.php
/<framework>/apps/<appname>/welcome/statistics/Controller.php
/<framework>/apps/<appname>/welcome/statistics/template_runner.php
Model extends a few core components which provide some factory methods for things like Session, Request and User components.

View extends an Abstract class which loads in the template file and provides the template engine, forcing a "render()" method to be implemented.

Controller extends an abstract class again which catches requests to execute Unit Tests (JS and PHP) for the page in question, manages exceptions (nice pages -- developers, if logged in, get to see a Geshi excerpt of the code where the error was and the line highlighted), a "run()" method is forced to be implemented.

The template_runner.php is just a template file mostly with markup and a little PHP template syntax and a very small amount of Template Engine language.

Crating the files is a bit annoying but most of the (required) functionality lies in the abstract classes anyway. It's far from complete but the idea is that you'd be able to log in as "root" and access a control panel as part of the framework to perform such tasks.

Wow... I just rambled on a bit there and probably mentioned things I wasn't going to mention until first release :P
Post Reply