Welcome Guest, Not a member yet? Register   Sign In
My first CI WebSite
#1

[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!
#2

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

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

[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
#5

[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.
#6

[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!
#7

[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
#8

[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...n/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
#9

[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




Theme © iAndrew 2016 - Forum software by © MyBB