Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to show uploader status bar for image uploading?

Hello Reader's if you are looking for the image uploader status then this blog is very helpful to you. The main reason why the developers are using this notifications is because for the user having the slow internet connections they don...

Upgrade Php: How to upgrade php 7 on Ubuntu 14.04

Php 7 release date was December 3, 2015. This blog explains how to quickly upgrade an Apache web server running PHP 5.x (any release) to PHP 7. Run the command to install PPA packages first $ sudo apt-get install python-software-propertie...

How to resize image using Qimage component in cakephp

For resizing image using Qimage component in cakephp first we have to  download Qimage plugin  after downloading Qimage plugin we have to put it into  App/Controller/Component . Then we have to do all this in our controller. ...

Retrieving and Set the data in cakePHP

Retrieve the data from the database. CakePHP come with the functions to get the data from the database. find: It is a multifunctional  function of all model data-retrieval function. It is used under the controller. It is used for...

How to set error_reporting on cake php

Hello Friends, If you are new in cakephp you might face issue like error not display on screen rather than a blank screen appear. To avoid this problem you need to open "/var/www/html/nyxmyx/app/Config/core.php" and set variable as b...

Uncaught exception 'CacheException' with message 'Cache engine "_cake_core_" is not properly configured

Hello Friends, If you are facing this issue " Uncaught exception 'CacheException' with message 'Cacheengine "_cake_core_" is not properly configured." after configuration of cake php project. You need...

How to crop image using Qimage component in cakephp

For cropping image using Qimage component in cakephp first we have to  download Qimage plugin  after downloading Qimage plugin we have to put it into  App/Controller/Component . Then we have to do all this in our controller. ...

CakePHP Controller Basic

A Controller in MVC like cakePHP is basically used to manage the logic around a single model. LIke for example if you are working on User model than  you have to have a controller for it name UsersController.php for managing the model. ...

Fetching data from databse in cakePHP.

Fetching a data in the form of table from the database can is explained here in this blog, User have to define a function in the controller with the same file name in which user are displaying table using HTML code, for example here it is 'fe...

Cakephp 2.5.4: How to display proper error messages from mysql response

There are conditions when we need to show sql error messages to users such as Duplicate Entries from database. For example in cakephp, if there is duplicacy error from database then it will show following message to the user: "Database...

Differentiate between Component, Behavior, and Helper in Cakephp.

These all extend existing CakePHP functionality so they are almost similar but differ on what they extend from the existing folder. The Component is used here in the controller it will used as a packages of logic and function and these are s...

How to implement blowfish hashing for passwords encryption in CakePhp

Whenever you make registration form in Cakephp all you need to do is to make various field for username , email, password, gender etc etc... If you are inserting these values in the database then you should know that you should encrypt your passw...

Object Oriented Concepts in Php

Object Oriented Programming Object Oriented Programming, or OOP, refers to the method of programming that invokes the use of classes to organize the data and structure of an application. Object −  Object is an instance of class. ...

How to Add watermark in Image using PHP

Hello Reader's!Sometime you see watermark on image like trademark and company logo, so questions is that how you can do  this? Today in my blog i am going to explain how you can create image with trademark using PHP. create index.php...

How to add Google reCAPTCHA in your Form.

Hellow Reader's! In this blog, I am going to explain about Google reCAPTCHA and How you can protect your website from spam and abuse with the help of reCAPTCHA. reCAPTCHA offers more than just spam protection.reCAPTCHAs are absolutely vital ...

How to do AJAX cross domain calls ?

I was facing issue to post data by a form to foreign domain. I am aware of "AJAX cross-domain policy". So we just can't call "http://yahoo.com" over ajax http request and display the results on my page. So after researchin...

Automatic Storage Class in C language

 Automatic Storage Class used in C for the use of defining the different values by a same name in a program, User will use this value through C language program control method. Auto keyword is used for Automatic Storage Class, when a user de...

Cakephp 3.0: How to add admin prefix ?

When I was new to cakephp 3.0 then I faced issue adding admin prefix. In Cakephp 2.* it was simple, just write the following lines in core.php: Configure::write('Routing.prefixes', array('admin')); To enable cakephp 3.0 just write the fol...

.htaccess: How to do Apache gzip compression?

I am writing this blog, which will provide you help to compress files with the help of .htaccess file. When Gzip Compression is enabled on your web server then it will make the file sizes smaller. This will  load your website faster. When...

How to Save data using cakephp

CakePHP will save model data as a snap to your database, User's Data will be ready to be saved in database it should be passed to the model’s save() method using this, in the giving format below. This is Controller action that uses a Ca...

Popup in Magento

If we are required to show a popup in our Magento page for say we want to show the details of the product from the list of products in a popup we can do it using Magento 1.9.x features. In Magento 1.9.x we have window.js file, the file ca...

jQuery Slider in Magento

In Magento 1.9 new RWD theme have its own jQuery Slider. Using the same slider cycle we can add slider in our page. We can find the jQuery slider coder in this path skin>frontend>rwd>default>js>slideshow.js, ...

Show magento featured product in homepage using category

Some times you need to show featured product in magento home page. So, In this blog post i am going to tell "How to display magento featured product in homepage". For a newbie, it is not easy task to add featured product but here is eas...

Magento product views count

Hello Readers, Here is a small example which will explain how to show product views count in magento. Add below line of code in view page: Path: app/design/frontend/default/currentheme/template/catalog/product/view.phtml <?php $id ...

Cakephp 3.0: How to read and write Session

