有事没事来多放点。多放点就越来越专业。
研究SugarCRM(一)
上一篇 /
下一篇 2008-02-27 12:27:54
PHP
语法类似C语言,没有强类型变量,字符串和数组都很方便。PHP4支持基本的面向对象概念,PHP5引入了更多的面向对象概念,例如接口等,SugarCRM现在主要用PHP4。
XTemplate
引擎的
工作原理大致如下:
xtpl类读入模版文件(用
HTML写),然后给模版里的变量赋值
,然后xtpl把内容写在文件里,通过HTTP显示在浏览器端。
类似这个公式:template
+ data =
output
具体可以参考sugarcrm下的XTemplate目录下的7个examples。
重点掌握如何实现列表和非列表,SugarCRM是用一个特殊的类ListView.php实现显示列表,比example的列表实现要复杂一些,我会在下篇有关研究SugarCRM的文章中详细讲解ListView.php是如何实现列表的。开发新模块
Writing a custom module is pretty straight forward. Most modules will
contain a primary class representing the information contained in the module
such as Account.php, Opportunity.php, etc. If your module will be displayed in a
tab then you will want and index.php for your module and probably a
ListView.php/html to display a list of objects. You will also need to add the
module to the module.php.
If your module contains information that is related to other modules and you
intend to display the information in the other module, you will need to define a
SubPanelVIew for your module and add it to the other module's DetailView.
If your module contains information you want to display, add or edit then you
will need a DetailView to display the information on a given record and an
EditView to edit the data.
You will also want to add a language file in your module to store UI
text.
The very best way to build a module is to copy one that already exists and
weed out what you don't need. This has two effects - first it helps you learn
what goes into a module and second it is a faster way to get a module structure
together.
A couple of recommendations before starting:
1. Read through index.php and
understand it.
2. Same forSugarBeansince this is the parent of your data object
3. Understand the template
system XTemplate
4. Read through includes/util.php
A Good Way to send sms.
I know a good way to send SMS via a web portal is first to make a simple sql
query to find all customers / leads / contacts to send SMS, and then write a
mesage to send. Then, the phonenumbers and the message is added to a textfile.
The final next step is to upload the file to the service provider via ftp. The
service provider hereby sends out the SMS automatic.
This is a fast and secure service which service providers often offers for a
low cost. If this feature is added, people doesn`t have to read their mail all
the time, and the person who sends messages also know it soon will be read.
导入论坛
收藏
分享给好友
管理
举报
TAG: