Welcome Guest, Not a member yet? Register   Sign In
Basic steps to develope a website
#1

[eluser]danielbala[/eluser]
Hi..

Iam new to codeigniter..just learning,
Can anyone tell me how to start the website with following functionalities..
1.Registeration
2.Login
3.Search box
4.for avoiding spammers
5.Any security modules to be used
6.url rewriting
Thanks in advance
#2

[eluser]Achraf Soltani[/eluser]
[quote author="danielbala" date="1336832911"]Hi..

Iam new to codeigniter..just learning,
Can anyone tell me how to start the website with following functionalities..
1.Registeration
2.Login
3.Search box
4.for avoiding spammers
5.Any security modules to be used
6.url rewriting
Thanks in advance[/quote]

1- Registration : have a look at the database class, Active record pattern.
2- Login : Session class.
3- Search box : database class.
4- what kind of spammers ? you can include a captcha or ip check or chatever u want.
5- Security : check the security class and helper
6- url rewritting is a build-in feature of codeigniter
#3

[eluser]danielbala[/eluser]
Thanks a lot for your reply!!!
#4

[eluser]Achraf Soltani[/eluser]
If you need detailed explanation feel free to ask, good luck
#5

[eluser]danielbala[/eluser]
Sure..
#6

[eluser]danielbala[/eluser]
Hi..

I designed a template in photoshop and sliced into html..

How to use in codeigniter...

#7

[eluser]Achraf Soltani[/eluser]
http://ellislab.com/codeigniter/user-gui...views.html

Read the docs carefully
#8

[eluser]craig.hoog[/eluser]
[quote author="danielbala" date="1336835642"]Hi..

I designed a template in photoshop and sliced into html..

How to use in codeigniter...

[/quote]

Daniel,

It sounds like you might need a bit more general experience before diving into a project of this magnitude. For the HTML, you are going to want to use Views, which is part of the MVC structure that CodeIgniter uses.

Why don't you send me a PM and we can go over a few of the "basics" and then you can formulate your questions once you know how the basic file structure and programming patterns work.
#9

[eluser]craig.hoog[/eluser]
Separate to my other reply, I wanted to address the questions you have had:

Quote:Iam new to codeigniter..just learning,
Can anyone tell me how to start the website with following functionalities..

1.Registration
For registration, you will need a few things, such as a database, an account controller and a login / register view.

a) You will want to use Active Record in CodeIgniter for all the database interactions. Make a model that handles all user tables interactions

b) For registration you will want to use the form helper - http://ellislab.com/codeigniter/user-gui...elper.html - and then use a controller that interacts with a form view to parse all inputs, clean them, validate them and stick them in the database.

Quote:2.Login

The login system will require access to the users table that you populate with registrations and will require some sort of authentication system.

a) The model you use for registration can also be used to access the same table to check if users exist, etc

b) For authentication, I highly recommend using a pre-made authentication library. If you're PHP savvy and want something quick, take a look at QuickAuth 2.0 - if you want something more secure and stable, checkout TankAuth or the other authentication libraries for CodeIgniter

Quote:3.Search box

You will use a new database model for searches. You need to make some general functions that accept a variable and then query the databases based on those variables.

Code:
function search_users($username)
{
    $this->db->like('username', $username);
    $q = $this->db->get('tbl_users');
    $r = $q->result();
}

Quote:4.for avoiding spammers

CodeIgniter comes with a Captcha library and also does many things like XSS and input filtering to avoid "dangerous" spammers who can attack your database. To avoid spammers on your registrations, either use CI Captchas or a custom solution - http://ellislab.com/codeigniter/user-gui...elper.html

Quote:5.Any security modules to be used

There are many built-in security features you will be using (even if you don't know it), but definitely take a look specifically at the article on Security - http://ellislab.com/codeigniter/user-gui...urity.html

Quote:6.url rewriting

URl Rewriting, once a proper htaccess file is installed, is pretty straight forward. The Controller and functions inside that controller will determine your URL structure quite nicely. As long as controllers and functions have logical names, the site should have great URL structure.

Quote:Thanks in advance
#10

[eluser]arunoda[/eluser]
You should at following courses, they will help you to learn codeigniter correctly

1. http://www.udemy.com/codeigniter-learn-it-correct/
2. http://www.youtube.com/watch?v=aOtDzuyBq...F3BB3AE307




Theme © iAndrew 2016 - Forum software by © MyBB