Latest Articles
Here is the sequence of action that are performed during a typical request from backend. Comments, additions and corrections are very welcome.
Continued ...
Here is the sequence of action that are performed during a typical request from frontend. Comments, additions and corrections are very welcome.
Continued ...
Think of objects is critical (and natural) in some programming languages. In Objective-C, for example, there is no thing that can not be designed and molded to objects. In PHP this practice is less common, because the language is a bit recently, object-oriented, a little bit because it does not offer much in terms of OO programming, and a little bit because the same PHP programmers have perhaps fear of burdening or embarking on situations apparently solved by writing code more linear.
Continued ...
The framework WPDK began as a compendium and development aid on WordPress. It therefore does not want to replace the core, but it needs to deal with the current structure of the code. For a variety of reasons, some understandable and others a little less, WordPress core exposes a sometimes poorly structured. Lacks homogeneity, consistency, both at logic level and at the level of code style.
Continued ...
The overloading is characteristic of many object-oriented languages can distinguish two or more methods called in an identical manner from the differences of the parameters. Be careful because as indicated in the PHP manual:
PHP's interpretation of "overloading" is different than most object-oriented languages. Overloading traditionally Provides the ability to have multiple methods with the same name but different quantities and types of arguments.
However, if PHP was actually typed and would include overloading, you could write:
Continued ...
Continuing our tour on WPDK, today I want to explain the pattern used in the Javascript framework.
Javascript has many patterns , what we have chosen (a variant of the Module Pattern) believe maintains a good similarity with PHP, while still providing excellent advantages at the script level. The similarity I sought because some classes have their own counterpart Javascript in PHP, or vice versa.
Continued ...
Snippets
WordPress offers many ways to access the names of its folders and build new ones. Here is a helpful list with examples performed, to be more clear, from a subfolder located in a hypothetical plugin: Plugins start with plugins_url () useful to determine and build url when you write a plugin. plugins_url () 1234567891011121314 / / [...]
Continued ...
Using get_posts () you can select a post using the exact sequence of the arguments passed in the parameter post__in inputs. The order, however, is not consistent with the sequence shown as WordPress performs checks on the ORDER BY clause of the select, in spite of version 2.8 is available the value none.
Continued ...
Working with a Custom Post Type (CPT) it is natural to use the internal functions of WordPress to view and filter the posts of this kind. Whether you use the get_posts () is that it creates an object directly WP_Query, it's very comfortable to create loops on their own personal types of posts. WordPress also allows you to make filters [...]
Continued ...
When adding additional fields to pages and posts, or to their own Custom Post Type (CTP), you must record an action to store this new data. The implementation of this procedure is basically always the same, changing only the fields and how to save, the extra data can reside in a 'custom field', which is the table after [...]
Continued ...
Tips & Tricks
When developing a product (website, Blog, Facebook App) online, if you have not been able to build an infrastructure development / operations, it may be necessary under certain circumstances put "off-line" service, upgrades, debugging or interventions maintenance. WordPress, for example, can be turned off using simple and convenient Plugin, as Maintenance Mode.
Continued ...
If you are to develop in an environment where it is impossible to use debugging tools such as FireBug, such as the Apple iPad simulator Xcode, it can become frustrating to identify problems, one all wrong access to the properties of an object. Here the use of the works alert () is fundamental!
Continued ...
Apple recommends using the NSFileManager instance of the object and not its meotodo class defaultManager, as the latter returns an instance singleton, that is always the same pointer to object (not thread safe).
Continued ...
Tutorials
To complete the article How to: custom fonts on iOS 3.2 I propose the source of FontsBook, a simple iPhone application that displays in a table all system fonts, grouped by family.
Continued ...
How to insert and use personal fonts in our applications iPhone / iPad, only for iOS 3.2 +
Continued ...
The UIView class exposes a pointer to the layer (CALayer), subject to a lower level with endless potential. The layer provides a number of methods and properties related to the display of the contents of the view. For example, you can manipulate the contents of a view in three dimensional space. In the example it is interesting to carry [...]
Continued ...
I respond to Mirko asking me how to make the reverse proposed in How to get Latitude and Longitude in Objective-C. From the values of latitude and longitude, you can take advantage of the class MKReverseGeocoder to get a whole range of information, such as: the city, the state, the extended address, chap!
Continued ...
Let me demonstrate how it is possible to implement a simple slideshow of images with very few lines of code, using jQuery. This technique can be implemented on any type of website, the important thing is to include the jQuery library. I used this technique for a site built in WordPress, developed in a few hours for an event.
Continued ...
The MapKit framework provides a lot of useful features, except the return Latitude and Longitude from an address. In JavaScript, for example, you can use the service provided by Google Geocoding and discussed in Google Maps: how to get Latitude and Longitude from an address. On Apple iPhone, or iPad, you can, however, exceed [...]
Continued ...