BAC Software Consulting Blog

CakePHP- What Makes it the #1 Choice for Large Scale Web App Development

The rapidly growing success and popularity of PHP development has given birth to numerous frameworks which have been effectively utilized for developing web services and solutions with a difference. CakePHP is one such PHP framework, which is open source in nature and comes loaded with a set of libraries for the web programming professionals. Today, in this post, I will be looking at some of the most remarkable features of CakePHP which have made it the first preference of developers who are looking ahead to develop large scale web applications using PHP. So, let me walk you through the must-know features of CakePHP.

1. Complete Adherence to the MVC Pattern

As one of the most critical models followed by CakePHP, MVC helps in saving data and connecting multiple queries into a single database. MVC pattern also allows you to update, delete, insert and read the model class in addition to viewing the growth of project. Since large scale websites and web applications need to have a good separation of logic from the presentation, it is the compatibility with the MVC model that makes CakePHP the right fit for developers.

2. Does NOT Require any Configuration

Since CakePHP does not include any complicated XML files, it is quite easy to get started with web development. With no configuration required for CakePHP, you just need to set up your database and head on with development of your web application or website. This saves a lot of your precious time that is otherwise invested in configuring the software using multiple steps.

3. Code Reusability is a Major Plus

As a web programmer working on the CakePHP framework will offer you the freedom of using pre-written code snippets in different web development projects. That means, instead of focusing on writing codes, you can now find time to concentrate on the creative or logical aspect of your web project. Code snippets can be easily fetched from different sources and conveniently integrated with ongoing website/app development projects.

4. A Wide Range of Built-in Features

In CakePHP, a majority of features which are required for building an outstanding website/app are already built-in. Whether it is the database access, authentication, validation or translations; everything is being impressively packed in this robust MVC compatible framework. With everything available by default, you will find more time to look into the specific requirements of your clients with a guaranteed fastest turnaround time.

5. Fully Compatible with the ORM (Object Relational Mapping) Technique

CakePHP development is completely compatible with the ORM technique. That means, all the data is being stored in the form of tables and later showcased as classes. Hence, relationship amongst different tables is being defined using these classes. Additionally, both validation and callback definitions can be easily predefined with the CakePHP framework.

6. Equipped with the CRUD (Create, Read, Update, Delete) Functionality

For easy data management, CakePHP framework has been loaded with the CRUD (Create, Read, Update, Delete) functionality. In other words, you will be able to create, read, update and delete multiple entities within the web development system. It is interesting to know that a majority of data management issues can be easily resolved by mere implementation of CRUD. With this functionality already existing in the CakePHP framework, you can go ahead with building cost-effective and effectual websites and web applications.

7. Quick Web Development is Guaranteed with CakePHP Framework

The numerous built-in features of CakePHP allow developers to build prototypes for their varied clients in a less time-consuming way. These features also create room for rapid web development, allowing you to build applications within the assigned timeframe, thereby avoiding any delays.

8. Completely Safe and Secure

With specific tools available for input validation, form tampering protection and prevention of XSS, CSRF protection and Form tampering, you can find it convenient to build safe and secured web applications for your esteemed clients.

9. Free and Flexible Licensing

Just like a majority of other PHP frameworks, even CakePHP is being widely used due to its free and flexible licensing. As an easy to install framework, CakePHP has free licensing, making it one of the best options for development of complex commercial applications.

10. Supported by an Active Community of Developers

Having chosen CakePHP framework, you can rest assured about receiving quick and accurate answers to all your queries regarding the correct usage of this widely used PHP framework. With the active and friendly community of developers ready to listen and answer your questions, using CakePHP framework would become a complete breeze.

Conclusion

So, if you are planning to build a large-scale application that is robust and well-structured, nothing can beat the CakePHP framework. Here’s hoping the aforementioned pointers would have encouraged you to use the framework right away.

How To Turn Your WordPress Blog From NoFollow to DoFollow Without a Plugin

How To Turn Your WordPress Blog From NoFollow to DoFollow Without a Plugin

In this tutorial, I will show you how to easily turn your WordPress blog from the default NoFollow to a DoFollow blog without the need of a plugin. Why not turn your blog into a DoFollow blog and get more visitors, more traffic and eventualy more recognition in the Online community. Probably you already have seen some blogs displaying the DoFollow image and you wonder how it is done and what it really means. Read my next tutorial for a closer look at DoFollow versus NoFollow.

What are NoFollow and DoFollow?

DoFollow is a term that does not really exist. It is a slang term given to Websites that are not using nofollow. nofollow is a value that can be assigned to the rel attribute of the HTML anchor tag to instruct some search engines not to pass on any influence to an outbound link. The nofollow value was intended to stop comment spam in blogs. Commenting is recognized as a good way to get one way backlinks. But it has been abused and thus the creation of the nofollow value back in 2005.

You might already know that NoFollow blogs do not carry any PR value to other Websites through commenting. If your blog is DoFollow then comments made by your users get Link juice, meaning that your blog passes on the PR value to the commenter.

