Page 1 of 1

PHP on Trax

Posted: Tue Oct 10, 2006 7:55 pm
by Luke
http://www.phpontrax.com/

Anybody used it? Looks pretty similar to CakePHP. Opinions?

Posted: Tue Oct 10, 2006 9:57 pm
by MrPotatoes
make your own?

Posted: Tue Oct 10, 2006 11:26 pm
by d3ad1ysp0rk
MrPotatoes wrote:make your own?
Opinons ON the two frameworks.*

Posted: Tue Oct 10, 2006 11:36 pm
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.

Posted: Wed Oct 11, 2006 3:35 am
by Jenk
alvinphp wrote:Rest assured 20 more frameworks will come out claiming to be better, just like what happens with language.
Fixed.

Posted: Wed Oct 11, 2006 4:01 am
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.

Posted: Wed Oct 11, 2006 5:06 am
by AshrakTheWhite
as far as i can see its a ripoff of script.aculo.us


the effects anyway :)

Posted: Wed Oct 11, 2006 6:30 am
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.

Posted: Wed Oct 11, 2006 1:00 pm
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.

Posted: Wed Oct 11, 2006 2:07 pm
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.

Posted: Wed Oct 11, 2006 3:14 pm
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