Latest Post

Create Login with Facebook in Cakephp,Create registration with cakephp

Authincation open you AppController.php and insert the following code App::uses('Controller', 'Controller'); class AppController extends Controller { var $components = array('Auth', 'Session','Email'); var $helpers = array('Html', 'Form'); public function beforeFilter() { //echo $this->Html->url(); $this->Auth->userModel = 'User'; $this->Auth->authenticate = array('Form' => array('scope' => array('role_id' => 2, 'status' => 1), 'fields' => array('username' => 'email'))); $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); ... Read More »

Create Login registration in Laravel, Authecantation in Laravel, Crate Login in Laravel

<h3>Create Login registration in Laravel, Authecantation in Laravel, Crate Login in Laravel</h3> keyword:laravel login, laravel registration,session in laravel, authencation in laravel, login logout in laravel, setup in laravel, routes in laravel,migration in laravel. metadescription: Laravel login, how to create registration in laravel, how to login registration in laravel, Authcantation in laravel, create user login registration,create migration in laravel. <h3>Create Login ... Read More »

Basic Configuration of laravel, laravel installation,create Login Registration in laravel

Basic Configuration of laravel, laravel installation,create Login Registration in laravel We will be building a laravel registration and login system.We also explain how to configure laravel. and how to intall laravel. step1. Installing Laravel first download composer to intall laravel from Click here to download Composer and install laravel.or you can also create a empty folder and Navigate to it ... Read More »

Validation in cake php,server side validation in cake php,multiple validation in cakephp

Validation in cake php,server side validation in cake php,multiple validation in cakephp Valation in cakephp, number validation,textarea validation,input field validation, email validation,is unique validation,multiple validation on same field. min length validation,max length validation. step1 create register.ctp <?php Form->create('User',array('type'=>'file','novalidate'=>true,'inputDefaults'=>array())); echo $this->Form->input('f_name',array('label'=>'First Name')); echo $this->Form->input('l_name',array('label'=>'Last Name')); echo $this->Form->input('email'); echo $this->Form->input('password'); ?> Address Form->textarea('address',array('escape'=>false,'label'=>'Address')); echo $this->Form->input('mobile',array('label'=>'Mobile')); echo $this->Form->submit(); echo $this->Form->end(); ?> ‘novalidate’=>true is ... Read More »

Create login in Cakephp,Authencation in cakephp

Create login in Cakephp,Authencation in cakephp, login Registration in cakephp basic working on cakephp. steps to working on cakephp step1:First create database here database name is cakephp. step2:create users table in database CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `f_name` varchar(255) DEFAULT NULL, `l_name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, ... Read More »

Resize Image in php,crop image in php

step1:Create file index.php step2:create a form if(isset($_REQUEST['add'])) { $image =$_FILES["file"]["name"]; if(!empty($image)) { //echo "hello"; error_reporting(0); $change=""; $abc=""; define ("MAX_SIZE","400"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $errors=0; $image =$_FILES["file"]["name"]; $uploadedfile = $_FILES['file']['tmp_name']; if ($image) { $filename = stripslashes($_FILES['file']['name']); $extension = getExtension($filename); $extension = strtolower($extension); ... Read More »

Configuration of Cakephp, install cakephp

Configure Cakephp, install cakephp, install new cakephp, firststep of cakephp,first part of cake php,basic congiguration of cake php. Configuration of Cakephp,Installation of cakephp. step:1 first download cakephp click <a href=”http://cakephp.com”>Download</a> step:2 After download it past on webroot or htdoc folder, and change the name of project, here is democakephp. step:3 Now run project http://localhost/democakephp/ step:4 go to APP->Config->core.php open core.php ... Read More »

Multi file upload in cakephp

<p>Multiupload file in cakephp,file resize in cakephp,imagecrop in cakephp,multiple file upload in cakephp,multiple resize image in cakephp</p> 1. first create view file and create form category.ctp <?php echo $this->Form->create('Category',array('type'=>'file','novalidate'=>true,'inputDefaults'=>array('div'=>false,'label'=>false)));?> <?php echo  $this->Form->input('category_name',array('class'=>'inp-form'));?> <?php echo  $this->Form->input('category_image',array('type'=>'file','class'=>''));?> <?php echo  $this->Form->submit('Submit',array('class'=>'form-submit'));?> <?php echo  $this->Form->end();?> </div> 2. create a config file in app->config->config.php and set the path of images <div class="code"> <?php $config['ADMIN_PAGINATION'] = ... Read More »

Form submitusing java script, form submit without submitbutton.

Form submit using javascript, jquery,registration using javascript, create registration using javascript.   first create a file index.html/php. and create form.</p> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Ajax Form</title> <script type="text/javascript" src="jquery.js"/></script> <script type="text/javascript"> $(document).ready(function () { var flag = true; $('.sub_btn').live('click', function () { if ($('.fname').val() == '') { alert('fill ... Read More »

Author: pramod kumar kumawat Mob: 9269727062
Free WordPress Themes - Download High-quality Templates