CodeIgniter Tutorials: Basic Website - Form Validation Library (Part 7/8)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

the video is very helpful.i learned a lot.

steveowens
Автор

See the codeigniter docs under Class Reference > Form Validation class. In the contents select "Setting Validation Rules" and you'll find a link for exactly this.

LukeWatts
Автор

also, w.r.t the else case, try including $data="" as the parameter for the contact() function. That way, you can just use $this->contact($data) in the else case.

IUseQsInsteqdOfQs
Автор

i'm enjoying your tutorials dude, keep it coming :)

Mounirification
Автор

Inside the if statement for send_email you can just run the contact method again ($this->contact() ) instead of copy-pasting the code.

IUseQsInsteqdOfQs
Автор

Hello there, mind if I ask you what program do you use to record your desktop?
Great tutorials by the way.

Thanks in Advance

developerart
Автор

I might be missing something, but aren't you creating a site with one super-controller("site.php"), which then calls specific functions which act as the subcontroller that calls the views/model creating different pages? Is that how codeigniter is supposed to work? For a big site, wouldn't that make for a REALLY big "site.php" Instead, would you want to forget the super controller and create a php file called controller_contact.php which then calls the specific function for the contact page. Love your videos but just curious why everything is running thru site.php when that file will get rather large very quickly.

mattm
Автор

Hi, this is has being a great help but @site.php in send_email function where you validated (|alpha) the name it doesn't work with full name with space like "Steven Wonder" .

Thanks Steven, you are the magic!

adebayoopatola
Автор

Echoing empty string isn't efficient, you shouldve used isset()

gotosleep
Автор

Shouldn't you put the load->helper and all such things in your controller. Isn't the whole point of MVC to keep as much logic outside of your view. Model for data, controller for logic and view for UI / client-viewable stuff. The helper doesn't show anything to the user so it would fall under logic, wouldn't it?

LukeWatts
Автор

The first time contact() is loaded (by going directly to URL site/contact) I get: Call to undefined function validation_errors. Makes sense since form_validation library not loaded in contact(), but if I load there too my set_value in fields do not work. Is this a context issue? Or should it work and I fatfingered the set_value()?

tgemal
Автор

i got an error ---   Undefined variable: message  
what should i do???

ankitsuthar
Автор

please can u tell me how to insert and update form_multipleselect() in codeigniter plz

bapssatsang
Автор

creating forms in codeIgniter is different than usual way..(html)..how do I connect/use jQuery with this?

weward
Автор

lol, that's what I did, i just saw your msg.

syntrax-og
Автор

This comment saved me a baldpatch :derp:

LiamDolman
Автор

05:26 that is cool, but what if i want the error messages displayed in another language? please reply if any1 knows, thank you...

UsernameNULL
Автор

can eraser the input after send email correctly? sorry for my mistakes, i dont speak english :S help me please!

alejandropascolo
Автор

why not use this ? if (isset($message)) echo $message;

this comment saved me, tnx 1Pitpalacu1. cant thumb the guy since new youtuberules grrr

ecalik
Автор

why not use this ?
if (isset($message)) echo $message;

Pitpalacu