Developer Blog

You are currently browsing the archives for the PHP Framework category.


Archive for the 'PHP Framework' Category

Printing a webpage

Wednesday, December 6th, 2006

Webpage can be printed using window.print(). Here is the code:

<a onclick="window.print(); return false" href="http://ash-mvc.org/blog/webpage.html">Print This Page</a>

“return false” cancels the link to “webpage.html”.

When the hyperlink “Print This Page” is clicked, the page is printed if the printer is already installed.

RBAC Helps!

Sunday, November 5th, 2006

RBAC stands for Role-Based Access Control. The basic concept of the scheme is that it separates user’s attributes (roles) and user’s action of the system (actions/methods). In the whole process, the attributes are independently bound to a set of privileges of the system or application.

ash.MVC Recommendations 1.0 Released

Thursday, November 2nd, 2006

A new set of recommendations have been proposed to make the PHP application development quicker. User authentications and security issues have been taken into account.

The framework has been simplified further if you compare with the previous version:

  • Recommended folder structure has been made simpler. The decision has been made looking at the significant effort required for the programmer to pick different files from different directories. This will help programmer pick the files quickly for editing. It will improve the speed of development.
  • Earlier recommendations for structured code in the Model and View have been withdrawn. Instead, the new recommendations insist upon creating object-oriented code by employing two classes – model.cls.php and view.cls.php
  • The new recommendations propose to construct the content of HTTP Response through the View object rather than using “include” statements for HTML files within the Controller file.
    The current proposal insists on using DB class through inheritance from the Model class.

Now we are building a sample application (in the line of current recommendations) demonstrating the power and flexibility of the framework.

Get Download Files Review Project Dashboard Know Plan And Wishlist