Should You Set Comment Links To DoFollow?

One way to encourage your readers to comment on your blog is by making your blog DoFollow. If your blog is new and you are trying to increase traffic then you need to turn your blog to a DoFollow blog. When people comment on your content they are adding value to your content. Some consider DoFollow as bribing visitors for comments, while others consider it as rewarding visitors that leave a comment. I tend to agree with the latter, but whatever your opinion is, DoFollow encourages interaction with your readers. One negative side though is that it increases comment moderation duties and an increase of spam comments.

What About a Plugin?

Yes, there are several plugins that turn your blog to a DoFollow blog. But I encourage you to read my previous article about unnecessarily adding plugins to your theme. Also, you really don´t need a plugin for such a simple task.

How does NoFollow and DoFollow Look Like?

The only way to know whether a link has been set to NoFollow is to look at the source code of the page. There are several ways to do that depending on the browser you use. To look at the source code, select “source” from your browser´s menu or you could right click on the page to view the source from the context menu. Also, Mozilla Firefox browser has add-ons that highlights a nofollow link on the page without actually looking at the source code.

The attribute that defines a link as NoFollow is rel=“nofollow”. If you remove the rel=“nofollow” attribute, then your link becomes DoFollow. There is no dofollow value. The absence of the nofollow value makes the link a DoFollow.

A typical DoFollow link is like this:

<a href="https://bacsoftwareconsulting.com" title="">BAC</a>

A typical NoFollow link is like this:

<a rel="nofollow" href="https://bacsoftwareconsulting.com" title="">BAC</a>

Features of My “DoFollow” Code

  1. The code is added to your theme´s functions.php file. The core WordPress code is not modified in any way.
  2. The code is split into 2 independent sections (Section1 and Section2). You have the choice to choose either one or both.
  3. The code is tested to work with the latest version of WordPress. However it also works with earlier versions.
  4. The code is tested to work properly with all major browsers.

“DoFollow” Code | functions.php

To change your Comment links from NoFollow To DoFollow, Open the functions.php file located in your theme´s folder, and add (copy and paste) the following code.

Note: To scroll within the code: You can also click on the code window and use your keyboard´s arrow keys.

<?php
/**** Section1: Changes the author's link in the comment section to a 
'dofollow' instead of the default WordPress  of 'nofollow' ****/
function dofollow_comment_author_link() {
    $url    = get_comment_author_url();
    $author = get_comment_author();
 
    if ( empty( $url ) || ('http://' == $url))
        return $author;
    else
        $link = "<a href='$url' rel='external' class='url'>$author</a>";
        return $link;
}
//http://codex.wordpress.org/Function_Reference/add_action
add_action('get_comment_author_link', 'dofollow_comment_author_link');
/* End of Section1 */
 
/**** Section2: Changes all links in the comment text to a 'dofollow' 
instead of the WordPress default of 'nofollow' ****/
function dofollow_comment_text_link($string) {
    //http://www.php.net/manual/en/function.str-ireplace.php
    $string = str_ireplace('rel="nofollow"', '', $string);
    return $string;
}
//http://codex.wordpress.org/Function_Reference/add_filter
add_filter('comment_text', 'dofollow_comment_text_link');
/* End of Section2 */
?>

“DoFollow” Code Notes:

Note: If you don´t see the horizontal bar, and to scroll within the code, you can also click on the code window and use your keyboard´s arrow keys.

1. Section1 of the above code changes the author´s link in the Comment section to a dofollow instead of the WordPress default of nofollow.

Meaning an Author´s link such as:

<a class="url" rel="external nofollow" href="https://bacsoftwareconsulting.com">BAC</a>

will be transformed to:

<a class="url" rel="external" href="https://bacsoftwareconsulting.com">BAC</a>

2. Section2 of the above code changes all links in the Comment text to a dofollow instead of the default WordPress of nofollow.

Meaning Any link in the Comment text box such as:

<a rel="nofollow" href="https://bacsoftwareconsulting.com">BAC</a>

will be transformed to:

<a href="https://bacsoftwareconsulting.com">BAC</a>

3. You have the choice to apply either Section1 of the code or Section2 or Both. For this Blog, I applied both Sections.

General Warning

When you add several PHP code blocks in your theme´s funtions.php file, make sure that you do NOT leave any white space (spaces, newline) before the opening PHP tag or after the closing PHP tag. Like so (the correct way):

<?php 
//Some Code here beetween the opening PHP tag (above) 
//and the closing PHP tag (below)...
?>
<?php 
//Some other Code here ...
?>

In the above code, if you leave any white space or a newline between lines 4 and 5, you will get the following error: Warning: Cannot modify header information – headers already sent by … , in your login screen and after you login to your WordPress dashboard.

Your Turn to Talk

What is your opinion about NoFollow or DoFollow? Does link juice mean anything to you? How easy did you find this tutorial to implement?

If you have something to say, please share your opinion in the DoFollow Comment section and get your reward. Your opinion matters, unless it is a Spam. By the way, this blog is now a DoFollow blog.