This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Retindpost extends CI_Model{ | |
function __construct(){ | |
parent::__construct(); | |
} | |
public function ret_ind_post($id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Post extends CI_Controller { | |
function __construct() | |
{ | |
parent::__construct(); | |
$this->load->helper('form'); | |
$this->load->helper('url'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Post extends CI_Controller { | |
function __construct() | |
{ | |
parent::__construct(); | |
$this->load->helper('form'); | |
$this->load->helper('url'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My View | |
<form action="" method="POST" id="pwdchange"> | |
<span><h2 style="font-family:'Ubuntu',sans-serif;" align="justify">Change your Password here</h2><br /></span> | |
<?php echo form_open('users/passwordchange');?> | |
Current Password: | |
<?php $data=array('id'=>'oldpwd','name'=>'oldpwd','class'=>'span4','type'=>'password','placeholder'=>'Old Password'); | |
echo form_input($data); ?><br /><br /> | |
New Password: | |
<?php $data2=array('id'=>'newpwd','name'=>'newpwd','class'=>'span4','type'=>'password','placeholder'=>'New Password'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo make me a sandwich |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Calculator | Just Another Classroom</title> | |
<link rel="stylesheet" type="text/css" href="CSS/bootstrap.css" media="all"> | |
</head> | |
<body class="container"> | |
<div class="row"> | |
<div class="span5"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArgumentError in UsersController#create | |
wrong number of arguments (1 for 0) | |
Rails.root: /home/arvind/Projects/Rails/twit | |
Application Trace | Framework Trace | Full Trace | |
app/controllers/users_controller.rb:6:in `create' | |
Request | |
Parameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Twit::Application.routes.draw do | |
resources :users,:tweets,:assets | |
root :to => 'tweet#home' | |
controller :users do | |
match 'create' => :create, :via => :post | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<%= form_for @user , :url => {:action => "/create", :method => "post"} do |f| %> | |
Username : <%= f.text_field :username %><br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UsersController < ApplicationController | |
def new | |
@user = User.new | |
end | |
def create | |
@user = User.create(params[:user]) | |
redirect '/home' | |
end | |
end |
OlderNewer