Results 21 to 30 of 41
-
18th Jun 2012, 09:54 AM #21MemberWebsite's:
tehMoviez.com 0Senes.com GeekFaceGames.comi like the fact that it uses all new php standards.
JokerHacker Blog
JokerHacker PHP coding Service // back again!
CurlAxel PHP Download Accelerator
hardly remembering the milk :p
-
18th Jun 2012, 11:49 AM #22OPRespected DeveloperWebsite's:
X4B.org
-
18th Jun 2012, 02:11 PM #23MemberWebsite's:
bypassx.comI?m not the most skilled php coder ... and i?m little lost, never used a Framework before and i have some questions.
Wich is minimun php version required by the framework?
I downloaded the framework and the blog example. Now should i put framework files combined with blog files?
I see lots of files ".project" , ".buildpath", etc... a folder named ".settings".
All those files are trash and can be deleted correct?
Sorry for those dumb questions, i?m trying to understand how to work with the framework and perhaps give a hand with bug reporting, documentation, etc... but first i need to understand how to work with the framework.
And while i writing previous lines arrived to my head one idea, perhaps supply the most basic help to start is good (before enter in advanced documentation):
- Installation guide.
- Hello world example.
And i was searching a little on google about PHP frameworks, and a i have new question, which advantages have this framework over competitors (codeigniter,Yii, etc...)? (i?m speaking about advantages different of open source and free).
Thanks in advance for your atention.
-
18th Jun 2012, 02:40 PM #24OPRespected DeveloperWebsite's:
X4B.orgMinimum PHP version: 5.3.3
MySQL requires the innodb engine to be enabled. Basic MyIsam support is complete but its not as stable.
.project, .buildpath and .settings are part of Zend Studio and only needed if you use that IDE. For execution and for other users these can be ignored or deleted.
1. To install radical blog download radical php
2. Then copy radical blog into the same folder (overwriting and merging)
3. You will also need to import the SQL
4. Then edit the app/config.php
The line you need to edit is
Code:$_SQL = new Model\Database\DBAL\Adapter\Connection('db', 'root', 'passwordmysql', 'radical_blog');
I havent had a chance to test this specific package, but it looks right. If you have problems ill install it on my testing server. I expect there may be problems with relative site roots, Im not sure if that code is complete yet (e.g putting it in a folder like /radicalblog).
radical-blog will take the place of one of the more advanced examples
radical-monitor will be a moderate one (showing off mostly command line stuff)
radical-myip is what I plan to make into the first beginner tutorial. I expect alot more applications suitable for examples will be made by other users when this takes off.
While these apps are simple designs to develop once you know what you are doing (and they also so serve as a tool for me to figure out what I can improve in the framework) it takes alot of time for me to make them perfect examples and comment them etc.
The framework is probably most similar to django or lithium, but really its unique. Its everything Ive wanted in 10 years of programming but never been able to find (or hasnt been possible in the past -- e.g real OOP)
Neither an Installation guide or a Hello world example have been written as the framework isnt ready for beginners yet (atleast not unassisted to get over the initial hurdle of lack of documentation). Although writing these documents is probably something a contributor (Ive been hoping to find some helpers for a while) could do.
I personally love inline (phpdoc) documentation, which then is parsed out to form the basis of documentation (e.g like php or jquerys function reference), thats why I am focusing on in code documentation first.
EDIT: Oh and just be aware this is beta software, I just noticed that some SQL builder changes have the search subsystem.
If you cant get it to work it may be due to a fault in the code (its been mostly tested on linux and in semi professional - professional setups (never on XAMPP etc)) so I fully expect there will be bugs... its alpha and pre-stable (1.0.0 will be the first stable)
EDIT2: Fixed the search bug (which also affected categories and tags), simple one line fix so I re-uploaded.
-
18th Jun 2012, 03:03 PM #25Member
Hi,
I don't know if you have included any prepaired sql statements mechanism in your framework but if not you may add something like this.
-
18th Jun 2012, 03:18 PM #26OPRespected DeveloperWebsite's:
X4B.orgCurrently I havent added Prepared statements (they will probably be added for those who like them in the future). This is mostly because it is rare that we access the database directly (you could write without knowing anything but basic SQL). Two current interfaces (other than direct database querying).
1. Query Building
Code:$sql = $this->logTable->select('log_id,log_status,log_to') ->where(array('host_id'=>$host->getId())) ->order_by('log_to','DESC') ->limit(1); //or for update etc $sql = $this->logTable->update() ->where('log_id',$row['log_id']) ->set('log_to',\DB::toTimeStamp(time())); //also this can be done directly on non modeled tables using DB::Select();
2. Models
Code:$user = \X4B\DB\User::fromId(1); $user->setName('admin'); $user->Update(); //or $users = \X4B\DB\User::getAll(); //and / or $users->sql->where('user_username','tester'); foreach($users as $user){ echo $user->getEmail(),'<br />'; }
Personally I dont think prepared statements are necessary when we provide query builders, these builders are SQL injection proof btw. The only benifit to using prepared satements is probably performance, and for that we will probably add it.
-
18th Jun 2012, 05:10 PM #27Member
Well people with limited knowledge wont even make use of this, but for more "serious" programming i think this is a must.
I haven't seen the sql builder yet so i don't know how does your code prevent sql injections, especially for example when there is multibyte chars involved!
-
19th Jun 2012, 04:53 AM #28OPRespected DeveloperWebsite's:
X4B.orgmutibyte chars arent an issue, mysql_real_escape_string handles escaping in the database's character encoding. The database subsystem makes up around 1/3 of all of the code, its very well developed.
ActiveRecord and ORM implementations are industry standard now days, they are amazing (e.g Doctrine -- but its overly bloated), SQL builders are secure since you never deal with strings.
-
19th Jun 2012, 12:43 PM #29(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comonly just saw this.
not bad, looks like you've done a good job.
though there are endless amounts of frameworks out there, many under far heavier development than yours (meaning more features, support, documentation, everything).
its good to make your own to learn, but difficult to have any benefit over any other framework. personally I use kohana these days.
overall though, good job, had a look at the code and its pretty good. keep it upProjects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
-
19th Jun 2012, 03:27 PM #30OPRespected DeveloperWebsite's:
X4B.orgFirst of all thanks, while I acknowledge that there are tons of large frameworks out there (and that was the main reason it took me a year before I even posted this publicly) I dont believe this is a reason to not develop new ones. I don't think there is any framework out there that meets the same criteria or style of this framework. And while we are underdocumented, supported etc we are a very young project which much to go (I dont expect a stable release until atleast a year from now). I definitely understand the size of this project, It was initially quite a deterant to the undertaking but none the less here we are in early alphas.
This framework shares alot of common features with Kohana, in fact it even includes a modified version of the Arr class from it. I have used Kohana extensively for work, howeaver it has alot of faults (overriding order of system>modules>app is the major one, resulting in large app small module development instead of the more efficient modular pattern). If you think a feature is missing you are quite welcome to fork and write them in, or improve existing ones. I do pull from forks where the work is up to par.
Also be careful stating the features argument, I think you would be surprised at the number of features complete, most aren't documented yet and as such are unknown to most people.
Basic documentation is certainly high on the priority list, Its one of the 0.2.x milestones to complete basic documentation for most user facing classes. The other main milestone is bugfixes, we all know how fun bug hunting is.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
php-APP - Easy php APP framework
By devNULL in forum Web Development AreaReplies: 1Last Post: 17th Apr 2012, 05:14 AM -
can't install .NET Framework 4
By Jiung in forum Technical Help Desk SupportReplies: 3Last Post: 4th Apr 2012, 03:17 PM -
Genesis Framework - WP help.
By BattleDuty in forum WordpressReplies: 6Last Post: 20th Dec 2011, 05:34 PM -
Run .net framework app without it
By pankaj in forum Web Development AreaReplies: 12Last Post: 11th Jul 2010, 12:27 PM -
Drupal Best php Framework
By shakiljavid in forum Tutorials and GuidesReplies: 7Last Post: 17th Jun 2009, 02:15 PM
themaCreator - create posts from...
Version 3.22 released. Open older version (or...