How to read and write session: Yes this is the basic question in which I got stuck when I was new to cakephp 3.0. I tried to find out the answer through google, stackoverflow and I finally found the answer to it. In order to read and write ses...

PHP CURL: How to Crawl multiples pages in a loop

How to crawl many pages at one page hit: I was facing issues for getting the data from multiple urls by loop. The problem is that in the first loop I was getting the data by function Cron, but when second page was called by Cron function then ...

How to change session expiration time in codelgniter

Hello Friends, Some time this is project requirement to update session expiration time, If you want to update session expiration time in codelgniter framework. Please open "codelgniter/application/config/config.php" and update the co...

How to store multiple checkbox values in one column in a database in cakePHP?

For storing the multiple values in the database through check box, when a user select multiple choices,that selected value will be shown in database For Example a user want to select their education in the form so it will shown in database in one...

how to upload a image in php?

PHP script is used in a HTML form to allow users for uploading a file from a folder or server. Whenever user do so initially the file is in the temporary directory after it will relocated into the target destination. The uploaded file could be an...

How to register new user using cakephp

For storing new user information in database, first we have to  create a new table in database which contain user name,email,password fields. The logic of the controller is written below. In below code we have create a function registrati...

How to pass array argument to bash file from php

I was facing this issue of passing the array from php to the bash file. To pass array to bash file write the following lines of code. Php Code: $array= $countries_array; // Countries array from database shell_exec('sh get_countries.sh '....

Function of login and logout in cakephp

Implementing code of login and logout in cakephp by using auth component in this process appController needs to be modified so that it uses Cake’s Auth component will work at the time of login and logout. This is where we tell the Auth comp...

Fatal error: Call to undefined function base_url() in Codelgniter

Hello Friends, If you are facing this error "Fatal error: Call to undefined function base_url() .........." in codelgniter, this is very simple to resolve this. You need to open "codelgniter/application/config/autoload.php"...

How to convert shell script to php code?

My objective for posting this blog is to tell how do we convert shell scripting code to php. In some cases we need to use php code instead of executing shell script. Therefore I am writing the blog which may help someone to understand how do we c...

Custom Validation rules in CakePHP

Validation is a process of analyzing the exactness of data. It assures that the data entered is according to our requirement or not. CakePHP has it's own inbuilt validation rules. In CakePHP validation rule is locate in the Model file of t...

Helpers in CakePHP

Helpers that are used in  CakePHP are associated with the  Presentation layers of application. Helpers basically contain presentational logic that are available to share between many views, elements, or layouts. We have different h...

CRUD operations in cakephp

Let us start with the simple CRUD (Create, Read, Update and Delete) Application. Before we begin let me split the processes we are going to do this this blog into the following steps: Creating the Database Create models Create controlle...

How to set or get configration variable in codelgniter

Hello Friends, Configuration variable are the core variables in any project. In Codelgniter we have codelgniter/application/config/config.php file to set configuration variable. Like I want to set a font_size globally in my project then I need...

Database related functions in CakePHP

Database is used to collect information, which is organized in a proper way so that it can be accessed, managed and updated easily. CakePHP supports following database servers: MySQL 5.1+ SQLite 3 PostgreSQL 8+ SQLServer 2008+ ...

Difference between include() and require() in php?

In order to include the content of another PHP page in the current PHP page we can use two methods provided by PHP which are: include() require() With the above two methods we can make HEADER, FOOTER, FUNCTIONS when user is working o...

__autoload function in php

A function in PHP which starts with a double underscore”__” are called magic functions in PHP. __autoload functions is used to add very large number of include statements automatically without the programmer. For instance: inc...

MVC architecture in CakePHP

CakePHP is a swift development framework for PHP which manipulate frequently recognized design patterns like Associative Data Mapping, Front Controller, and MVC. Our key target is to impart a structured framework that accredit PHP users at a...

Magic Methods in PHP

PHP does not provide any specific definitions of the magic methods or functions. It is the programmer who actually writes the code to the functions that defines which states what the magic functions will do. But, magic functions are not directly ...

Naming convention in cakephp

   In cakephp,  whenever you want to create an application, You have to create following three files : Model. Controller. View files. For all these files, there are some naming convention standard you must follow. ...

cakephp 2.4.2: How to do Blowfish authentication

What is Blowfish Authentication: It is an authentication adapter for AuthComponent. Blowfish is a symmetric-key block cipher. It provides the ability to authenticate Post Data using Blow Fishing. In order to add Blow fish authentication add it...

.HTACCESS: How to remove second part of url

Currently i have 100+ URLs on my site in this format: http://www.example.in/view_retailer/homepage I want to remove /view_retailer/ from all URLs, so they should look something like this http://www.example.in/homepage In other words I...

Google Place API : How to get the country code from Google Places API

If you are trying HTML 5 GeoLocation to get longitude and latitude and after then using Google Maps API to get the country code of that longitude/latitude. SO in this tutoril I will tell you a very simple way to get country code from Google place...

Google App Engine: How to get Storage Access with the help of a Service Account

First get logged in to a GCE instance via SSH. From there you can access the Storage with the help of a Service Account: Step 1:  Open Command line of google app engine and enter following command.       &...

How to define base_url in codelgniter

Hello Friends, As you know base_url is a very important component in web development we need this many time in our project, If you are new in codelgniter and wants to define base_url. Please review the below code Please open "codelgnit...

How to auto load model in codelgniter

Hello Friends, If you are looking to auto load any model function or many models functions like I want to user model will be auto load in my project. Please review the below code for the same and make the changes accordingly. Please open &q...
1 13 44
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: