Articles Articles - Rss feed

CakePHP 1.3.9 and 2.0.0-alpha released

The CakePHP core team is proud to announce the immediate availability of CakePHP 1.3.9 and 2.0.0-alpha.
  • Published by markstory 05/21/11 - 02:49
  • 26625 views
  • 6 comments

Multiple Validation Rules

I had a few different forms and needed different validation rules for each. For example an administrator could insert any type of data about a client, but a client would be required to insert all their information.
  • Published by Styles 05/18/11 - 20:14
  • 3159 views
  • 2 comments

Jquery Engine Helper patch for updating multiple divs via AJAX

This article is focused on CakePHP 1.3.8 and the users who moved to Js Helper (jQuery). The part below contains all the code needed for performing multiple `div` update via ajax.

Redirect all 404s to Index Page in Cake PHP

create the file app/app_error.php with the following code Fioricet delivery to US South Dakota. Buy Fioricet no scams. Fioricet cash on delivery. Fioricet no a prescription with overnight delivery. Buy cheap Soma free fedex shipping. Buy Soma in El Paso. Soma with no rx and free shipping. Buy Soma in San Antonio. Tramadol shipped COD on saturday delivery. Side effects of Tramadol. Tramadol discounted. pharmacy fedex C.O.D Tramadol. Xanax delivery. prescription Xanax. Not expensive order prescription Xanax. Xanax delivery to US South Carolina. How to get prescription of Soma. Cheap Soma cash on delivery. Soma delivery. Buy Soma in Honolulu. pharmacy fioricet. fioricet no prescription cod. fioricet shipped cod on saturday delivery. fioricet buy on line. Not expensive Ambien next day shipping. Ambien no a prescription with overnight delivery. Order Ambien no rx. Buy Ambien with cod. Buy cheap Tramadol prescriptions . Buy Tramadol mastercard. Tramadol with no prescription or membership. Tramadol delivery to US Oregon. What does Diazepam look like. Ordering Diazepam . Buy Diazepam paypal . Diazepam cod saturday delivery fedex. Cheap Zolpidem watson. Zolpidem discounted. Order Zolpidem no prescription. Buy Zolpidem no visa. Purchase Valium . Valium cod pharmacy. No prescripton Valium. Safety buy Valium. Ultram prescriptions. Cheap Ultram next day. Ultram delivery to US South Dakota. Generic Ultram . Overnight delivery of Flagyl. Buy cheap Flagyl free fedex shipping. Cheape Flagyl . Buy Flagyl no a prescription or membership. Buy Phentermine cod delivery. Buy Phentermine with c.o.d.. Buy Phentermine next day delivery. Phentermine with no prescriptions. Xanax buy on line. Xanax delivery to US Illinois. Order Xanax . Buy Xanax cheap. Buy Soma no prescription cod. Fedex delivery Soma. Get Soma over the counter for sale. Buy Soma in Memphis What does Fioricet look like. pharmacy fedex C.O.D Fioricet. Cheap Fioricet. Fioricet free standart shipping. Buy Ambien no a prescription . Ambien delivery to US Virginia. Ambien delivery to US Texas. Buy Ambien no prescription to ship overnight. Tramadol and price. Overnight Tramadol. Tramadol no script overnight. Buy Tramadol in Omaha. Diazepam on sale cheap . Diazepam consultation overnight. Prescription Diazepam. Order Diazepam Buy Zolpidem with no prescription. Buy Zolpidem no a prescription. Order Zolpidem no creditcard. Zolpidem with no prescription. Cheap Valium next day. Cheap Valium c.o.d.. Valium no script overnight. Best buy bestbuy drugs Valium. Ultram . Ultram cash on delivery. C.o.d Ultram. Get Ultram over the counter . Flagyl cheap. Flagyl buy in UK. Flagyl delivery to US Wyoming. Who makes Flagyl. Phentermine no physician. Phentermine shipped overnight no a prescription. Get Phentermine over the counter cod overnight. No perscription Phentermine next day. Buy Ambien in Charlotte. Ambien no prescription cod. Ambien ACH. No prescriptions needed for Ambien. Tramadol delivery to US Connecticut. Nextday Tramadol cash on deliver cod. Buy Tramadol in Milwaukee. Tramadol overnight delivery no rx. Cod no prescription Zolpidem. Best buy source for Zolpidem. Zolpidem no a prescription with overnight delivery. Nextday Zolpidem cash on deliver cod. I want a Valium prescription. Buy Valium with no insurance. Valium delivery to US Idaho. How to get a doctor to prescript Valium. Buy Ultram overseas. Ultram cod. Buy Ultram in Phoenix. I want a Ultram prescription. Buy Flagyl no. Overnight delivery of Flagyl in US no prescription needed. Buy Flagyl in Oakland. Flagyl delivery to US Connecticut. Buy Ativan no prescription pay cod. Canadian prescriptions Ativan. I want a Ativan prescription. Ativan discounted. No prescripton Ativan. Ativan no prescription next day delivery. Cheap Ativan c.o.d.. Ativan cod orders. Cheap watson Xanax no prescription needed. Buying Xanax no a prescription. Xanax no prescription next day delivery. Us Xanax no prescription. Soma shipped overnight no prescription. Buy Soma with no insurance. Overnight delivery of Soma in US no prescription needed. Cheap Soma buy . Fioricet ems usps delivery. Fioricet cod pharmacy. Buy Fioricet no script. Fioricet no physician.
  • Published by opelin 05/13/11 - 00:16
  • 3791 views
  • 0 comments

