PHP programming

Blocksare the brains behind magento's templating scheme.Blocks for anested set of objects that coordinate the models with the templatefiles. Each block controls one template file: a simple html and phpmixed file with a .phtml extension.



Allblocks extend the base class Mage_Core_Block_Template, which inturn,extends Mage_Core-Block_Abstract. The chief method of a blockis its toHtml() method.This method translates the block's templatefile into html using the renderView()method.



The roleof a resource in magento is to manage databaseconnnections.Resources are defined under the globla xml tag of anyconfig.xml file.



Magentowidgets are magento extensions with a predefined set ofconfiguration options.


And database change you make should bescripted; this includes schema and data changes.Magento will get acollection of all the setup resource and their corresponding moduleversion numbers from the config,xml files.


Magento will then go to the core_resourcetable and get a collection of all the setup resource and theirversion numbers stored in the table.


If the setup resource does not exist inthe core_resource table, it will run an installscript.

If the resource version in the databaseis less than the one in the config.xml files. It will run one tomant update scripts.If the resource version in the database isgreater than the one In the config.xml file, it will ruan arollback script.


A node is an abstract object that maycontain data and may have relationship to othernodes.


variable_get() function is a wrapperfunction for reading the global $conf variable.Joomla operatedsdirectly with the PHP language and the joomla application itself isa framework of php classes. By addressing some of the joomlaobjects such as Jdocument and JdocumentHTML in your templates code,you can render output of modules and components, as well asretrieve information about the current executionenvironment.



The function you used in the basictemplate called the include method of the jdoc object. TheJdocument class is the class that you will spend most of your timecalling.There is one primary function or method within jdoc that isused within a template:include.


Patterns that are classified ascreational related to the mechanisms of the creation ofobjects.


All APIs need to accept request.Typically, with a RESTful API, you will have a well-defined URLscheme.


Dijit, the widget system built on Dojo,can do the heavy lifting for you. A widget, also called a Dijitcomponent, Is a user interface control build from html andjavascript. You create one by adding a simple dojoType = attributeto an html tag.



Dojo's remote scripting facilities enablea client-side script to communicate with a server without a pagereload.dojo.data is an api specification like jdbc or odbc. Adojo.data driver implements this specification and responds torequests from your data-enabled widgets or javascriptcode.


Every object in javascript contains areference to another object termedd its prototype.Since theprototype is another object itself,it also contains a reference toits prototype.This forms a chain of objects. The chain terminateswith the prototype for the build-in Objecttype.



When dojo.connect is used to connect ahandler to a trigger function, then handler is automaticallyinvoked after the trigger function completes and is passed the samearguments that were provided to the triggerfunction.




In thepublish-subscribe pattern, serveral functions register theirinterest in a topic. The function dojo.query takes a css selectorand returns an array of nodes that match the selector. The array ofnodes is returned in a Dojo NodeListobject.



Event injavascript or dojo based applications are essential to makingapplications work.Connecting an event handler to an element or anobject is one of the most common things you will do when developingapplications using dojo. The dojo.io package provides portable codefor xmlhttp and other, more complicated, transportmechanism.



You canalso link from a view to another view ,using the link_tomethod,which creates hyperlinks.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值