want to join us? register, it's easy | help

browse by tag: frameworks

sort by

newest, oldest, most popular


category icon

CSV Export with Symfony 2

in PHP added by charliepage, on 8/6/2012 csv framework mysql php

A short tutorial on creating a CSV Export feature with the Symfony 2 framework. Included is some sample code for the controller action, the routing for the action and html twig template file.

comment save report
category icon

A pluggable compiler and virtual machine in Php. Dogfood yourself with your own plugins!

in PHP added by eriksank, on 30/4/2012 advanced tutorials framework oo programming php

If you think compiler construction in a scripting language, such as Php, is indeed more fun than doing it in traditional C, you will like the following article too! We keep building our little compiler and virtual machine in Php. It now built entirely from plugins. Now you can take 5 minutes to create your own small plugin, to extend and improve the compiler and virtual machine. This has never been done before.

comment save report
category icon

ToroPHP - a tiny framework for PHP

in PHP added by goodphptutorials, on 15/1/2011 framework php5

A new web framework for PHP which aims to be very small and fast

comment save report
category icon

CRUD using jQuery and Codeigniter - Part 3

in PHP added by iFadey, on 10/11/2010 AJAX codeigniter crud framework jquery read

In Part 3 you will learn: 1. How to filter form values to prevent XSS attack. 2. What jQuery serialize method do and how to use it. 3. How to send Ajax call to perform UPDATE operation using POST method. 4. How to use jQuery advance selectors to update table rows.

comment save report
category icon

CRUD using jQuery and Codeigniter - Part 6

in PHP added by iFadey, on 10/11/2010 AJAX codeigniter crud datatable framework jquery jqueryui pagination search sorting

In this part you will learn how to perform clientside search, table sorting, limit records display at a time, and clientside pagination using jQuery.

comment save report
category icon

Find your Files

in PHP added by goodphptutorials, on 22/4/2010 file handling framework oo programming php5 symfony

The best practices for finding files with PHP has evolved a lot in a the last few years. Back in 2004, one of the very first thing I did with PHP was porting the File::Find::Rule Perl module to PHP. File::Find::Rule is a great way to describe the files and directories you want to work with. I used the opendir, readdir, and closedir native PHP functions, and it did the job quite well. The PHP class was named sfFinder, and it can still be found in all symfony versions. Even if the class is bundled with symfony, I know that a few people use it for all kind of stuff, not necessarily related to symfony.

comment save report
category icon

A Lesson In Static Methods And Late Static Binding

in PHP added by goodphptutorials, on 21/4/2010 framework oo programming php5 zend framework

Until last week, I had never experienced what must have been incredibly frustrating to most developers: the fact that the self keyword in PHP refers to the class it is located in, and not necessarily a class that extends it. I personally ran into this problem when trying to extend Zend_Auth.

comment save report
category icon

Tips for working with Zend_Search_Lucene

in PHP added by goodphptutorials, on 10/3/2010 Zend advanced tutorials framework lucene search

A common misstep for a developer who is implementing Lucene for the first time is to stuff an overabundance of data inside it, reducing performance. For someone who doesn't have a background in natural language processing or information retrieval, some data normalization steps may not come naturally. This post specifically regards Zend_Search_Lucene, but much of my advice can be abstracted across various languages to other Lucene ports, such as Lucene.NET.

comment save report
category icon

Scaling Web Applications with HMVC

in PHP added by goodphptutorials, on 23/2/2010 framework hmvc kohana mvc php5 scaling

The last decade has been witness to the second iteration of web design and development. Web sites have transformed into web applications and rarely are new projects commissioned that do not involve some element of interactivity. The increasing complexity of the software being developed for the internet fuelled a requirement for structured and considered application design.

comment save report
category icon

Faceoff: CodeIgniter vs CakePHP

in PHP added by goodphptutorials, on 7/2/2010 cakephp codeigniter framework php5

In the red corner, we have CakePHP, the heavyweight fighter with guns to show. In the blue corner, we have CodeIgniter, the lightweight fighter, quick on the feet.

comment save report
category icon

Zend Framework on a shared host

in PHP added by goodphptutorials, on 10/1/2010 framework oo programming php5 zend framework

When you deploy a Zend Framework website to a shared host, you usually cannot change the DocumentRoot to point at the public/ folder of the website. As a result the URL to the website is now http://www.example.com/public/. This doesn't look very professional, so we'd like to remove it. The easiest way, given a ZF project created using Zend_Tool.

comment save report
category icon

Writing an easy to use A/B test helper with CakePHP and jQuery

in PHP added by goodphptutorials, on 1/11/2009 ab test advanced tutorials cakephp framework jquery metrics

Knowing what is driving the user experience is key to the success of an application. Subtle changes in the interface can cause dramatic shifts in user behavior. Here, A/B tests display two (or more) language choices or color choices to a user (any HTML). Metrics are measured in two ways - 1) did the user click on the button at all and 2) how long did it take them to find it from the moment the page has started loading?

comment save report
category icon

CodeIgniter and jQuery - Real Live Search with Pagination

