Re: Can not get CakePHP to work with iPhone web app kit "iui"

2009-04-25 Thread cpeele
new development. > > -teh > > On Apr 24, 5:40 pm, cpeele wrote: > > > Hey guys, I have been trying to get CakePHP to work with the iPhone > > web app js and css library "iui" and always run into problems with it > > when it comes to CakePH

Re: Can not get CakePHP to work with iPhone web app kit "iui"

2009-04-25 Thread cpeele
for new development. > > -teh > > On Apr 24, 5:40 pm, cpeele wrote: > > > Hey guys, I have been trying to get CakePHP to work with the iPhone > > web app js and css library "iui" and always run into problems with it > > when it comes to CakePHP fin

Can not get CakePHP to work with iPhone web app kit "iui"

2009-04-24 Thread cpeele
Hey guys, I have been trying to get CakePHP to work with the iPhone web app js and css library "iui" and always run into problems with it when it comes to CakePHP finding the files. I was able to do this without CakePHP. I know it is my lack of understanding of how best to include a third party

Re: jQuery UI Datepicker not working

2009-04-15 Thread cpeele
I'll give that a shot...not very knowledgeable on JavaScript. Thanks for the help! Chris On Apr 14, 3:21 pm, Miles J wrote: > When your calling datepicker(), shouldnt it be on ready when the page > loads? --~--~-~--~~~---~--~~ You received this message because y

Re: jQuery UI Datepicker not working

2009-04-14 Thread cpeele
and look at the console/parse output > HTH, > -- > Marcin Domanskihttp://kabturek.info > > On Tue, Apr 14, 2009 at 19:44, cpeele wrote: > > > Hey guys, > > > I'm running CakePHP 1.2 and am trying to use the jQuery UI Datepicker > > but I'm running i

jQuery UI Datepicker not working

2009-04-14 Thread cpeele
Hey guys, I'm running CakePHP 1.2 and am trying to use the jQuery UI Datepicker but I'm running into some problems. Actually, nothing happens. Here are the paths to the necessary jQuery files: Javscript files: htdocs\TeamPlayer\app\webroot\js CSS files: htdocs\TeamPlayer\app\webroot\css\smoot

Re: form select help

2009-04-03 Thread cpeele
Hello! You could try something like what I am doing: Controller code: (in the add action) --- //grab list of Projects for dropdown list $projectNames = $this->ProjectUpdate->Project->find('list', array ('fields' => 'Project.name',

Re: Prepopulating select form helper and setting default selected value using Cake 1.2

2009-04-03 Thread cpeele
Miles thanks much for the input. It worked!!! One last question. With this code: echo $form->input('Project.id', array('options' => $projectNames)); I need Project.id there so that it property associates, however, it displays it in the browser with it's label reading "Id", can I change

Prepopulating select form helper and setting default selected value using Cake 1.2

2009-04-02 Thread cpeele
Hey guys, I am looking for some help on prepopulating a select form helper and setting a default selected value using Cake1.2. I have seen solutions but they are all in Cake1.1 Any help would be greatly appreciated! Here is what I have so far: Controller code: -

Re: Help! How to order by created desc with findAllByName( ) method

2009-03-27 Thread cpeele
That Worked! Thanks very much! On Mar 27, 3:53 pm, mscdex wrote: > On Mar 27, 4:00 pm,cpeele wrote: > > > Hey guys, > > > I am trying to just get a list of Products ordered by created desc but > > I can't seem to get it. > > > Products have a "nam

Help! How to order by created desc with findAllByName( ) method

2009-03-27 Thread cpeele
Hey guys, I am trying to just get a list of Products ordered by created desc but I can't seem to get it. Products have a "name" field so I am using findAllByName($name). I have tried various things but can't seem to get it. Any help would be greatly appreciated. Thanks! ---

Getting Undefined index error when trying to retrieve data by item name: findByName

2009-03-25 Thread cpeele
Hey guys, I am getting an Undefined index error when I am trying to get Projects based on project name. Error: -- Undefined index: Project [APP\views\projects\view.ctp, line 16] Here's the code involved: Controller ---

Re: Getting Undefined index error when trying to retrieve data by item name: findByName

2009-03-25 Thread cpeele
Nevermind. I figured it out. I needed to use: findAllByName Thanks anyway! On Mar 25, 1:48 pm, cpeele wrote: > Hey guys, I am getting an Undefined index error when I am trying to > get Projects based on project name. > > Error: > -- > Undefin

