CodeIgniter Forums
My first CI WebSite - 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: My first CI WebSite (/showthread.php?tid=28374)



My first CI WebSite - El Forum - 03-09-2010

[eluser]Juan Velandia[/eluser]
Hello everyone, after 4 weeks learning CI, this is the result:

http://www.oeeltda.com.co/

It isn't finished yet, and surely is full of mistakes, but this is to show you that I wasn't just wasting your time, thanks a lot for your help..

If you want to see the code you can download it from here:

http://www.oeeltda.com.co/ci1.tar.gz

Any suggestion would be greatly appreciated!


My first CI WebSite - El Forum - 03-09-2010

[eluser]dyrer[/eluser]
Very good work and thank you for the source code


My first CI WebSite - El Forum - 03-10-2010

[eluser]Suhas nazir[/eluser]
Cool site...good going............


My first CI WebSite - El Forum - 03-10-2010

[eluser]mohsin917[/eluser]
well done juan..
I also started CI 1 month ago but not completed my project yet. Because of having trouble with my BOSSS.
I hope you find this framework very useful and easy.

And try to make your libraries and also share with us Smile


My first CI WebSite - El Forum - 03-10-2010

[eluser]mohsin917[/eluser]
One thing more. In your code you are not using model section. Use the query part inside your model.

Make function in your models and load them in your controller.

The Concept of controller is to control the traffic flow. In your code you are performing the model part inside your controller.

Well it works perfectly but not the appreciated approach.

In case of developing a big website, not following the basic MVC architecture properly, code become more complex.


My first CI WebSite - El Forum - 03-10-2010

[eluser]Juan Velandia[/eluser]
[quote author="dyrer" date="1268191060"]Very good work and thank you for the source code[/quote]

Thanks for downloading, It's a beginner's work, but i'll be happy if it gives you some ideas

Regards!


My first CI WebSite - El Forum - 03-10-2010

[eluser]Juan Velandia[/eluser]
[quote author="mohsin917" date="1268239262"]One thing more. In your code you are not using model section. Use the query part inside your model.

Make function in your models and load them in your controller.

The Concept of controller is to control the traffic flow. In your code you are performing the model part inside your controller.

Well it works perfectly but not the appreciated approach.

In case of developing a big website, not following the basic MVC architecture properly, code become more complex.[/quote]

You are right, I haven't studied enough the MVC, It's just a matter of time. Thanks a lot for your suggestions, I will improve my coding with a little help from my friends. Good Luck with your BOSS


My first CI WebSite - El Forum - 03-10-2010

[eluser]Mareshal[/eluser]
very nice, but a few tips, maybe not the best but I apply them:

http://www.oeeltda.com.co/index.php/home/section/2

avoid such long URLs, you could make it /section/2 , without index.php and your home controller, use mod rewrite and CI's routes Wink

edit:

check this link: http://www.oeeltda.com.co/index.php/home/section/sdf3getr - WHAT'S THIS ?

Code:
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: views/section.php

Line Number: 5
AND SOME OTHER errors, try to validate your data before input, and use global xss clean Smile


My first CI WebSite - El Forum - 03-14-2010

[eluser]Juan Velandia[/eluser]
Hello Mareshal, thanks for the tips could you post where can I a tutorial about:

- CI’s routes
- validate data before input
- global xss clean

I`ll really be thankful