Thursday 27 August 2015

REST API in joomla 3.4 with SLIM Framework PART 2

Flowing on from REST API in joomla 3.4 with SLIM Framework PART 1 it's time to to use the real power of Slim Framework. In this second part of tutorial series , we will use SLIM Framework in Joomla way of style to create powerful API.
As we learned in Part 1 of this article, how to load SLIM Framework in our joomla 3.4 project and how to instantiate SLIM framework, directory structure explained in part 1 of this tutorial, in this part we will create index.php file flowing our directory structure.

Let's start

create index.php in /your_project/api/v1/index.php . and paste bellow code, hey don't get confused by seeing this messy line of code , don't worry i will explain each line.
  1. <?php
  2. define('_JEXEC', 1);
  3. define('_API', 1);
  4. define('JPATH_BASE', dirname(dirname(dirname(__FILE__))));
  5. // Include the Joomla framework
  6. require_once JPATH_BASE . '/includes/defines.php';
  7. require_once JPATH_BASE . '/includes/framework.php';

-For complete information, Read the full at: REST API in joomla 3.4 with SLIM Framework PART 2




FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP quetions and answers, to instantly resolve your various language queries.

Apart from this, If you have any html language issue, you can post at HTML developer forum and get instantly resolved it from highly experienced FindNerd community members.

Wednesday 26 August 2015

Attach Invoice PDF with invoice Email in Magento

Sometime we need to send a invoice pdf in a invoice mail in magento, so here I am explaining how to add invoice pdf in invoice mail.
1) Override the app/code/core/Mage/Core/Model/Email/Template/Mailer.php file in your module
2) Add one protected variable $pdftemplate
3) Edit the send() function
4) at line around 70 put the following code
   
  1. if ($this->pdftemplate)
  2. $pdftemplate = $this->variable;
  3. else
   

For complete Information, Visit full Blog: Attach Invoice PDF with invoice Email in Magento

FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP Developer Forum, to instantly resolve your various language queries.

Apart from this, If you have any html language issue, you can post at HTML questions and answers and get instantly resolved it from highly experienced FindNerd community members.

Wednesday 19 August 2015

Horizontal Slide Toggle

