CodeIgniter Forums
howto validate fields, add tinymce and date js - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: howto validate fields, add tinymce and date js (/showthread.php?tid=8691)



howto validate fields, add tinymce and date js - El Forum - 05-27-2008

[eluser]Mitja[/eluser]
Hello

CodeIgnitier is very good. But when i start using it i get some problem.

I have form to edit. How can i add tinymce or fckeditor to textarea? In docs i also can not find how to make update to some fileds or insert to some fields. In tutorial he insert in all fields, i want to insert or update in some fields not all of them.

In docs i find this for validate
http://ellislab.com/codeigniter/user-guide/libraries/validation.html and http://codeigniter.com/wiki/MY_Validation/.

Which one is better to use to validate email, date, empty fileds,...?

Can i manualy add my js code for date in view structure or where i must put it?

Regards
Mitja


howto validate fields, add tinymce and date js - El Forum - 05-27-2008

[eluser]Chris Newton[/eluser]
Add tinymce:

http://ellislab.com/forums/viewthread/65061/

Validation:
You can use the standard validation library. The "MY_Validation" library just changes the standard validation library (not for the better in my opinion)

JS Code:
You can put it in your view, or link to any js file that you'd like.

Update some fields:
Either create a 'model' to handle the work of updating based on your input, or change your controller. As long as you understand PHP, you can easily choose what data to update.


howto validate fields, add tinymce and date js - El Forum - 05-27-2008

[eluser]Michael Wales[/eluser]
Quote:The “MY_Validation” library just changes the standard validation library (not for the better in my opinion)

I'm just curious as to why you're not a fan. Albeit, I am a heavy user of this library, even in the most objective frame of mind I can't think of a single downfall... maybe a bit of overhead?


howto validate fields, add tinymce and date js - El Forum - 05-28-2008

[eluser]Chris Newton[/eluser]
I was mostly just trying to keep my comment succinct for what seems to be a non-native English speaker. It's not that I'm not a fan, I just think that in this case when a user is obviously a bit overwhelmed with the basics going off-manual is asking for trouble. The MY_Validation library for basic or new users just adds to the confusion due to the lack of documentation.

Anyway, it has value, but I think it should be evaluated based on requirements, and not used arbitrarily based on inexperience.