Links

2011-01-17 Thread Spha ps
Hi All, Anyone know how to recognize links when a user adds a post so i can make the link active on the view page ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google

Re: date

2011-01-13 Thread Spha ps
What do you mean selected date could you make your question more specific please ? On Thu, Jan 13, 2011 at 8:01 AM, Miqdad Ali wrote: > how to use selected date in > > $form->input('dt',array('type'=>'date')); > > Miqdad Ali >

css

2011-01-12 Thread Spha ps
Hi all, I svn my code to a repo on svn but now the css is not bieng read the 000-default file is set to allow all,i have the .htaccess file and dont know why this is hapening. All my other cake application on my local machine work fine except the svn app Can anyone please help me with this ? Chec

Re: Retrieve user_id

2011-01-12 Thread Spha ps
ok i will do that now On Wed, Jan 12, 2011 at 1:32 PM, Stephen wrote: > Hi Spha ps, > > The controller can add all the info for diff models automatically from > $this->User->save($this->data) if your form has the other models included. > You don't need to do the h

Re: Retrieve user_id

2011-01-12 Thread Spha ps
> > I'm not entirely sure what data you are submitting but this may help you: > > http://pastie.org/private/yn1jzdf59h1psflnkgsg > > > > On 12 January 2011 08:57, Spha ps wrote: > >> function add() { >> if(!empty($this->data['User']['email']))

Retrieve user_id

2011-01-12 Thread Spha ps
Hi all, Heres the scenario : I went through the database searching for an email and found it but now i need to assign that emails user_id from the users table to the new posts user_id in the posts table - foreign key. How would i do that heres the code i have so far it works but adds 0 as the use

update db instead of insert if entry already exists - CakePHP

2011-01-11 Thread Spha ps
Hi All, Im trying to update db instead of insert if entry already exists - CakePHP Any thoughts on how I could do that ? thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed

Re: Check database

2011-01-11 Thread Spha ps
ail_address))); > > Although in most applications it's usually best to get the current user's > id from the auth component session data. > i.e. $this->Auth->user('id'); > > Unless ofcourse you're doing something a little bit different > > Hth

Check database

2011-01-11 Thread Spha ps
Hi all, I was wonder how would i go about check the users table to see if an email exists if it does get that id to add a new post for that user ? thanks in advance Spha Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You receive

cakephp subfolders

2010-10-13 Thread Spha ps
Hi guys Added my cakephp application to svn so i moved it into a another folder so now i cant view the views i can only see the layout which deosnt have css apllied to it anymore after moving into another folder Please help here should i fiddle with the route.php file or simply move it back in th

Layout

2010-10-07 Thread Spha ps
Jeremy yes thats exactly what im trying to do but the link you send me only shows using the default layout for cakephp Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Goog