Yii Framework Forum: Guidelines For Posting In This Forum - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Guidelines For Posting In This Forum Rate Topic: ***** 11 Votes

#1 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,899
  • Joined: 04-October 08
  • Location:DC, USA

Posted 13 May 2011 - 09:47 PM

*
POPULAR

Before making your first post

  • check all the forum sections to decide where your question should be posted
  • do not make duplicate posts on same or different forum sections

General guidelines

To get your problems solved effectively and promptly, we suggest you:

  • Describe clearly the problematic phenomenon.
  • Include information about your server/client environment in which you encounter the problem, such as Yii version, operating system, Web server, Web browser, etc.
  • Include code snippet reproducing the problem and try to make it as simple as possible to isolate the problem. People may simply be scared away at seeing hundreds of lines of code. (i.e. do not copy/paste whole controller, model or view files)
  • when posting code use the code button ( <> on the editor toolbar ) for better code readability


Restrictions for new users

Please note that the following restrictions are enforced in order to reduce the spam activities in this forum (sorry for the inconvenience):

  • A newly registered account must wait for 10 minutes before making its first post.
  • A newly registered account can make at most 2 posts during the first 12 hours.
  • An account that has less than 3 posts:
    • is not allowed to comment on other members' profile page.
    • is subject to spam filter check when making new posts, that will:
      • reject a new post if it contains certain spam words
      • reject a new post if it contains external links

After the first 3 posts there are no restrictions.
30

#2 User is offline   binkabir 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 194
  • Joined: 25-July 10
  • Location:Abuja,Nigeria

Posted 14 May 2011 - 08:18 AM

*
POPULAR

Hello.

in addition. new members should try to search for their problems in the forum or wiki first before posting (this will reduce the issues of repeating the same questions on and on and possibly getting more concept on how to solve these problems).
cheers ;D
9

#3 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 19 July 2011 - 04:17 PM

View Postqiang, on 13 May 2011 - 09:47 PM, said:

Include a piece of code snippet reproducing the problem. Try to make the code snippet as simple as possible to isolate the problem. People may simply be scared away at seeing hundreds of lines of code.

That is a very important point, especially for newbies. Many of them are pasting whole views' or controllers' code, while many developers on the contrary - are saying thank you, after seeing post containing a lot of code, without even briefly reading it.
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
2

#4 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 2,084
  • Joined: 16-February 11
  • Location:Japan

Posted 10 September 2012 - 09:57 AM

*
POPULAR

Additional suggestions to the users who ask questions.

1) Give feedback when your problem has been solved.

When you've got an answer or a hint that is of help to you, you should give feedback.

Without your feedback, the one who answered will be uneasy wondering if he has proposed a right solution to you or not. Also the third persons who read your thread will feel the same and may not get much benefit from it.

Nobody knows the real answer but you ... it's unfair. You should share your experience.

2) Don't be disappointed when you got no reply.

There may be many reasons why you got no reply to your question.
  • Your question might not have been stated clear enough.
  • Your question might have been too difficult to get a quick answer.
  • By an unlucky coincidence, those who are willing to answer your question might have overlooked your question.

Anyway, don't be disappointed.
Revise your question and try ask again in the same thread.
Please don't start a duplicated thread (even in other sub forums) by posting the same question.

I assure you that the community of Yii is really a friendly one.
10

#5 User is offline   Rodrigo Coelho 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 665
  • Joined: 05-August 10
  • Location:Rio de Janeiro, Brazil

Posted 03 October 2012 - 08:41 AM

Tip: when your question is related to an extension, try to post it on the official thread of the extension created by its author. The extension authors track these threads and your question has more chances of being replied there.
4

#6 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 25 April 2013 - 01:24 AM

Expanding Rodrigo Coelho's statement:

1. Virtually every extension related question should be asked in Extensions forum. Especially when extension's author doesn't start separate thread.

2. Don't use extension's page comment system to ask a support questions! It is meant to be for reporting bugs and enhancements only! Any question about, how extension work or ask for help in any problem should be addressed only in Extensions forum.

Pity, that most new users does not understand this, and shots extension supports question in general discussion forum or using extension's page comment system.
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
1

#7 User is offline   Rodrigo Coelho 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 665
  • Joined: 05-August 10
  • Location:Rio de Janeiro, Brazil

Posted 29 April 2013 - 03:22 PM

Another advice for people asking questions is to mind the language of your entities.
I believe that we would be able to better understand the relationship of your classes, methods, tables and fields if they're written in English.
1

#8 User is offline   hemc 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 87
  • Joined: 09-July 12
  • Location:New Delhi

Posted 30 September 2013 - 08:39 AM

I think it will be a better idea if user mentions related links that he/she visited and doesn't provide exact solution to the problem.
Please don't add a reply to say thanks, There is already a +1 button to do same.
1

#9 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 2,084
  • Joined: 16-February 11
  • Location:Japan

Posted 06 October 2013 - 08:40 AM

*
POPULAR

Do not share your source code by an attached file.
No one wants to download it.

Do not share your source code via a link to another web page.
No one wants to leave the current page.

Do share your source code in the current post with code tag.
8

#10 User is offline   vijay p s 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 74
  • Joined: 10-January 14
  • Location:India

Posted 28 June 2014 - 01:38 AM

And post your code only in the "insert code snippet".. i helps to view clearly. otherwise its too difficult
0

#11 User is online   Keith 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,653
  • Joined: 04-March 10
  • Location:UK

Posted 16 July 2014 - 06:09 AM

If you've encountered a problem with JavaScript code, such as a dependent drop down, please perform the following preliminary debugging steps and include the information in your post.

  • Open your browser's developer tools and go to the console tab. Reload your page and see if you get any errors. In this case, there may be a problem with The JavaScript code on your page, maybe in a section unrelated to the issue that you're trying to debug.

  • With the console still visible, try to perform the action that triggers the JavaScript code. For a dependent drop down, this would entail changing the value of the first drop down list. Does this cause any errors?

  • If your code is intended to communicate with the server, navigate to the network tab of your developer tools. Was the expected request sent to the server?

  • If so, check the response. Did it return the response code and data that you expected? If not, is there an error message in the returned content that can help you to find the cause of the problem?


You may find that the solution becomes obvious to you after following the steps above. Even if it doesn't, this information will be very helpful to people on the forum, so please include the results in your original post.
1

#12 User is offline   Joblo 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 685
  • Joined: 12-September 10
  • Location:Austria

Posted 18 July 2014 - 02:44 AM

A lot of issues like (empty data, not saved, is not a object, not defined ...) could be solved (maybe by yourself) very quick if you do var_dump or debug.
It's often hard to help without any knowledge of the data you are working with.

Maybe you don't have to post a topic here and you really learn a lot:

1. Please 'var_dump' or 'CVarDumper::dump()' first like:
var_dump($_POST); //check submitted formdata, learn how Yii builds the form variables
CVarDumper::dump($_GET); //learn how Yii handles a gridview, paging ...

var_dump($_FILES);  //problem with uploads

$data = ModelClass::model()->findAll();
var_dump($data); //check data

$data = $dataProvider->getData();
var_dump($data,$dataProvider); //array of models? or array only?


...
die();



2. If possible, install a debugger in your IDE.

- Set a breakpoint inside the controller action that is called and step through the code. You can check ajax calls to the controller action too.

- Step through the whole framework code if necessary.

You can learn a lot how Yii works:

* how Yii handles the request/modules and components - start debugging in index.php
* how the db request works (CDbCriteria, CommandBuilder...)
2

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users