Go Back   Cloud Computing > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-02-11, 11:34
BOD Member
 
Join Date: Nov 2010
Posts: 81
Default PHP & use of Namespaces

Hi

I am bit curious to know your opinions about use of namespaces in PHP. Since I am using PHP I could not found any good reason to use them in my coding, however, I've been read it will be useful for the developers.
Reply With Quote
  #2 (permalink)  
Old 03-02-11, 11:36
BOD Member
 
Join Date: Nov 2010
Posts: 57
Default

The actual intent behind using namespaces are avoiding contrasts with various libraries into a code.
Reply With Quote
  #3 (permalink)  
Old 03-02-11, 11:38
BOD Member
 
Join Date: Nov 2010
Posts: 104
Default

Most probably I will not have to utilize them, but I think it is definitely consider several frameworks taking it on, particularly as most of the PHP users shifting from PHP 4 to the newer versions.
Reply With Quote
  #4 (permalink)  
Old 03-02-11, 11:39
BOD Member
 
Join Date: May 2010
Posts: 149
Default

The actual plus point of namespaces in PHP is to avoid disputes among multiple libraries. For example if you import two files with the similar function name, then you'll have a play time with things.
Reply With Quote
  #5 (permalink)  
Old 03-02-11, 11:40
paullopez's Avatar
Administrator
 
Join Date: Nov 2010
Posts: 195
Default

Perhaps it will be helpful in few areas such as naming models and controllers that are not in the core library and do not really follow the directories naming convention.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:07.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.