Filtering search results by using checkboxes

2011-05-26 Thread MeatSandwich
Hey there everyone. I'm a bit of a newb so apologies if this question is a bit simple, although I can't get my head round how to go about doing it. I have a search page where a user can type in a search box, or they can use an alphabetical list to search for the record they're looking for. Eg the

Autocomplete using javascript - newb question

2011-05-20 Thread MeatSandwich
I'm new to javascript and I'm trying to use http://www.pengoworks.com/workshop/jquery/autocomplete.htm but I don't understand the documentation. I want to use http://code.google.com/p/searchable-behaviour-for-cakephp/ and the box I want the autocomplete to work its magic on is the searchable searc

Re: Newb question - not as long a question as it looks, I promise.

2011-05-19 Thread MeatSandwich
Thanks guys :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegr

Newb question - not as long a question as it looks, I promise.

2011-05-18 Thread MeatSandwich
I'm using the advice www.jamesfairhurst.co.uk/posts/view/uploading_files_and_images_with_cakephp to handle uploading images. The function uploads the files to the appropriate folder and then returns a url which I add to $this->data so the location of the image is saved in the database To call the

Re: What's the best way to upload an image in cakephp 1.3

2011-05-11 Thread MeatSandwich
comprehensively and securely written but I had to give up because I didn't understand what I was meant to do with it. Does anyone know if there's any better tutorials for this? On May 11, 11:30 pm, Ryan Schmidt wrote: > On May 11, 2011, at 17:19, MeatSandwich wrote: > > > F

What's the best way to upload an image in cakephp 1.3

2011-05-11 Thread MeatSandwich
Firstly I'm totally new to cakephp and only a novice with php. I want to be able to upload image files which correspond with records in a table charities which I have. It would be good if the images were processed a little, ie maybe a few different sizes of thumbnail would be created when they got

Re: Alphabet links, eg click A and get all the entries beginning with the letter A

2011-05-10 Thread MeatSandwich
expression condition to find the proper > > records. I can't do that off the top of my head and I don't have time > > right now to experiment to get it right. But this, and the earlier > > link to writing conditions should help? > > > Regards, > > Don &g

Re: Alphabet links, eg click A and get all the entries beginning with the letter A

2011-05-10 Thread MeatSandwich
ake your task pretty easy... as easy as writing regular > expressions :-) > > http://book.cakephp.org/view/1017/Retrieving-Your-Data#Complex-Find-C... > > Regards, > Don > > On May 10, 6:57 am, MeatSandwich > wrote: > > > > > > > > > I have a tabl

Alphabet links, eg click A and get all the entries beginning with the letter A

2011-05-10 Thread MeatSandwich
I have a table which holds the names of loads of charities in the UK. I want to have a page which will allow users to search through these charities but there's 1000s of them. I'd like to be able to have the alphabet written out A, B, C and so on with each letter a link to all the charities beginn

Re: I want to allow a user to create his own page, the url of which would be his name

2011-04-20 Thread MeatSandwich
nfiguration#Passing-paramet... > > adapt the advice on Mark Story routing > classhttp://mark-story.com/posts/view/using-custom-route-classes-in-cakephp > > hth - S > > On 19 April 2011 00:02, MeatSandwich wrote: > > > > > > > > > I'm t

I want to allow a user to create his own page, the url of which would be his name

2011-04-18 Thread MeatSandwich
I'm trying to create an app which allows a user to create an account and then create their own page. I'd like to use a combination of the users first and and last name as the url of their page, ie mywebsite.com/john_smith Obviously I'd need to create a controller with an apropriate action, but ho

Re: Anyone having issues searching the Bakery?

2011-04-18 Thread MeatSandwich
I've noticed things wrong since the new style of the cookbook was released. Theres a bunch of pages which require you to scroll right to read some sentences as they don't seem to be wrapping properly. EG http://book.cakephp.org/view/1152/Core-Validation-Rules I've tried on a couple of different co

Can someone explain this to me in English please