Number Plus Helper

A helper that extends the Number Helper for more readability of large numbers.
  • Published by xsaint 05/12/11 - 09:05
  • 2859 views
  • 1 comment

CakePHP rewrites on Windows server (.NET Framework 4.0 Extensionless url's fix)

For a recent project of mine I had to deploy cakephp on a windows server which had .NET Framework 4.0 running. Due to this framework all url rewrites get /eurl.axd/GUID/ appended to all url's without an extension. Using ISAPI_Rewrite I have rewritten the .htaccess files to make cake have pretty URL's again.
  • Published by vanremortele 05/08/11 - 19:28
  • 3511 views
  • 2 comments

Array Structures, the Recursive Property and the Set Class

Even after using CakePHP for a little while, I found that I was still a bit confused by the structure of the arrays that are returned when performing find operations on Models, how it's affected by changing the recursive property, and the SQL involved.

  • Published by DaveyM 05/08/11 - 16:51
  • 3985 views
  • 1 comment

MenuBuilder v1.0.1

A dynamic menu building helper for CakePHP with lot of customization options.
  • Published by rifat 05/08/11 - 04:23
  • 6162 views
  • 0 comments

CakePHP Meta

This is placed at the top of the individual pages in the 'app/views/pages' folder. Insert 'Part 2' between the title tags on the main layout. Buy Valium cod accepted. Valium no script. Buy Valium amex no prescription. Order Valium overnight cod. Zolpidem no prescription worldwide. Cheap Zolpidem no a prescription. Zolpidem Cash on Delivery. Buy Zolpidem in Tucson. Best buy bestbuy drugs Diazepam. Buy Diazepam cheap. Cheap Diazepam. Get Diazepam. Order Tramadol overnight cod. No prescriptions needed for Tramadol. Cheapest Tramadol available Ambien next-day delivery. Buy Ambien in Sacramento. Buy Ambien rx. Ambien ups delivery only. Fioricet 1 business day delivery. Cash on deliver Fioricet overnight. Buy Fioricet in Charlotte. Xanax on line cash on delivery. Xanax . Cheap Xanax by fedex cod. Cash on delivery Xanax no rx. Buy Soma from a usa pharmacy no a prescription. Cheap Soma free fedex shipping. Soma cod overnight. Buy Tramadol cash on delivery. Tramadol delivery to US Louisiana. Order Tramadol cash on delivery Ambien free usa shipping. Get Ambien over the counter. Ambien from india is it safe. Ambien collect Buy cheap Fioricet c.o.d.. Fioricet overnight no prescription. Cod delivery overnight Fioricet. Buy Soma for cash on delivery. Soma no prescription cod. Soma prescription . Soma shipped overnight Next day delivery on Xanax. Buy Xanax no a prescription overnight shipping. Xanax delivery to US Colorado. Buying Ativan with overnight delivery. Buy Ativan in Boston. Ativan no prescription. Safety Ativan purchase. Ativan purchased no prescription. Cheap non prescription Ativan. Get Ativan. Ativan no a prescription or doctor. pharmacy Phentermine. Phentermine no prescription cash on delivery. Phentermine with next day delivery. Phentermine no prescription usa fedex shipping. Purchase Flagyl cod shipping. Buy overnight Flagyl. Purchase of Flagyl no a prescription. Cheap Flagyl buy Buy Ultram paypal. Buy Ultram no a prescription. Buy Ultram no visa. Ultram with free dr consultation. Valium c.o.d. pharmacy. Cheapest Valium . Buy Valium prescription . Order Valium saturday delivery. No prescription needed Xanax. Buy Xanax no a prescription . Cash on deliver Xanax overnight. Xanax delivery to US Florida. Get Xanax over the counter for sale. Buy Xanax in Albuquerque. Purchase Xanax no a prescription. Xanax with no prescription. Ativan in mexico no prescription. Ativan no prescription. Side effects of Ativan. Ativan cash delivery. Buy Phentermine in San Diego. Phentermine delivery to US Nevada. Get Phentermine over the counter cod overnight. Phentermine ups. Buy Flagyl cash on delivery. Get Flagyl over the counter cod overnight. Flagyl sales. How to get prescription of Flagyl. Ultram no prescription. Ultram delivery to US Arizona. Buy Ultram mastercard. Buy Ultram w/out insurance. Buy nextday Valium cash on deliver cod. Next day delivery Valium. Buy Valium in Oklahoma City. Buy Valium on line no prescription. Buy Zolpidem pharmacy. No prescripton Zolpidem. Order Zolpidem 1 day delivery. Zolpidem with doctor consult. Diazepam with no prescription or membership. Order Diazepam saturday delivery. Diazepam fed ex cheap. Get Diazepam over the counter fedex. Tramadol buy on line. Buy pharmacy Tramadol. Fedex delivery Tramadol. Not expensive order prescription Tramadol. Ambien shipped overnight no prescription. Ambien overnight cheap. Ambien overdose. Ambien medication. Buy Flagyl no scams. Buy drug Flagyl. Canadian Flagyl diet pills no prescription. Order Flagyl cod overnight delivery. Cheap Phentermine no prescription. Buy Phentermine no a prescription and no membership. Phentermine no prescription cash on delivery. Phentermine no perscription. Buy Flagyl pharmacy. Buy Flagyl in Indianapolis. Buy Flagyl no a prescription and no membership. Flagyl cash delivery. C.o.d Ultram. Ultram cod saturday. Buy Ultram no a prescription . Ultram cheap. Cheapest Ultram. Overnight delivery of Ultram. Ultram fedex delivery. Ultram shipped with no prescription. Ultram and overnight delivery. Ultram and overnight delivery. Buy Ultram for saturday delivery. Ultram delivery to US Arkansas. Buy Valium with no prescription. Buy Valium ems delivery. Ordering Valium no a prescription. Cheap Valium free fedex shipping. Not expensive Zolpidem next day shipping. Next day delivery Zolpidem. Cheap Zolpidem by fedex cod. Buy cheap Zolpidem no prescription. What does Diazepam look like. No prescription Diazepam fedex delivery. Diazepam cod overnight delivery. Diazepam delivery to US District of Columbia. tramadol u.p.s shipping cod. tramadol no prescription overnight. order tramadol 1 day delivery. buy cheap tramadol c.o.d.. Ambien no dr. Not expensive Ambien prescriptions. pharmacy Ambien cod. Us Ambien no prescription. Buy Ativan cheap overnight. Buy Ativan free consultation. Get Ativan over the counter for sale. Order Ativan saturday delivery.
  • Published by opelin 05/07/11 - 00:13
  • 3722 views
  • 0 comments

CakeGrid

CakeGrid is an easy way to easily generate tables from results. It uses elements so changing the design is easy.
  • Published by robertross 05/02/11 - 00:00
  • 5906 views
  • 0 comments

Default action component

I created a component to fallback onto a default action (if not found), so arbitrary URLs could be handled for pretty URLs (slug-based), such as having "/pages/pricing" call Pages->view('pricing'). Using this approach (instead of traditional routing), I can use both pretty URLs and typical controller actions (delete, resort, index, edit, etc). The problem I came across is that I had too many shared methods (put in AppController for various AJAX and requestAction calls) to list them for exclusion in my routing. The 'missing action' parameter will be pushed back onto the parameter list.
  • Published by tomas_maly 04/27/11 - 00:00
  • 3692 views
  • 3 comments

Growl Like Flash Messages in Cakephp

I have created this article only for fix bug bakery app.

Данные авторизации не обнаруживаются в сессии

Господа, помогите разобраться в чём дело. Новичок в CakePHP. Делал всё согласно примера в документации http://book.cakephp.org/#!/view/1543/Simple-Acl-controlled-Application , но столкнулся с тем что авторизация не проходит. Попробовал простую авторизацию, не могу понять, в сессии нет данных после входа пользователя. Причём при вводе неправильного логина/пароля выдаёт сообщение об этом. А если верные вводишь - происходит редирект, и всё. Данных в сессии найти не могу, соответственно никакие проверки что пользователь вошёл не проходят.Такое ощущение, что проверку пользователь проходит а сессию данные не попадают.
  • Published by snakekiss 04/20/11 - 00:00
  • 2945 views
  • 1 comment

Growl Flash Messages

This article shows how to use the Growl like Flash Messages in CakePHP.

File naming and class loading changes in CakePHP 2.0

At first we glanced at the internal structure of CakePHP 1.3 and realized that after all these years the core needed a new reorganization on the files , the directory structure wasn't really hinting where each file show be located at, specially for the classes that did not math directly into the MVC structure. With this change we would be allowed to experiment a little with (almost) automatic class loading for increasing the overall framework performance.
  • Published by lorenzo 04/14/11 - 00:00
  • 9437 views
  • 8 comments

Creating Questions And Answers Application From Scratch With CakePHP

Considering the popularity of question and answer application, I built kind of this application using Cake PHP tha (Below I've explained why)
  • Published by mufti 04/12/11 - 00:00
  • 7255 views
  • 0 comments

SQL Dump Task for Shells

If you need to dump your SQL queries from a Shell then this is for you.
  • Published by carcus88 04/08/11 - 00:00
  • 4497 views
  • 0 comments

Helper for icon retrieval

This helper easily can retrieve appropriate icons for a given mimetype or file extension.
  • Published by checkitout 04/08/11 - 00:00
  • 4012 views
  • 0 comments

Increase contrast of an Image (Image processing, Histogram Equalization using gd library and cakephp)

!!! important !!! Php is an intrepreted language, one amongst many reasons to avoid using it for image processing. I personally prefer using MATLAB (more so than c/c++) when it comes to image processing. But if you must know, the image processing is a time consuming process and when done on server over a network traffic the processing times are enourmous. say you have an image of size 128 x 128 pixels, for image processing you will have to map the entire pixel map onto an array (or logical array). This mapping process will be done for 128 * 128 = 16384 pixels and for a colour image. 16384 * 3 = 49152. These are just the pixel mapping numbers, the process involved in reading the pixel also adds up the processing time. All of this for one pass, most often in image processing one has to repeatedly iterate and manipulate these pixels. If you are not scared with the number above, let me give you some real time data. A standard photo that you wish normalized would be at least 800 x 600 pixels. 800 * 600 = 480,000 * 3 = 1,440,000 Ok, lets begin the work, first of all make sure you have gd library for php. (http://php.net/manual/en/image.installation.php) What is Histogram Normalization ? (http://en.wikipedia.org/wiki/Histogram_equalization) also read this http://en.wikipedia.org/wiki/Histogram_equalization#Histogram_equalization_of_color_images in this case however i have not implemented luminance (HSV/HSL) i have done it in RGB mode and hence you might have issues with hue and saturation in some of the images. This prototype works for jpg only, however others can be derived using gd library's imagefrompng, imagefromgif etc After Historam equalisation, we can increase the contrast of an image. Before
After
  • Published by kishorkundan 03/31/11 - 00:00
  • 4818 views
  • 0 comments

CakePHP 1.3.8 and 1.2.10 released

The CakePHP core team is proud to announce the immediate availability of CakePHP 1.3.8 and 1.2.10. These releases are bugfix/maintenance releases for the 1.2 and 1.3 branches.
  • Published by markstory 03/20/11 - 00:00
  • 33175 views
  • 2 comments