Re: My styles and images just dissappear

2009-03-25 Thread cpeele
You know..that may be it..because I thought it was just some file added by the Aptana studio IDE I am using. What exactly is .htaccess do anyway? Thank you so much for your help by the way V/R Chris On Mar 25, 10:31 am, fain182 wrote: > > Does anyone have any idea what may be happening? > > m

My styles and images just dissappear

2009-03-25 Thread cpeele
Hey guys, I have weird problem going on. I am running Xampp Lite on win xp sp2, with cakePHP 1.2. Sometimes (twice so far) when I go to open up the site in the browser, none of the images or styles are there. The main (home) page shows up but when I try and click on a link it tells me "Object n

Re: Newbie needs help with hidden input helper

2009-03-23 Thread cpeele
$this->Session->setFlash("A new event has been added"); $this->redirect('/events', null, true); } } } } ?> On Mar 22, 12:44 am, mscdex wrote: > On Mar 21, 11:10 pm,cpeele wrote

Re: Newbie needs help with hidden input helper

2009-03-21 Thread cpeele
is->data); However, now when it saves it doesn't grab the value of user_id stored in the Session. It should insert the value 1 for the user_id but instead inserts 0 Am I supposed to set something up in order to use $this->Session in my controller? Thanks, Chris On Mar 21, 9:12 p

Re: Newbie needs help with hidden input helper

2009-03-21 Thread cpeele
Actually, can I use the $session helper in a controller? Is it supposed to be Session ? Thanks again! On Mar 21, 9:12 pm, mscdex wrote: > On Mar 21, 9:11 pm, cpeele wrote: > > > Thanks for the help guys. I appreciate it. The reason I need to do > > this is I need to associat

Re: Newbie needs help with hidden input helper

2009-03-21 Thread cpeele
Hey Thanks man! I'll give it a shot! On Mar 21, 9:12 pm, mscdex wrote: > On Mar 21, 9:11 pm, cpeele wrote: > > > Thanks for the help guys. I appreciate it. The reason I need to do > > this is I need to associate a submitted item (in this case a project) > > with

Re: Newbie needs help with hidden input helper

2009-03-21 Thread cpeele
Thanks for the help guys. I appreciate it. The reason I need to do this is I need to associate a submitted item (in this case a project) with the logged in user. Is there another way to do this then? Thanks again! Chris On Mar 21, 4:52 pm, mscdex wrote: > I have to agree with John here, you sh

Newbie needs help with hidden input helper

2009-03-21 Thread cpeele
Hey guys, I have checked the manual and I still find it a little confusing as far as how to use the hidden input control. I have a session variable named User.user_id that I want to put in the hidden input helper but can't seem to get it to work. I have tried the following: echo $form->hidden(

Re: Getting : Undefined index: error - Newbie Please help

2009-03-20 Thread cpeele
Also, one other question,...how do I access child object data like the userName of the User object: The below code gives the following error: Undefined index: User [APP \views\projects\view.ctp, line 16] Thanks!

Re: Getting : Undefined index: error - Newbie Please help

2009-03-20 Thread cpeele
Wow! Thank you so much!! It worked! One question though, I didn't do a search on Projects by user_id but I did do one by username, why is that different? function view($username) { $projects = $this->Project->User->findByUsername ($username); $this->set('p

Re: Getting : Undefined index: error - Newbie Please help

2009-03-20 Thread cpeele
Good morning! It shows the following: Array ( [User] => Array ( [id] => 1 [jobTitle] => Software Engineer [firstName] => Chris [lastName] => Peele [username] => cpeele

Re: Getting : Undefined index: error - Newbie Please help

2009-03-19 Thread cpeele
var $belongsTo = 'User'; } Thanks again! On Mar 18, 9:38 pm, nhathoang nhathoang wrote: > Dear cpeele, > I see your question is not clearly , what do you want when you use this > query $projects = $this->Project->User->findByUsername($username);, and > please pos

Getting : Undefined index: error - Newbie Please help

2009-03-18 Thread cpeele
Hey guys, I am getting an Undefined index error. I am rather new to cakePHP so it is probably something easy I am missing. I will post the code with descriptions. I have an element called "project_updates": link($p