If you apply the PHP function utf8_encode() to an already-UTF8 string it will return a garbled UTF8 string. This class addresses this issue and provides…
Have a nice day!
If you apply the PHP function utf8_encode() to an already-UTF8 string it will return a garbled UTF8 string. This class addresses this issue and provides…
Grid là một layout có sẵn của Magento, nó được sử dụng để hiển thị 1 danh sách nào đó như là Customer, Order, Product. Ngoài việc hỗ trợ hiển thị kiểu danh sách ra Grid còn tích hợp cả chức năng search, filter theo ajax, mass action.
Ngoài việc sử dụng web form có sẵn của Magento để tạo Customer, chúng ta vẫn có thể tự tạo ra 1 Customer bằng code. Đây là 1 ví dụ đơn giản về việc tạo Customer, qua đó có thể áp dụng để viết các chức năng import hàng loạt Customer hay Social Login.
Cấu trúc module của Magento được thiết kế dựa trên mô hình MVC và thường có các folder sau: Block, Controllers, Helper, Model, Sql.
Codepool dịch ra thì là “bể code”, ý nghĩa cũng giống connection pool vậy ^^. Codepools trong Magento được chia ra làm 3 loại tương ứng với 3 folder khác nhau: Community, Core, Local. Magento cũng set 3 folder vào include_path để tạo ra cơ chế override theo thư mục.