in PHP added by goodphptutorials, on 22/10/2009 AJAX advanced tutorials codeigniter framework jquery pagination

In this tutorial, we will create a search page with CodeIgniter and jQuery. We’re not gonna create only a default search page using CodeIgniter framework, but also a real time search with jQuery’s support. And one more, enable GET method in CodeIginter that was stupidly disable by default.

comment save report
category icon

PHP Frameworks benchmarks

in PHP added by goodphptutorials, on 24/9/2009 benchmark framework

A nice visual overview of different PHP framework benchmarks

comment save report
category icon

Zend Framework: File upload using Zend_Form_Element_File

in PHP added by goodphptutorials, on 20/8/2009 Zend framework oo programming php5

This post will be helpful for all people who are wishing to get some practicle example for using Zend_Form_Element_File of Zend framework's Zend_Form.

comment save report
category icon

Why PHP Frameworks Matter

in PHP added by goodphptutorials, on 13/8/2009 frameworks oo programming php5

n a 1998 interview with Dr. Dobb’s Magazine, creator of the Perl programming language Larry Wall concluded his answer to the final question with a tip I’ve never forgotten, remarking, “Take a good look at what you want to do, and try to come up with the long-term lazy way, not the short-term lazy way.” [1] To paraphrase another Larry Wall-ism, in the programming world “laziness is indeed a virtue”, and if you’re not a lazy programmer, then frankly you’re not trying hard enough.

comment save report
category icon

Adding Custom Panels to the CakePHP Status Plugin

in PHP added by goodphptutorials, on 11/8/2009 cakephp framework plugin status

There are two different ways to add a panel '" using requestAction or Ajax. The general rule is if the panel is pretty fast to load and content is static use requestAction. If the panel takes some time or you want to be able to interact with it then use Ajax. For example, the logs panel uses requestAction since it's pretty quick to grab the log entries and you really don't need to interact with them. The Google Analytics panel, on the other hand, takes a few seconds to query the API and has options to change the timeframe, so it uses Ajax.

comment save report
category icon

Playing with Zend_Navigation and routes

in PHP added by goodphptutorials, on 10/8/2009 Zend advanced tutorials framework routes

I wanted to set up routes in such way that when a user requests a page, all requests for non-existing controllers/modules are directed to a specific controller (not the error controller). In other words, if we have controllers IndexController, FooController and PageController, anything but http://example.com/index and http://example.com/foo is directed to the PageController.

comment save report
category icon

PHP Framework Comparison

in PHP added by goodphptutorials, on 30/7/2009 Zend cakephp codeigniter framework

Yes this is yet another PHP Framework comparison. A few months back I was trying to decide which PHP framework to use on a project. I wanted to use a currently popular framework because that way I would get the best support from the devoted contributors and users. Choosing a popular or active project is important when dealing with open source tools.

comment save report
category icon

Cook up Web sites fast with CakePHP, Part 4: Use CakePHP's Session and Request Handler components

in PHP added by goodphptutorials, on 30/6/2009 cakephp framework mvc session

CakePHP is a stable production-ready, rapid-development aid for building Web sites in PHP. This "Cook up Web sites fast with CakePHP" series shows you how to build an online product catalog using CakePHP. Part 4 focuses primarily on the Session component of CakePHP, demonstrating three ways to save session data, as well as the Request Handler component to help you manage multiple types of requests (mobile browsers, requests containing XML or HTML, etc).

comment save report
category icon

Towards RESTful PHP - 5 Basic Tips

in PHP added by goodphptutorials, on 11/12/2008 curl framework restful

As we entered a programmable web of applications with APIs the decision to ignore HTTP gave us problems we're still dealing with today. We have an Internet full of applications with different interfaces (GET /user/1/delete vs. POST /user/delete {id=1}). With REST we can say /user/1 is a resource and use the HTTP DELETE verb to delete it.

comment save report
category icon

Cross-Domain Ajax with symfony

in PHP added by goodphptutorials, on 28/11/2008 AJAX advanced tutorials framework symfony

I recently released a new symfony plug-in, called sfWebBrowser. It's a lightweight HTTP client written in PHP, that doesn't require any additional module to work, and it opens a lot of interesting possibilities. As a matter of fact, it doesn't even require symfony to work - you can use it on any application, with any framework. Refer to its wiki page for installation instructions.

comment save report
category icon

PHP framework comparison benchmarks

in PHP added by goodphptutorials, on 3/7/2008 benchmark framework

The tests were run on a 1.8Ghz AMD sempron computer with 512Mb RAM running Ubuntu Gutsy (7.10) Desktop.

comment save report
category icon

Exceptions, you're doing it wrong

in PHP added by goodphptutorials, on 23/5/2008 advanced tutorials exceptions framework

Once again a post aimed at the PHP community, not so much of a rant but more of something I’ve seen done horribly wrong in a lot of PHP code recently

comment save report
category icon

Easy Ajax in symfony

in PHP added by goodphptutorials, on 7/5/2008 AJAX framework symfony

Symfony has Ajax helpers that make programming an elaborate interface a piece of cake. This tutorial will show you step-by-step how to create an Ajax-powered symfony application in minutes.

comment save report