2011-04-18 Thread MeatSandwich
Sorry for being a bit of a dumb-ass but I'm trying to learn and have been looking at this for a couple of days but I'm still not completely sure how it works. I'm following an offline tutorial about using prefixes. the tutorial says do this: 1 - uncomment the admin routing prefix in core.php 2 - a

Re: please help me

2011-04-06 Thread MeatSandwich
Hi Zaky, I tried your No2 suggestion and... I think I love you... I don't get why it worked but it did! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP relate

Re: please help me

2011-04-06 Thread MeatSandwich
Hi Pushpa nc, thanks. I stuck that in my layout but it doesn't seem to do anything. I know that's to spit out whatever's in setFlash but I'm not sure what you were hoping this would show me? Can you explain? Sorry for being dumb -- Our newest site for the community: CakePHP Video Tutorials http

Re: please help me

2011-04-06 Thread MeatSandwich
Hi Zaky, thanks very much for the response. Very kind to help me. 1. I have my login form and my register a new user form onthe same page, ie views/pages/signup.ctp. The issue with having these two forms on the same page is that they both use the user model. Therefore if a user enters an invalid p

please help me

2011-04-05 Thread MeatSandwich
hi, I'm hoping someone will be kind enough to take a couple of minutes to help me understand where I'm going wrong. I should say first that I have read the manual and bought a couple of the books but i'm totally new to cakephp and still learning php. I want to be able to log a user in when they ar

Re: Why won't my password confirm work?

2011-04-05 Thread MeatSandwich
It looks like it's because the Auth component only hashes passwords if the fields are 'username' and 'password' AND the table name is Users. I had changed the fields in my app_controller $this->Auth->fields =array('username'=>'email','password'=>'password'); but hadn't changed the table name. I co

Re: Why won't my password confirm work?

2011-04-04 Thread MeatSandwich
Oops, also here's my model class User extends AppModel { var $name = 'User'; var $hasMany = 'Campaign'; var $validate = array( 'first_name' => array('notempty' => array('rule' => array('notempty'),'message' => 'Please enter your first name')),

Why won't my password confirm work?

2011-04-04 Thread MeatSandwich
Hey there. I've a page which has two forms on it, one for register and one for login, cake shows errors on both forms when, for example, the user leaves the password field blank on the registration form errors will appear for the password field on both the register form and the login form because

Re: Form error messages

2011-04-04 Thread MeatSandwich
In case anyone else finds this useful here's an article I found which solves the problem for me On Apr 4, 3:39 pm, MeatSandwich wrote: > Hi all, I'm new to cakephp and very much enjoying learning all about > it. > > I want to have a page with two forms on it. The first is t

Form error messages

2011-04-04 Thread MeatSandwich
Hi all, I'm new to cakephp and very much enjoying learning all about it. I want to have a page with two forms on it. The first is to sign up a new user and the other is just a login form in case the user already has an account. I created a views/pages/signup.ctp view and put the forms in there. I

Re: Search function

2011-02-25 Thread MeatSandwich
> That should get you going. > > K @ Krissy, indeed it will. Thank you very much for taking the time. Much appreciated. I'll get stuck into this this evening :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http

Re: Search function

2011-02-25 Thread MeatSandwich
i); >         } > > This together fills my another dropdown with my food selection, but you can > also have a div filles with an index table, depending what you want. > > the output is formatted in the file /views/foods/get_food_by_category.ctp > In my case it creates the dropdo

Re: Search function

2011-02-25 Thread MeatSandwich
t; 1 // C has a record > > ___ > Each array key represents the numeric count of the letter(offset by 1) > 0 => A > 1 => B > > 25 => Z > > Hope that gets you started. > > K > > -Original Message- > From: cake-php@go

Search function

2011-02-24 Thread MeatSandwich
Hi all, I'm new to cakephp and only know a bit of php so I'm on a steep learning curve since although I've made websites using php and mysql before they were all a bit simple. I'm not looking for code here but some pointers for me so I know what to learn. The app I'm making will end up with lots