Part of the EllisLab Network
   
1 of 2
1
CodeIgniter API (PHPDoc or similar?)
Posted: 10 August 2007 09:40 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  43
Joined  08-09-2007

Hey all, doing a bit of development with CodeIgniter and I’ve noticed that the official docs are friendly and very useful, but far from comprehensive and not very quick, as far as getting information. Is there a class reference other than the “Quick Reference” (which isn’t all that great, doesn’t show arguments, etc)?

Thanks,
Tom

Profile
 
 
Posted: 10 August 2007 10:19 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  817
Joined  03-20-2006

To be honest i thought that the user_guide was more than adequate for letting you know what does what.

If you want to have more info, you could always run documenter on the source code?

Profile
 
 
Posted: 10 August 2007 10:21 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  340
Joined  10-02-2006

I think “comprehensive” is the term that best covers the user guide. Without the NOT. Agree about the benefits of a short summary. If you are using BBEdit, I compiled the entire API into clippings with the arguments from the user guide as placeholders. It makes for a good reference in your application menu. It’s in the CI wiki.

 Signature 

Dotted line.

Profile
 
 
Posted: 10 August 2007 10:23 AM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  43
Joined  08-09-2007

It’s not comprehensive as far as code goes… and I’m using jEdit, so no luck with BBEdit.

Profile
 
 
Posted: 10 August 2007 11:07 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Avatar
Total Posts:  7
Joined  03-15-2007

Hello
For just reading and wandering I’m using pages generated by Doxygen.
For jEdit “jumping to” i use Tags plugin (with generated tags with ctags program). Just install Tags plugin and read help for this.

“the user_guide was more than adequate for letting you know what does what”
user_guide is more than “not good enough” when your projects are complicated more than “blog site in 15 minutes” wink
Many of useful parameters are omited in user_guide. Some useful functions too.

Regards

 Signature 
Profile
 
 
Posted: 10 August 2007 12:02 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  817
Joined  03-20-2006

I will agree with kamilko on that front, i have noticed some things omitted from the user_guide that are in the framework.

Lord knows why as they are as useful as the rest of the CI stuff.

I’m sure they have just forgotten or something.

Wasn’t there an alternative user_guide setup somewhere in a wiki type format for people to annotate for CI?

Did i just imagine it?

Profile
 
 
Posted: 16 August 2007 05:40 PM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  43
Joined  08-09-2007

There are really tons of things that the user manual does not document - just a list of all methods and properties would be useful. It’s not as core as the other stuff, but I don’t understand why there isn’t any online documentation like that, since it would take very little time to generate.

Profile
 
 
Posted: 16 August 2007 07:25 PM   [ Ignore ]   [ # 7 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

I’m always interested in making the docs better.  If you find any undocumented functions, please feel free to simply contact me directly.  I’ll get them in there right away.  Great documentation is a high priority for me, and EllisLab, and for CodeIgniter.

tmcw: could you fire off a few quick examples of some of the stuff not documented?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 16 August 2007 08:55 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  43
Joined  08-09-2007

Okay, I’ll just add them as I go…

For one, I need to know what models are loaded at all times (since my project involved some odd dynamic loading.) this is in $this->load->_ci_models; and it would be nice if the rest of the _variables were documented…

Profile
 
 
Posted: 16 August 2007 09:07 PM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  43
Joined  08-09-2007

Also a reference of all globals. For instance, where can I pick up the site root address?

Profile
 
 
Posted: 19 August 2007 06:18 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  43
Joined  08-09-2007

Addendum: the manual doesn’t list all parameters for some common functions, for instance, the third parameter (bool) or $this->load->view();

Profile
 
 
Posted: 19 August 2007 07:51 PM   [ Ignore ]   [ # 11 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

I do see your point, and I’m not meaning to “argue”, as you’re clearly right that there is some room for improvement, but the third parameter of view is documented.
http://codeigniter.com/user_guide/libraries/loader.html

Site url is documented here, and is also available in the url helper as base_url().

Most private functions (ie: those that start with an underscore) aren’t documented, and like you, I think it would be useful if these were documented.  For my part, I will commit to adding these into the docs as they come up and I have time.  If you wanted to save me time by taking a first stab at documenting some of these, that would tremendously accelerate things.

Thanks for your interest tmcw!  I greatly appreciate what you’re trying to accomplish here.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 19 August 2007 08:31 PM   [ Ignore ]   [ # 12 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2280
Joined  07-30-2007

Yeah, I’ve noticed there are a few thing - albeit documented - could use some replication. Namely, the third parameter within the view method (it’s the one I always go looking for).

You’d expect the Views page to say something about it, but it fails to even mentions it’s existence. The Loader class is where you have to go to find it, which is logical (it’s part of the Loader class) - but it could help greatly, and minimize some questions on here, if it where mentioned in both locations.

 Signature 

Follow me on twitter here.
MichaelWales.com | MichaelWales.info

Profile
 
 
Posted: 19 August 2007 08:33 PM   [ Ignore ]   [ # 13 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4777
Joined  03-23-2006

Agreed.  If you ever feel that the docs could use some clarification, you can always offer me a note on that page.  I’m not trying to “pawn off the work”.  My goal is to empower you!

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 31 August 2007 05:14 PM   [ Ignore ]   [ # 14 ]  
Grad Student
Rank
Total Posts:  43
Joined  08-09-2007

Another suggestion: could there be a list of all the parts of CodeIgniter that function differently (or not at all) under PHP4 vs. PHP5? I just transferred a site over from Dreamhost to a batshit-insane locked-down school server and it’s a mystery why various things didn’t work. For one thing, renaming models, as in

$this->load->model($model'working_model');
             
$tree $this->working_model->tree(); 

doesn’t seem to work…

Profile
 
 
Posted: 16 April 2009 11:15 AM   [ Ignore ]   [ # 15 ]  
Summer Student
Total Posts:  1
Joined  04-16-2009

This isn’t the point…

It’s so slow to read through the user guide, where if you go search javadoc or something, you can see every single function, their visibility, parameters, return types, descriptions, examples, etc… 

There should be something similar done for CodeIgniter.  The user guide is great if you’re looking to read words, but it’s ultimately slower.

PS: I know this thread is old, but I figured it’s worth reviving.

Profile
 
 
   
1 of 2
1