Creating page without Controller or Model in CakePHP

This is recommended if you’re not going to use database in specific pages.

1. Create page view in  /App/View/Pages/mypage.ctp

2. Copy the following codes to /App/Config/routes.php

Router::connect('/mypage', array('controller' => 'pages', 'action' => 'display', 'mypage''));

Note:  Just make sure the name of your page view from  /App/View/Pages/mypage.ctp is exactly the same name above from the code given.

Now you can call your page like this: www.yourdomain.com/mypage

How to add an empty directory to a git repository

1. Create .gitignore file inside an empty folder.

2. Insert the following code inside .gitignore file.

# Ignore everything in this directory
*
# Except this file
!.gitignore

Optional: If you’re using Netbeans and by default all system core files are being ignored to prevent uploading to repo for security purposes. To include them in the repo you need to Unignore manually. How to? Solutions: Assuming you have followed the instructions above.

1. Right click the folder you want to include in repo

2. Go to >> Git >> “Unignore”

3. Finish. Now you can have them a copy in repo.

Modify WordPress Footer Using Child Themes

Assuming you have created a child theme inside your main wordpress templates. If not, Here’s How to create a child theme.

1. Copy footer.php from your main templates to your child-theme folder.

2. Edit footer.php and find the following code:

<?php do_action( 'twentythirteen_credits' ); ?>
 <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentythirteen' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentythirteen' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>

3. Modify the code to:

<?php do_action( 'twentythirteen_credits' ); ?>
<a href="YOURSITE.COM" target="_blank" title="TITLE OF THE LINK"><?php printf( __( 'YOUR COPYRIGHT TEXT', 'twentythirteen' ), '' ); ?></a>

4. Save & Refresh your website. (If not showing clear your browser cache first)