Part of the EllisLab Network
   
1 of 7
1
Code Igniter for now is very confused
Posted: 30 January 2007 11:01 AM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  73
Joined  01-30-2007

Hi,
I’m new to Code igniter, but the first impression that I had is not good, now I will enjoy to discuss with you the reasons:

1) Which is the last version availabe? There is a lot of confusion about that, see these links, they talks about: 1.5.1, 1.5.0.2, 1.5.2

http://www.codeigniter.com/

http://www.codeigniter.com/user_guide/changelog.html

http://www.codeigniter.com/user_guide/installation/downloads.html


2) Documentation:

documentation is very poor, some functions have just 3-4 lines of explaination and it isn’t enough.
For example redirect function erase all vars stored variable, why there is no mention about it?


3) Support:

there is no mail for support, tried forum, but first registration lost my activation mail and there is NO way to have a new activation mail, so I cannot use Cimmo user at all, had to register another one.


4) Examples:

Why there are no sources for the two examples in videos? I cannot see every time a video if I want to view the code… I think these things are pretty easy to think and to do.


Please let me know that will be better in the future!

best regards
Marco

Profile
 
 
Posted: 30 January 2007 11:13 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006

Please let me know that will be better in the future!

Welcome Cimmo. I’m sorry to hear about your bumpy start. I can almost certainly assure you that if you stick around a little, your impression of CI will improve.
1) 1.5.1 is the correct version.
2) The documentation isn’t perfect, but IMO it is one of the best as compared to other frameworks. You will find just about anything you need in the forums or wiki. You’ll find that our community is very helpful.
3) Unfortunately there is no mail support as this is an open source project. You may try sending a message to Derek Allard. He may be able to help you recover your other user.

Give CI a chance, you’ll be pleasantly surprised. Good luck.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 30 January 2007 11:18 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  73
Joined  01-30-2007

a problem for now is:
I want to manage a variable from a controller to another one, but seems that it’s lost when I redirect to the second controller.

