We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Where can I find the documentations include details of params of each API?

For example, in this piece of sample code :


 $session = new Redis([
     'uniqueId'   => 'my-private-app',
     'host'       => 'localhost',
     'port'       => 6379,
     'auth'       => 'foobared',
     'persistent' => false,
     'lifetime'   => 3600,
     'prefix'     => 'my_'
     'index'      => 1,
 ]);

What does each item mean of the array as parameter? How will the items be used if I set them, such as uniqueId, prefix, index.

And how to format codes in this editor by the way.



43.9k

Hi,

And how to format codes in this editor by the way.

First a blank line

Then three opening backticks with the language you want to highlight: ```php

another blank line

YOUR CODE

another blank line

Then three closing backticks ```

This is the most documented pages i can find:

https://docs.phalcon.io/en/3.0.0/reference/cache.html#redis-backend-options

https://docs.phalcon.io/en/3.0.1/api/Phalcon_Cache_Backend_Redis.html

Phalcon docs are indexed very good in Google. So i always write "phalcon something" and "phalcon something class" and i get everything i need. I add class to the search when i need to see all class methods.

Thank you very much. You are right, It is much eaiser to seach document with google than seek it in phalcon documentation.

But I still think that the documentation of phalcon is not good enough. It is difficult to know details of APIs' feature, such as the type of return value of method, more detailed information about parameters, even some methods only have a name in document.

This is the most documented pages i can find:

https://docs.phalcon.io/en/3.0.0/reference/cache.html#redis-backend-options

https://docs.phalcon.io/en/3.0.1/api/Phalcon_Cache_Backend_Redis.html

Phalcon docs are indexed very good in Google. So i always write "phalcon something" and "phalcon something class" and i get everything i need. I add class to the search when i need to see all class methods.

Thanks! There is not sign made me to know that markdown syntax was supported.

Hi,

And how to format codes in this editor by the way.

First a blank line

Then three opening backticks with the language you want to highlight: ```php

another blank line

YOUR CODE

another blank line

Then three closing backticks ```

To be honest I never had problems with method params and anything else. When I need to see more details I see the class footprint (second link i gave you). If you see sometihng missing you can always make a pull request in git or ask in forum. The guys are doing whatever thay can to make Phalcon great :)

About how to use markdown and other forum things you can see the help page.