Url Function : 关于在magento中常常用到的调用url的方法
2010-01-10 20:00
183 查看
url的function:
$this->getBaseUrl()----return the base url of your store
相当于$this->getUrl('')一样
$this->getSkinUrl()----return the url of the folder containing your csss images and local js files(eg skin/frontend/default/your_theme, will vary depending on what package and theme the page is using)
$this->getJsUrl()-----returns the url of the main js folder. so if you want to include a new js library from a template you can use this.
这些参数的参数都是可有可无。如果参数是'index.xml'它会直接在已经得到的路径上加上这个字符串得到新的路径。
$this->getImageSrc()
$this->getImageAlt()
$this->getCopyright();
$this->getWelcome();
都是直接取得在后台configration/design里面已经有定义的了。
$this->getBaseUrl()----return the base url of your store
相当于$this->getUrl('')一样
$this->getSkinUrl()----return the url of the folder containing your csss images and local js files(eg skin/frontend/default/your_theme, will vary depending on what package and theme the page is using)
$this->getJsUrl()-----returns the url of the main js folder. so if you want to include a new js library from a template you can use this.
这些参数的参数都是可有可无。如果参数是'index.xml'它会直接在已经得到的路径上加上这个字符串得到新的路径。
$this->getImageSrc()
$this->getImageAlt()
$this->getCopyright();
$this->getWelcome();
都是直接取得在后台configration/design里面已经有定义的了。
相关文章推荐
- jsp中iframe所包含的页面调用父页面的function方法
- MUI关于父子页面交互之,子页面调用父页面的方法实现一些功能
- 关于js调用接口 或者js方法 后立即跳转
- 关于Java中Scanner对象的hasNext()方法对实现Readable接口的对象中的read()方法调用的探讨
- 关于datagrid中控件利用js调用后台方法事件的问题
- 在python中调用自己写的方法或函数function
- 关于java成员内部类(普通内部类)在main方法中调用
- 关于ListView的数据刷新问题(notifyDataSetChange()方法的调用场景)
- 关于ognl调用静态方法
- c#中调用IE打开Url地址的方法 winfrom
- JAVA学习日志 关于调用方法、生成对象的例子。还是用数字卦程序修改
- ios开发中,关于javascript直接调用oc代码而非通过改变url回调方式
- php调用远程url的六种方法
- 关于提示“处理URL时服务器出错”和“HTTP 500错误“的解决方法
- Objective C类方法load和initialize(关于它们的执行时环境与load调用对父类initialize方法的影响)
- 关于HttpURLConnection遇到ava.io.FileNotFoundException的解决方法
- 关于Android中Adapter调用notifyDataSetChanged方法无效解析
- 关于Python的函数(Method)与方法(Function)
- 拦截电话---> 关于利用反射 调用系统 hiden的 方法
- 关于用mybatis调用存储过程时的入参和出参的传递方法