Hi all,
If you would like to have the horizontal toggle options, according to example when you click on the button to slide, it will play the animation reversed and hide the element. See the below example to toggle slide a div.
Script:-
  1. $(document).ready(function(){
  2. $('#slide').click(function(){
  3. $('.box').animate({
-For complete set of codes/ Steps, read the full Blog at: Horizontal Slide Toggle




FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP Developer Forum, to instantly resolve your various language queries.

Apart from this, If you have any html language issue, you can post at HTML questions and answers and get instantly resolved it from highly experienced FindNerd community members.

Tuesday 18 August 2015

Sorting the elements of array

In this tutorial we will learn how to sort the elements of an array on the basis of the keys or values as per the requirement.We will discuss the following sorting functions with example:
  1. sort()
  2. rsort()
  3. asort()
  4. ksort()
  5. arsort()
  6. krsort()

  1. sort() is used for sorting elements of an array in ascending order
    1. $fruits = array('mango','grapes','apple','pineapple');
    2. sort($fruits);
    3. $length= sizeof($fruits);




- For complete explanation through examples, Read full Blog at: Sorting the elements of array

FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP developer forum, to instantly resolve your various language queries.

Apart from this, If you have any html language issue, you can post at HTML questions and answers and get instantly resolved it from highly experienced FindNerd community members.

Monday 17 August 2015

How to centralize div horizontally and vertically

Hi all,
Here are two method to center align a position of div.
  1. div{
  2. height: 200px;
  3. width: 200px;
  4. background: #ccc;
  5. top:0;
  6. bottom: 0;
  7. left:0;
  8. right: 0;
  9. margin: auto;
  10. position: absolute;




 - Read the full Blog at: Howto centralize div horizontally and vertically

FindNerd allows you to post Html questions and answers. In this forum html designers and developers can collaborate with each other to resolve a specific html issue, as all the community members here are highly experienced and can provide answers to any html issue in a short span of time.

Apart from this, If you have any PHP language issues, you can post at PHP developer forum and get instantly resolved it from highly experienced FindNerd community members.


Friday 14 August 2015

How to Disable Wordpress Updates

If you would like to disable word-press updates please follow the below process:
Open your current selected Theme folder.
Open under this folder function.php and put the below code at the end of this file
  1. //To Disable Theme Updates # WP Version 3.0+
  2. remove_action( 'load-update-core.php', 'wp_update_themes' );
  3. add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
  4. wp_clear_scheduled_hook( 'wp_update_themes' );


- Read the Full Blog at: How to Disable WordPress Updates

FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP questions and answers, to instantly resolve your various language queries.
Apart from this, If you have any html language issue, you can post at HTML Help forum and get instantly resolved it from highly experienced FindNerd community members.

Thursday 13 August 2015

Explanation of Manifest file

Manifest file : - " Manifest is a simple text file that tells browser what to cache" and what not. The browser only cache the Manifest file content and does not cache the rest. Manifest file contains three sections :-

 Explain Manifest file

Read the full Blog at: Explanation of Manifest file

FindNerd allows you to post Html help forum. In this forum html designers and developers can collaborate with each other to resolve a specific html issue, as all the community members here are highly experienced and can provide answers to any html issue in a short span of time.

Apart from this, If you have any PHP language issues, you can post at PHP questions and answers and get instantly resolved it from highly experienced FindNerd community members.

Wednesday 12 August 2015

Php server variables

Hello Readers,

Today we will discuss about "Php server variables".

$_SERVER is one of the tremendous world-wide specifics within PHP. It includes information regarding headers, server, web host in addition to and many others. Its content has enormous directory information along with proper world-wide indices.

There are few type of variable which we listed below :-
  1. Server information
  2. Header information
  3. Details on PHP page request
  4. File name or path information
  5. Remote user information
SERVER-side-PHP-Variable

- Read the full Blog at: Php server variables

FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP Developer forum, to instantly resolve your various language queries.

Apart from this, If you have any html language issue, you can post at HTML questions and answeres and get instantly resolved it from highly experienced FindNerd community members.

Tuesday 11 August 2015

HTML Canvas Linear Gradient

Draw Rectangle with Linear Gradient : In this article I will show you how to use Linear Gradient to draw the graphics. To draw graphics with Linear Gradient in web page we will use Canvas API, we will draw the createLinearGradient() method. Following is the simple example to draw Stroke Text on canvas:
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <canvas id="gradientCanvas" width="350" height="200" style="border:1px solid #d3d3d3;"></canvas>
  5. <script>
Read the full blog at: HTMLCanvas Linear Gradient


FindNerd allows you to post Html Help Forum. In this forum html designers and developers can collaborate
with each other to resolve a specific html issue, as all the community
members here are highly experienced and can provide answers to any html
issue in a short span of time.

Apart from this, If you have any PHP language issues, you can post at PHP questions and answers and get instantly resolved it from highly experienced FindNerd community members.



Monday 10 August 2015

How to do Email validation in Php

Hello Reader's today we will discuss about "Email validation in Php". The below code tells that how to check your email is valid or not. For this we use regular expression for validate email.

  1. <?php
  2. if(isset($_POST['submit']))
  3. {
  4. $email_from = $_POST['email'];
  5. $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
  6. if(preg_match($email_exp,$email_from)) {
  7. echo 'The Email Address you entered does not appear to be valid.';
  8. }
  9. else
  10. {

How to do Email validation in Php

- Read the full set of codes at How to do Email validation in Php FindNerd's Blog.

FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP question and Answers,to instantly resolve your various language queries.
Apart from this, If you have any html language issue, you can post at HTML Help Forum and get instantly resolved it from highly experienced FindNerd community members.

Friday 7 August 2015

How to Create Custom Jquery Tabs

Hello Reader's,

In this article I will guide you how to create custom responsive tabs without use of any Jquery plugin.
This will surely make your web page faster because its not an plugin. Its an simple custom Jquery HTML & css.

Copy and paste the code & see result
Here is the HTML
  1. <div class="wrapper">
  2. <div class="tabs">
  3. <ul id="tabs">
  4. <li><a href="#" data-tab="tab1">Tab 1</a></li>
  5. <li><a href="#" data-tab="tab2">Tab 2</a></li>
  6. <li><a href="#" data-tab="tab3">Tab 3</a></li>
  7. <li><a href="#" data-tab="tab4">Tab 4</a></li>
  8. </ul>
  9. </div>


-Read the full set of code /blog at:  How to Create Custom Jquery Tabs

FindNerd allows you to post Html Questions and Answers. In this forum html designers and developers can collaborate with each other to resolve a specific html issue, as all the community members here are highly experienced and can provide answers to any html issue in a short span of time.

Apart from this, If you have any PHP language issues, you can post at PHP Developer Forum and get instantly resolved it from highly experienced FindNerd community members.



Thursday 6 August 2015

How to open and read files with PHP


Before reading information from any file,we have to open the file for reading. This Blog will help you to find the code to read-open-close the file(s) on server we have created with PHP.
  1. Opening a file:fopen()
This function enables to open a PHP written file in the specified mode.fopen() not only creates a connection to file but can also open URL
  1. $file_open = fopen("http://127.0.0.1/", "r");
Function fopen( ) doesn't actually read the contents of a file.All it does is to set a pointer to the file which we want to open. It then returns what's call a file handle. Consider an example:
 How to open and read files with PHP
- See the full Blog at: How to open and read files with PHP FindNerd is an effective C, Java, Android, Html, iOS, JavaScript, PHP Developer forum, to instantly resolve your various language queries.

 Apart from this, If you have any html language issue, you can post at HTML questions and answeres and get instantly resolved it from highly experienced FindNerd community members.

Wednesday 5 August 2015

How to Avoid HTML Mistakes

Hello Reader's

Here is the article which will help you to know, How to Avoid HTML Mistakes

In this article I will guide you how to avoid minor mistakes when create an HTML Page.

 1) Don't use block elements within Inline elements. **Wrong Approch**:- <a href="#"><h1>This approach is wrong because a tag is a inline element and h1 is a block element. So we can't use inline element before the block element.</h1></a> **Right Approch**:- <h1><a href="#">This approach is right because h1 is a block element & a tag is a inline element. So we can use inline element after the block element.</a></h1>

 2) Always use the attribute for tags. Reason of using attribute is, your image path is wrong or have bad network connection then the alt="star" text will be render on the screen.

How to Avoid HTML Mistakes -


Read the Blog at: How to Avoid HTML Mistakes FindNerd allows you to post Html queries at Html help forum. In this forum html designers and developers can collaborate with each other to resolve a specific html issue, as all the community members here are highly experienced and can provide answers to any html issue in a short span of time.

Apart from this, If you have any PHP language issues, you can post at PHP Questions and Answers and get instantly resolved it from highly experienced FindNerd community members.

Tuesday 4 August 2015

Laravel 5 Migration

Migrations play a very important role in any MVC Framework. They work as a version control for your database. By using Migrations we can update the database schema and stay up to date on the current schema. By using Migration we can easily manage our schema. Migrations Creation: In laravel5 Migrations can be create using the following command. Command:

`php artisan make:migration createUserTableName`
 
when you type this command and see the folder app/database/migrations. Here we can see our migration table has been created according to the timestamp. If we want to indicate our table name then by using --table and --create we can indicate the name of the table.
Laravel-5 -migration -
Read the full blog at: Laravel 5 Migration FindNerd allows you to post PHP Questions and Answers. In this forum PHP developers can collaborate with each other to resolve a specific PHP queries, as all the community members here are highly experienced and can provide answers to any PHP issue within a short span of time.

 Apart from this, If you have any Html language query, you can post at Html help Forum and get instantly resolved it from highly experienced FindNerd community members.

Monday 3 August 2015

What are the latest html elements added in html5

Here are various html elements which has been added to html5, some of the important elements are listed bellow:
  1. . <header>
    This html element is used for define the header section of the html page.
    1. <header>
    2. <p>this is header</p>
    3. </header>
  2. . <footer>
    This html element is used for define the footer section of the html page.
    1. <footer>
    2. <p>this is footer</p>
    3. </footer>
  3.  
  4.  
  5.  
  6. Read the full Blog on what are the latest html elements added in html5  at FindNerd Developer's Forum.

  7. FindNerd allows you to post Html Questions and Answers. In this forum html designers and developers can collaborate with each other to resolve a specific html issue, as all the community members here are highly experienced and can provide answers to any html issue in a short span of time.


  8. Apart from this,  If you have any PHP language query, you can post at PHP Developer Forum and get instantly resolved it from highly experienced FindNerd community members.