As a sequel to the post about multistep forms with CakePHP, I’d like to add a little bit of complexity to that sample. This time we’ll add some dynamically generated fields and, in general, serialized data.
May 29, 2013
Write less code: merge Save and Edit in CakePHP
In most cases writing less code gives the developer a series of
advantages: it’s easier to maintain and extend, easier to read and
easier to debug! In this post I’m going to suggest a little CakePHP tip
that in the long run will save you a lot of coding.
Some develepers already implement this method, but I think it deserves much wider usage: I’m talking about merging model save and edit in a single controller method.
Some develepers already implement this method, but I think it deserves much wider usage: I’m talking about merging model save and edit in a single controller method.
Multistep forms in CakePHP 2.2.2
One of the features I really love about PHP frameworks
is form management. Coding forms in plain PHP can easily become a pain
if not well planned out. Multistep forms take this complexity even
further, especially when you care about user experience.
In this tutorial you’ll be amazed by how much little code can manage a whole full featured multistep form when taking advantage of CakePHP powerful classes. We’ll build the form in only 60 lines of controller code.
In this tutorial you’ll be amazed by how much little code can manage a whole full featured multistep form when taking advantage of CakePHP powerful classes. We’ll build the form in only 60 lines of controller code.
May 25, 2013
CsvExport Behavior for CakePHP 2
This
behavior is the exact opposite of the CsvImport behavior included in
the Utils plugin from CakeDC. This Behavior will end on github but for
now, here is the source code and instructions on how to use the
Behavior.
Enable CSV Import for all controllers/models in a CakePHP 2.x project
I
often use phpMyAdmin to import csv data into projects I am building,
this can be tedious as phpMyAdmin requires the number of fields and
field order to match exactly for the csv import to work.
This frustration prompted me to explore the Utils plugin by CakeDC which contains a CsvImport behavior. I wanted this functionality for all of my controllers/models during the development process. Import functionality will eventually end up under the admin interface of my project. If you use admin routing and would like the import functionality only available through an admin url simply change the method name below to admin_import().
This frustration prompted me to explore the Utils plugin by CakeDC which contains a CsvImport behavior. I wanted this functionality for all of my controllers/models during the development process. Import functionality will eventually end up under the admin interface of my project. If you use admin routing and would like the import functionality only available through an admin url simply change the method name below to admin_import().
May 14, 2013
May 13, 2013
Theme Ace CakePHP 2.x
Trong quá trình thiết kế website có lẽ các pro cũng gặp không ít khó khăn trong vấn đề giao diện. Tôi cũng vậy, vấn đề đã được giải quyết 1 cách tuyệt vời với theme Ace như demo bên dưới. Tôi không cần nói nhiều các bạn có thể tự tìm hiểu về cách thiết kế theme trong cakephp để tự làm cho mình 1 theme vừa ý hoặc để ít tốn thời gian các bạn có thể liên hệ với tôi, 1 chút phí điện cho có tinh thần đó mà.
Giới thiệu:
Link Demo
Giới thiệu:
Link Demo
OpenCA - CÀI ĐẶT SUBCA
Cài đặt các thư viện cần thiết:
yum install -y gcc-c++
yum install -y openssl-devel db4 db4-devel mysql-server mysql-devel perl-XML-Parser httpd
Subscribe to:
Posts (Atom)