49 Comments

mmaoutlet3214
Cheap Nike air Jordan shoes33$,Air Force 1 33$, Nike dunks SB shoe,Nike Shox shoe. Wholesale Cheap Nike shoes with discount jersey, High quality T-shirts,ED Hardy hoodies,ED hardy shoes,ED hardy Jeans,Evisu shoes,GUCCI shoes,LV Handbag,Chanel Handbag……welcome to Read more: http://chen-happymall.com/ commonprosperity.org@hotmail.com Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $30 Handbags(Coach lv fendi d&g) $38 Tshirts (Polo ,ed hardy,lacoste) $14 Jean(True Religion,ed hardy,coogi) $30 Sunglasses(Oakey,coach,gucci,Armaini) $12 New era cap NY $9 Bikini (Ed hardy,polo) $18 New era cap $8
mmaoutlet3214
Welcome to----------------- http://www.chen-happymall.com/ ---------------------------------- All kinds of world brand shoes,jeans,t-shirts,bikini,beach pants,handbags,wallets,sunglasses,belt,caps,watches etc.. - --------------have some cheap things ...--------------------- --------------------------- free shipping! If you think our website is good,you can put this website to collect bookmarks or other places, easy to find ... ” You can find the stuff in her body?
mmaoutlet3214
input this URL: commonprosperity.org@hotmail.com == ( http://chen-happymall.com )== you can find many cheap and fashion stuff jordan air max oakland raiders $30–39; Ed Hardy AF JUICY POLO Bikini $20; Handbags (Coach lv fendi d&g) $30 T shirts (Polo ,edhardy,lacoste) $15 Jean(True Religion,edhardy,coogi) $30 Sunglasses (Oakey,coach,gucci,Armaini) $15 New era cap $15 Bikini (Ed hardy,polo) $20 == ( http://chen-happymall.com/ )==
mmaoutlet04041
==== www.mmaoutlet.us=== ==== www.mmaoutlet.us=== ==== www.mmaoutlet.us ======= www.mmaoutlet.us======= www.mmaoutlet.us === ==== www.mmaoutlet.us=== ==== www.mmaoutlet.us === jordan air max oakland raiders $30--39; Ed Hardy AF JUICY POLO Bikini $20; Handbags (Coach lv fendi d&g) $30 T shirts (Polo ,edhardy,lacoste) $15 Jean(True Religion,edhardy,coogi) $30 Sunglasses (Oakey,coach,gucci,Armaini) $15 New era cap $15 Bikini (Ed hardy,polo) $20
mmaoutlet04041
http://commonprosperity.org/ The website wholesale for many kinds of fashion shoes, like the nike, jordan, prada, also including the jeans, shirts, bags, hat and the decorations. All the products are free shipping, and the the price is competitive, After the payment, can ship within short time. commonprosperity.org@hotmail.com http://commonprosperity.org/THE-KOREAN-VERSION-c112/ We will give you a discount
jaahvicky
Hi Jason I have tried using your tutorial on cakephp 2.x and it seems like i'm never gonna win. Do you perhaps know what needs to be changed in the tutorial for this to work in cakephp 2.x? Thanks Victor
rainmaker
Thanks! Was just looking for this tutorial! Thanks, Mike http://www.raspberryketoneplus.net
monica3
I am trying to use cakedc to search records by date. I have used the suggested function makeRangeCondition in Model and passed the filterargs and presetargs. However, i get the error The requested URL /model/find/range_from:mm/dd/yyyy/range_to:mm/dd/yyyy was not found on this server. I think it is passing the parameters but not comparing it with the said field in the table. Can someone please help. Thanks
simpletrading
=== http://www.simpletrading.org/ thank you!!! Believe you will love it. We have good reputation, fashion products, come here quickly== http://www.simpletrading.org/ Opportunity knocks but once
simpletrading
ery good website: === http://www.simpletrading.org/ The website wholesale for many kinds of fashion shoes, like the nike, jordan, prada, also including the jeans, shirts, bags, hat and the decorations. All the products are free shipping, and the the price is competitive, and also can accept the paypal payment., After the payment, can ship within short time. We will give you a discount WE ACCEPT PYAPAL PAYMENT YOU MUST NOT MISS IT!!!
simpletrading999
very good website: === http://www.simpletrading.org/ The website wholesale for many kinds of fashion shoes, like the nike, jordan, prada, also including the jeans, shirts, bags, hat and the decorations. All the products are free shipping, and the the price is competitive, and also can accept the paypal payment., After the payment, can ship within short time. We will give you a discount WE ACCEPT PYAPAL PAYMENT YOU MUST NOT MISS IT!!!
gaga66
Hello,everybody,the good shopping place,the new season approaching, click in. Let's facelift bar! ====== http://www.clothes6.org ======= Air jordan(1-24)shoes $33 UGG BOOT $50 Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $33 Handbags(Coach lv fendi d&g) $33 Tshirts (Polo ,ed hardy,lacoste) $16 Jean(True Religion,ed hardy,coogi) $30 Sunglasses(Oakey,coach,gucci,Armaini) $12 New era cap $9 Bikini (Ed hardy,polo) $18 FREE SHIPPING ========= http://www.clothes6.org ==========
gaga66
Hello,everybody,the good shopping place,the new season approaching, click in. Let's facelift bar! ====== http://www.clothes6.org ======= Air jordan(1-24)shoes $33 UGG BOOT $50 Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $33 Handbags(Coach lv fendi d&g) $33 Tshirts (Polo ,ed hardy,lacoste) $16 Jean(True Religion,ed hardy,coogi) $30 Sunglasses(Oakey,coach,gucci,Armaini) $12 New era cap $9 Bikini (Ed hardy,polo) $18 FREE SHIPPING ========= http://www.clothes6.org ==========
gaga66
Wonderful.website with you , http://www.clothes6.org Believe you will love it
hasnolm
Nice.But, why the images cannnot display using firefox? There is no problem in IE and chrome.
nepalipunk
To:-webdesignbarrie Mainly password is encrypted using MD5 which is widely used cryptographic hash function. If you are using MYSQL, Change the password and select MD5 in function. Then you will be able to login with your password. Hope this helps. -zing(nepalontheweb.com)
FirthyInc
Hey there, really great tutorial. I have a quick question though if you don't mind. I integrated this into an application that I am making to learn a bit more about CakePHP. Everything is working fine apart from one thing. When I try to upload a picture of my own, it comes up with this warning: Warning (2): shell_exec() has been disabled for security reasons [APP/vendors/phpThumb/phpthumb.functions.php, line 474] Do you have any idea why this might be? Have I forgotten to add something from your example in to my application?
SkysTheLimit81
very nice tutorial and it works great. but i have a little question. is it possible to create the galery_name as folder too. so when i upload an image and select the Galery “Example”, the folder “Example” doesn´t exists, the model creates the directory and upload the images to this ? nice grretings
lucianobargmann
Nice tut. Just what I was looking for - allow users to upload their profile pictures and crop/adjust the image to a square. On a side note, Meio is the portuguese word for "half" (site name can be translated to Half Code). You (should) pronounce Meio as "Mayo" :)
Dalia
Hi Jason thanx for the tutorial it is really good
hybmg57
This is great but how do you search and filter posts between two specified dates?
cpierce
$html-> should be changed to $this->Html-> per the 1.3 specifications.
waspinator
why does the sample app use public $actsAs = array( 'Search.Searchable'); instead of var $actsAs = array( 'Search.Searchable'); ? Also If I try to add Search.Searchable into my $actsAs I get an errorL The Behavior file c2a/models/behaviors/search.searchable.php can not be found or does not exist. I copied the 'search' plugin folder into my apps plugin directory. Is there something else that needs to be done?
aniljmk
what is default username and password to access admin ?
mag
how would I search if something is inside a certain radius? I mean location, I have stuffs with longitude and latitude, and I found this: SELECT ((ACOS(SIN($lat * PI() / 180) * SIN(lat * PI() / 180) + COS($lat * PI() / 180) * COS(lat * PI() / 180) * COS(($lon - lon) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) AS distance FROM members HAVING distance<='10' ORDER BY distance ASC but how would I translate this sql to cakephp search dc plug in????
coventryLabs
As per usual I forgot to add the most important part:

This should be added in the model:

//enable date range searching.
public function makeRangeCondition($data, $field = null) {
if (is_array($data)) {
if (!empty($field['name'])) {
return array(date('Y-m-d H:i:s', strtotime($data[$field['name']].' 00:00:00')), date('Y-m-d H:i:s', strtotime($data[$field['name2']].' 23:59:59')));
} else {
$input = $data['range'];
}
}
}
coventryLabs
Update to my own post. I figured out how to use the search plugin search by a date range. I looked in the tests folder and found a pre-build makeRangeCondition method and modified it to my needs. Here is the example

Model:
public $filterArgs = array(
array('name' => 'first_name', 'type' => 'like', 'field' => 'Customer.first_name'),
array('name' => 'last_name', 'type' => 'like', 'field' => 'Customer.last_name'),
array('name' => 'application_num', 'type' => 'value', 'field' => 'Application.id'),
//enable date range searching.
array('name' => 'range_from', 'name2'=>'range_to', 'type' => 'expression', 'method' => 'makeRangeCondition', 'field' => 'Application.created BETWEEN ? AND ?'),
);

Controller:
public $presetVars = array( array('field' => 'first_name', 'type' => 'lookup', 'formField' => 'customer_input', 'modelField' => 'first_name', 'model' => 'Customer'),
array('field' => 'last_name', 'type' => 'lookup', 'formField' => 'customer_input', 'modelField' => 'last_name', 'model' => 'Customer'),
array('field' => 'id', 'type' => 'lookup', 'formField' => 'application_id', 'modelField' => 'id', 'model' => 'Application'),
array('field' => 'range_from', 'type' => 'lookup', 'formField' => 'range', 'modelField' => 'created', 'model' => 'Application'),
array('field' => 'range_to', 'type' => 'lookup', 'formField' => 'range', 'modelField' => 'created', 'model' => 'Application'),
);

View:
echo $this->Form->create('ApplicationsCustomer', array( 'url' => array_merge(array('action' => 'dealer_index'), $this->params['pass']) ));
echo $this->Form->input('first_name', array('div' => 'first_name'));
echo $this->Form->input('last_name', array('div' => 'first_name'));
echo $this->Form->input('application_num', array('div' => 'app_num', 'label'=>'ID'));
echo $datePicker->picker('range_from', array('div' => 'range_to', 'label'=>'To'));
echo $datePicker->picker('range_to', array('div' => 'range_to', 'label'=>'To'));
echo $this->Form->submit(__('Search', true), array('div' => 'search'));
echo $this->Form->end();

Feel free to contact us with questions.

CoventryLabs[dot]com
coventryLabs
Sorry the previous post was supposed to have a message and be spaced
I apologize to everyone who has to try to read that gibberish.
I am trying to use the Search plugin to query by a date range using the created field from my model. Wondering if you have been able to use the expression type to get something similar. Any help is appreciated

Model:
public $filterArgs = array(
array('name' => 'first_name', 'type' => 'like', 'field' => 'Customer.first_name'),
array('name' => 'last_name', 'type' => 'like', 'field' => 'Customer.last_name'),
array('name' => 'application_num', 'type' => 'value', 'field' => 'Application.id'),
array('name' => 'range', 'type' => 'expression', 'method' => 'makeRangeCondition', 'field' => 'Application.created BETWEEN ? AND ?'),
);
Controller:
public $presetVars = array(
array('field' => 'first_name', 'type' => 'lookup', 'formField' => 'customer_input', 'modelField' => 'first_name', 'model' => 'Customer'),
array('field' => 'last_name', 'type' => 'lookup', 'formField' => 'customer_input', 'modelField' => 'last_name', 'model' => 'Customer'),
array('field' => 'id', 'type' => 'lookup', 'formField' => 'application_id', 'modelField' => 'id', 'model' => 'Application'),
array('field' => 'range_from', 'type' => 'lookup', 'formField' => 'range_from', 'modelField' => 'created', 'model' => 'Application'),
array('field' => 'range_to', 'type' => 'lookup', 'formField' => 'range_to', 'modelField' => 'created', 'model' => 'Application'),
); View:
echo $this->Form->input('range_from', array('div' => 'range_from', 'label'=>'From'));
echo $this->Form->input('range_to', array('div' => 'range_to', 'label'=>'To'));
Any help would be greatly appreciated.

JM
coventryLabs
Model: public $filterArgs = array( array('name' => 'first_name', 'type' => 'like', 'field' => 'Customer.first_name'), array('name' => 'last_name', 'type' => 'like', 'field' => 'Customer.last_name'), array('name' => 'application_num', 'type' => 'value', 'field' => 'Application.id'), array('name' => 'range', 'type' => 'expression', 'method' => 'makeRangeCondition', 'field' => 'Application.created BETWEEN ? AND ?'), ); Controller: public $presetVars = array( array('field' => 'first_name', 'type' => 'lookup', 'formField' => 'customer_input', 'modelField' => 'first_name', 'model' => 'Customer'), array('field' => 'last_name', 'type' => 'lookup', 'formField' => 'customer_input', 'modelField' => 'last_name', 'model' => 'Customer'), array('field' => 'id', 'type' => 'lookup', 'formField' => 'application_id', 'modelField' => 'id', 'model' => 'Application'), array('field' => 'range_from', 'type' => 'lookup', 'formField' => 'range_from', 'modelField' => 'created', 'model' => 'Application'), array('field' => 'range_to', 'type' => 'lookup', 'formField' => 'range_to', 'modelField' => 'created', 'model' => 'Application'), ); View: echo $this->Form->input('range_from', array('div' => 'range_from', 'label'=>'From')); echo $this->Form->input('range_to', array('div' => 'range_to', 'label'=>'To')); Any help would be greatly appreciated. JM
damanlovett
Jason, love the tutorial, but I'm getting a Query: parseCriteria error
urlaubsreifNow
hello i've a problem...i cannot search the categories... i've a select-box (like status) called categories with 3 entries, and if i click one of them and submit the saerch-button i got all entries, but not the entry with the right chosen categorie - can you help me? //Search Plugin public $actsAs = array('Search.Searchable'); public $filterArgs = array( array('name' => 'Titel', 'type' => 'like'), array('name' => 'Autor', 'type' => 'like'), array('name' => 'HauptSort', 'type' => 'string') ); //controller public $presetVars = array( array('field' => 'Titel', 'type' => 'value'), array('field' => 'Autor', 'type' => 'value'), array('field' => 'HauptSort', 'type' => 'value')); public function suchen() { $this->Prg->commonProcess(); $this->paginate['conditions'] = $this->Katalog->parseCriteria($this->passedArgs); $this->set('Katalog', $this->paginate()); //Füllen der Select-Box Kategorie $values = $this->Katalog->find('list', array('fields'=>array('HauptSort'), 'group' => 'HauptSort')); $this->set('values', $values); }
webdesignbarrie
When I edit the users, the encrypted password is populated in the password field. If I don't change the password, then save, it will re-encrypt the encrypted password, which changes it to some crazy password. How can I avoid this?
soymartinus
jason, i resolved my last question. i just forgot to place the search field in the $presetVars. but now i have another question: cakedc is a great plugin. i need two query types in $filterArgs -------------code------------------------- public $filterArgs = array( array('name' => 'name', 'type' => 'like'), array('name' => 'jahr', 'type' => 'query', 'method' => 'zeitSpanneJahr'), array('name' => 'mes', 'type' => 'query', 'method' => 'zeitSpanneMes'), ); public function zeitSpanneMes ( $data, $field = null){ ... } public function zeitSpanneJahr ( $data, $field = null){ ... } --------------code-end----------------------- the problem is, that only the second query is included in the total search query. what do i have to do please, to get both queries. i want to conect them with AND regards from spain martin
soymartinus
jason, that's a very nice plugin. i got it work, but i have a question: i want to populate a "query method" search field dropdown with the last selected value, when a search query is fired and the form and list show again. regards from spain martin
m16u31
i hace this error when i use xamp Warning: include(cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\cake\app\webroot\index.php on line 76 why do you use "cakephp-cakephp-1.3.2-38-g8581350' . DS . 'cakephp-cakephp-8581350');"?? thanks for the tutorial Warning: include() [function.include]: Failed opening 'cake\bootstrap.php' for inclusion (include_path='E:\wamp\www\_cake\cakephp-cakephp-1.3.2-38-g8581350\cakephp-cakephp-8581350;C:\xampp\htdocs\cake\app\;.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cake\app\webroot\index.php on line 76 Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in C:\xampp\htdocs\cake\app\webroot\index.php on line 77
amarradi
Hello jason, thanks for this tutorial. It's running on cakePHP 1.3.7 (My wife told me, she likes chocolate-cake :-) (she is a primary school teacher )) My Question is. How can i loggin? How are your passwords? Many greetings Marcus Radisch
rigantiweb
Hi Jason, great source code! Really Thanks! But I'm new to Cake and I have a problem: when I try to use Images Controller, Cake always redirect my browser to browser page: Index of /cakephp/oldwest/app/webroot/images - with list of content... when i use galleries controller all works fine.... probably a question of .htaccess or routing... What i'm doing wrong? Thanks a lot!
jasonwydro
Hi netusco, I am sorry for the delayed reply : ) I would be glad to assist you. Can you send me an sql dump of your current data (if it is not too large). Can I download it from a url?
Most Recent 12 View All Comments