PHP扩展Xdebug学习使用总结(使用教程、不正确显示错误)

piaoling  2011-05-03 16:13:10

最佳用了下Xdebug这个扩展,说实话,非常好用。这个对查看错误以及运行效率极为有效。 PHP100张恩民老师最近出了2期视频也是介绍Xdebug的。 我在这里给一些引子: 1.PHP100视频101:http://www.php100.com/html/shipinjiaocheng/PHP100shipinjiaocheng/2011/0103/7201.html 2.PHP100视频102:http://www.php100.com/html/shipinjiaocheng/PHP100shipinjiaocheng/2011/0110/7270.html 3.我也装了下,发现不能像视频中说的那样显示错误,解决方案为:将php.ini中html_errors 设置为On. 4.一定注意安装路径问题......

类别 :  PHP(78)  |  浏览(4093)  |  评论(0)

Magento’s Many 404 Pages

piaoling  2011-05-03 15:31:39

The 404 page has a long and illustrious history in the world of web development. What started as a simple, unfriendly error message has turned into a key part of any site’s experience, and any retail outlet’s conversion rate. Like many other PHP frameworks, Magento faces the challenge of providing a unified 404 experience. Also like many other PHP frameworks, Magento has punted that responsibility onto the end user-developer of the system. In this article we’ll explore the various ways that the Magento cart application generates 404 pages, which will allow you to make educat......

类别 :  magento(258)  |  浏览(3049)  |  评论(0)

11 Magento Default System Configuration Values

piaoling  2011-05-03 15:24:06

This is more of an addendum to my previous articles on the System Configuration system than an entirely new article. Go back and read up if anything’s over your head. When you create a new System Configuration path, Magento doesn’t store a default value. This is true even for the default stock system configuration. You can confirm this by looking at the core_config_data table. mysql> select * from core_config_data ; +-----------+---------+----------+----------------------------+------------+ | config_id | scope | scope_id | path | value | +------......

类别 :  magento(258)  |  浏览(2647)  |  评论(0)

10 Magento System Overrides and Upgradability

piaoling  2011-05-03 15:23:31

An oft-touted and often overused feature of The Magento Ecommerce System is the ability to override core system behavior. Another oft-discussed topic for Magento developers is upgradability, and how overrides get in the way of that. Today we’re going to look at the various ways overrides make switching versions difficult. Before we begin, it’s important to point out we’re talking about changing the core “Business Logic” of Magento. Changes to phtml templates are both expected and common in all but the simplest of stores. Hacking the Source The “least ......

类别 :  magento(258)  |  浏览(2607)  |  评论(0)

9 Varien Data Collections

piaoling  2011-05-03 15:22:37

Originally, as a PHP programmer, if you wanted to collect together a group of related variables you had one choice, the venerable Array. While it shares a name with C’s array of memory addresses, a PHP array is a general purpose dictionary like object combined with the behaviors of a numerically indexed mutable array. In other languages the choice isn’t so simple. You have multiple data structures to chose from, each offering particular advantages in storage, speed and semantics. The PHP philosophy was to remove this choice from the client programmer and give them one useful dat......

类别 :  magento(258)  |  浏览(4414)  |  评论(0)

8 In Depth Magento System Configuration

piaoling  2011-05-03 15:20:59

Last time we talked about Magento’s System Configuration system. If you missed it, you’ll want to go back and catch up. So, we glossed over a lot of the tags you could use within an individual field. <fields> <!-- ... ---> <fieldname translate="label"> <label>Field Name</label> <frontend_type>text</frontend_type> <sort_order>2</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>0<......

类别 :  magento(258)  |  浏览(2752)  |  评论(0)

7 Custom Magento System Configuration

piaoling  2011-05-03 15:20:10

One of the more powerful parts of the Magento eCommerce System is the Admin’s System Config section. As a developer, it will allow you to quickly and easily setup forms elements that allow your end-users to configure their Magento System and your custom modules. Like a lot of things in Magento, it can be intimidating the first time you attempt to setup a new configuration section from scratch, but once you’ve done it once the power of (nearly) code-less forms will become addictive. Let’s get started. We’ll be building off the module we created in the Magento Contro......

类别 :  magento(258)  |  浏览(2653)  |  评论(0)

6 Magento ORM: Entity Attribute Value; Part 1

piaoling  2011-05-03 15:18:51

In our last article we told you there were two kinds of Models in Magento. Regular, or “simple” Models, and Entity Attribute Value (or EAV) Models. We also told you this was a bit of a fib. Here’s where we come clean. The following is part of a longer series about Magento aimed at developers familiar with PHP MVC development. While each article can be read stand alone, each article does build on concepts and code covered in previous articles. If you’re confused, be sure to catch up on the older stuff first. ALL Magento Models inherit from the Mage_Core_Model_Abstra......

类别 :  magento(258)  |  浏览(4520)  |  评论(0)

5 Magento Setup Resources

piaoling  2011-05-03 15:17:56

On any fast paced software development project, the task of keeping the development and production databases in sync become a sticky wicket. Magento offers a system to create a versioned resource migration scripts that can help your team deal with this often contentious part of the development process. The following is part of a longer series about Magento aimed at developers familiar with PHP MVC development. While each article can be read stand alone, each article does build on concepts and code covered in previous articles. If you’re confused, be sure to catch up on the older stuff......

类别 :  magento(258)  |  浏览(2711)  |  评论(0)

4 Magento Models and ORM Basics

piaoling  2011-05-03 15:17:19

The implementation of a “Models Tier” is a huge part of any MVC framework. It represents the data of your application, and most applications are useless without data. Magento Models play an even bigger role, as they typically contain the “Business Logic” that’s often (right or wrong) relegated to the Controller or Helper methods in other PHP MVC frameworks. The following is part of a longer series about Magento aimed at developers familiar with PHP MVC development. While each article can be read stand alone, each article does build on concepts covered in previo......

类别 :  magento(258)  |  浏览(2839)  |  评论(0)
  • Page:62/145  1448 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类