Documentation hasn’t helped me get out about this problem :(

Profile
 
 
Posted: 30 January 2007 11:24 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006

This is because web applications are “stateless”. Variables only exist while the current script (controller) is executed. If you want to maintain variables from controller to controller, you’ll need to either set the variable as a session variable or pass it as part of your uri when you redirect.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 30 January 2007 11:26 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Avatar
Rank
Total Posts:  73
Joined  01-30-2007
joeles - 30 January 2007 11:24 AM

This is because web applications are “stateless”. Variables only exist while the current script (controller) is executed. If you want to maintain variables from controller to controller, you’ll need to either set the variable as a session variable or pass it as part of your uri when you redirect.

yes but sessions manage only an amount of 4 kb!!!

Profile
 
 
Posted: 30 January 2007 11:27 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
RankRank
Total Posts:  173
Joined  11-29-2006

Cimmo2,

That’s not a CodeIgniter problem—it’s the basics of web applications. I would advise you do some research on Sessions in PHP, because it really doesn’t have anything to do with CI. Then once you’ve learned how it works, read up on Sessions in CI, or simply use PHP’s own handling functions.

Profile
 
 
Posted: 30 January 2007 11:29 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Avatar
Rank
Total Posts:  73
Joined  01-30-2007
Negligence - 30 January 2007 11:27 AM

Cimmo2,

That’s not a CodeIgniter problem—it’s the basics of web applications. I would advise you do some research on Sessions in PHP, because it really doesn’t have anything to do with CI. Then once you’ve learned how it works, read up on Sessions in CI, or simply use PHP’s own handling functions.

ok but CI has NO integrated way to transports variables across different controllers, this is the problem that let me “on the road” with this particular problem.

Profile
 
 
Posted: 30 January 2007 11:32 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
RankRank
Total Posts:  173
Joined  11-29-2006

It does, and they’re called sessions smile

Profile
 
 
Posted: 30 January 2007 11:34 AM   [ Ignore ]   [ # 8 ]  
Grad Student
Avatar
Rank
Total Posts:  73
Joined  01-30-2007
Negligence - 30 January 2007 11:32 AM

It does, and they’re called sessions smile

They aren’t enough to manage great quantity of data

Profile
 
 
Posted: 30 January 2007 11:34 AM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006
Cimmo2 - 30 January 2007 11:26 AM

yes but sessions manage only an amount of 4 kb!!!

There are 3 alternative session libraries on the wiki. DB Session, Native Session, and PHP Session that overcome this.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 30 January 2007 11:37 AM   [ Ignore ]   [ # 10 ]  
Grad Student
Avatar
Rank
Total Posts:  73
Joined  01-30-2007
joeles - 30 January 2007 11:34 AM
Cimmo2 - 30 January 2007 11:26 AM

yes but sessions manage only an amount of 4 kb!!!

There are 3 alternative session libraries on the wiki. DB Session, Native Session, and PHP Session that overcome this.

can you explain differences?

Profile
 
 
Posted: 30 January 2007 11:38 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
RankRank
Total Posts:  173
Joined  11-29-2006

Cimmo, please look at the links both of us have provided. There are alternatives to CI’s Sessions that do not have storage limitations. Your concerns have been addressed, now its up to you to decide which type to use. I don’t think its our job to link to AND describe the advantages/disadvantages of each type. Do the research, it’s how you learn.

Profile
 
 
Posted: 30 January 2007 12:00 PM   [ Ignore ]   [ # 12 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6762
Joined  03-23-2006

Welcome to CI Cimmo2.  We hope you stick around.

1) Which is the last version availabe? There is a lot of confusion about that, see these links, they talks about: 1.5.1, 1.5.0.2, 1.5.2

You’re right, this should be fixed.  1.5.1 is currently the latest.

documentation is very poor, some functions have just 3-4 lines of explaination and it isn’t enough.
For example redirect function erase all vars stored variable, why there is no mention about it?

Losing your variables was already addressed in this thread, but its suffice to say this is not a limitation of Code Igniter, it is a limitation of the internet.

With respects to the quality of the documentation, I’d welcome your insight into how it could be improved.  And if you have specific questions, these forums are a great place to ask them.

there is no mail for support, tried forum

Code Igniter is an open source project (and a darned good one wink).  We’re all volunteers and can’t support an infrastructure like that.  We want to see you be able to use it and take part, but if technical support is required, might I suggest you take a look at an established commercial Content Management System?  ExpressionEngine will blow you away.

Why there are no sources for the two examples in videos? I cannot see every time a video if I want to view the code… I think these things are pretty easy to think and to do.

The videos are meant to be nice introductions to CI.  Source code would be useful for many people, but unfortunately we don’t have it.  The third video might be of use to you, as it does have code… but I’d encourage you to get the hang of CI first before you delve into that advanced video.

Please let me know that will be better in the future!

It gets better as our community grows and invests in it.  Why don’t you join us?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 30 January 2007 12:29 PM   [ Ignore ]   [ # 13 ]  
Grad Student
Avatar
Rank
Total Posts:  73
Joined  01-30-2007
Derek Allard - 30 January 2007 12:00 PM

Welcome to CI Cimmo2.  We hope you stick around.
The videos are meant to be nice introductions to CI.  Source code would be useful for many people, but unfortunately we don’t have it.  The third video might be of use to you, as it does have code… but I’d encourage you to get the hang of CI first before you delve into that advanced video.

I’ve just seen the third video and studied it at all, the first one also is very simple, the second one has scaffolding feature that it isn’t in the other two, so was nice to see sources as file not only as video.

Anyway I have just understood a lot of things, my app is just able to add/delete entries in my database and to switch view, just some problems with variables passing that I have resolved for now to integrate in a unique controller two similar controllers.

It gets better as our community grows and invests in it.  Why don’t you join us?

First I have to understand if I like CI so much smile

Also I’ve found this thing:
form helper is quite nice, however calling functions with different names is not a good idea, because if I want to build a dynamic form that depends on data retrieved from database I have to store another array with fields type.

Instead would be better to produce ONE function called ‘input’ or ‘field’ and with different ids passed in the array to recognize the type of the field I want to add to my form.

Profile
 
 
Posted: 30 January 2007 01:05 PM   [ Ignore ]   [ # 14 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  472
Joined  09-26-2006

@Derek
I also had a problem with my user activation when I first registered. I never received the email and
had to re-register with a different user name. I figured it was annoying but not life threatening , however
if it seems to happen to more users there is a problem that needs attention.

Cimmo, your perspective as a newcomer to CI is welcome, as some of us who have been around longer will
tend to see things as “obvious”, when in fact they may not be.

I generally have found the CI docs to be comprehensive, but you will agree that the author of a guide has to
set a baseline for his assumptions about what his reader will “know”. Naturally, some people will find the guide
says nothing, or is too brief on some topics and others will find it says too much.

Joeles has started an excellent project which allows users to add comments to the user guide, you could be of
service to later newcomers by adding the elements you felt were lacking.

I would encourage you to give CI a decent chance, in spite of your less than smooth start. Take time to read
the guide (it’s good), check out the wiki (will save you lots of time), search the forum (most likely your question
has already been covered) and feel free to ask questions. Try asking one at a time and I think you will be
pleasantly surprised at the response wink

 Signature 

Old programmers never die, they just parse away.

Profile
 
 
Posted: 30 January 2007 05:24 PM   [ Ignore ]   [ # 15 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  145
Joined  01-21-2007

Hi Cimmo2,
  Sorry to hear you have bad first impressions of CI… I personally tried several different frameworks and needed good documentation, the only one that offered decent documentation is CI… Infact overall I cannot fault CI at all… its a great framework that has made it really easy for me to create a client area for my design business. I have only been at it for around 3-4 days and already I have coded almost half the application in the time it took me to read up the documentation on other frameworks…

Honestly… Stick with CI, I believe you will be as impressed when you get dug in as I am after only a few days… if you have any problems, the guys on this forum will be quick to help you out and I can vouch for that….

Stick in there… it will pay off

Profile
 
 
   
1 of 7
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66415 Total Logged-in Users: 35
Total Topics: 84757 Total Anonymous Users: 2
Total Replies: 454849 Total Guests: 235
Total Posts: 539606    
Members ( View Memberlist )