10/10/2018, 10:51
hoi ve symfony templace engine?
Chao a/c em la web designer. Xếp e bảo nghiên cứu về symfony nhưng cái này e chưa hiểu lắm về nó. nó dùng code php???/ Em ko biết nó thuộc developer or design?
you want me learning symfony. but i not good at php. i only know asp
xếp: Do you think you can learn?
So actually, what I want, is that you learn the " template engine"
Because you're web-designer so it will be very good for you.
symfony is framework aplication of php ah? i will try
Xếp : Yes. Correct.
In this framework, there is "template" engine, like Smarty. You know smarty?
It is similar.
Xếpi: It is "how to make a design for Symfony framework"
It's ok.
http://components.symfony-project.org/templating/
you want me learning symfony. but i not good at php. i only know asp
xếp: Do you think you can learn?
So actually, what I want, is that you learn the " template engine"
Because you're web-designer so it will be very good for you.
symfony is framework aplication of php ah? i will try
Xếp : Yes. Correct.
In this framework, there is "template" engine, like Smarty. You know smarty?
It is similar.
Xếpi: It is "how to make a design for Symfony framework"
It's ok.
http://components.symfony-project.org/templating/
Bài liên quan
http://nguyenvantrong.wordpress.com/...y/php/symfony/
Tuy nhiên ngôn ngữ trong template engine của symfony chính là php đơn thuần chứ không như Smarty sáng tạo ra một ngôn ngữ cho riêng template engine của mình. Vì vậy nếu cậu tìm hiểu một chút về php cơ bản (các lệnh echo, các vòng lặp, điều kiện if else..) thì sẽ đọc được các file template của symfony ko khó khăn lắm. Ngoài ra cậu nên tìm hiểu cách symfony sắp xếp các file template, partial, layout ( có thể tham khảo ở đây: http://www.symfony-project.org/gentl...the-View-Layer ), mới nhìn có vẻ phức tạp nhưng khi đi vào tìm hiểu mới thấy cũng đơn giản thôi.
Ngày trước có mấy bác quảng bá cho Symfony ghê lắm, tớ thấy vui vui cũng nhảy vào vọc thử một chút, nhưng vốn không thích chơi với các framework nên sau bỏ