SartajPHP PHP Framework is very fast and flexible PHP Framework. It uses event driven mechanism on client server architecture. We can easily fire an event on server with hyperlink or ajax request.
<a href="index-detail-2.html">call detail event and pass value 2</a>
Join Discussion
https://gitter.im/sartajphp/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link
With Composer:---- Add to your composer.json:Then composer install OR composer update{ "require": { "sartajphp/sartajphp": "dev-master" } }
Here are some features of SartajPHP PHP Framework:-
Application :-
An Application in SartajPHP PHP is a php file where you can write your programming logic and control application html output to browser. Its is center point of SartajPHP PHP. You can create a web application with many applications. Application should be register in registery file otherwise your can not run it. Every application has unique Controller. The Controller is used to create hyperlink or url. You can set Authorisation of application. Every application use $page object of page class. Page Class is parent Class of every application. You can design application in any style like OOP or simple PHP module. SartajPHP PHP Framework provide free style mechanism.
Example BasicApp type Application:-
<?php
class index extends \Sphp\tools\BasicApp{
public function onstart(){
print "app start<br />";
}
public function page_new(){
print "new event<br />";
}
}
Global Settings :-
Every Web application has its own global settings which can be access in any where in project. You can set here Database,mail settings.
Temp File :-
Temp file is file where we can use SartajPHP PHP Framework components. SartajPHP PHP Frameowrk has also a component oriented mechanism and it is very powerfull concept to develop a professional web application. If you manage your web content in best way then you can develop a good application. You can create your own component and use it in Temp File.
Example of Temp File
<alert id="msgerr" runat="server" ></alert>
<div class="heading">Login Form</div>
<form id='form2' runat="server" action="##{ getAppPath('login')}#">
<table align="center"> <tr><td>
User ID </td><td> <input name="txtuserID" type="text" class="inputpass" runat="server"
funsetForm="form2" funsetMinLen="4" funsetRequired="" funsetMsgName="User ID">
</td></tr> <tr><td>
Password </td><td> <input name="txtpass" type="password" class="inputpass"
runat="server" funsetForm="form2" funsetMinLen="4" funsetRequired=""
funsetMsgName="Password"> </td></tr> <tr><td>
</td><td>
<input type="submit" value="Login">
</td></tr> </table>
</form>