fetch only ‘enabled’ records from the database i n cakephp v1.3

2010-06-29 Thread gaurav.v.sharma
Is there any way of fetching only those records of a model which have 'status = 1' in cakephp v1.3 ? I have created a field named 'status' in every table of my web application. I have a model named 'Message'. What I want is that only those messages are displayed, included in search results which

Re: Another cakephp success story

2010-03-09 Thread gaurav.v.sharma
:) nice website. Did you find any difficulties in using postgresql with cakephp ? Did you used bake command ? Please share your experiences, I love cakePHP and in my opinion it is the best framework for rapid development of application. Thanks On Mar 10, 8:50 am, welzie wrote: > I recently fi

Re: Poll: what do you hate about CakePHP?

2009-05-08 Thread gaurav.v.sharma
if one could modify the amount of data that cake fetches during any operation. For example the action index fetches more result than needed thereby making the application a bit slower... and improved tutorials on advanced techniques used in cake like acl.. On May 8, 3:29 am, Nate wrote: > Well,

ACL not working

2009-05-08 Thread gaurav.v.sharma
I created an application using the method described in the "http:// book.cakephp.org/view/641/Simple-Acl-controlled-Application" but after I try to log in there is an error which says, "DbAcl::allow() - Invalid node [CORE\cake\libs\controller\components\acl.php, line 325]" I did exactly same as m

Re: creationdate column in database is filled null

2009-04-22 Thread gaurav.v.sharma
> Perhaps your server is running in a different timezone than you are. > > > On Mon, Apr 13, 2009 at 2:45 AM, gaurav.v.sharma > > > wrote: > > > > Thanks a lot, it worked perfectly fine :-) But the "time part" in > > > the created field is not

Re: Exists a Ticket System made in CakePHP

2009-04-21 Thread gaurav.v.sharma
(Not related to cakePHP) I don't know about a ticket system made in cake but you can try out OSTICKET. It is an open source ticketing system. very nice software (www.osticket.com). On Apr 21, 1:59 pm, "marco.rizze...@gmail.com" wrote: > I have my web application in Cakephp. > It has his regi

Re: saving entries that are not related directly.

2009-04-21 Thread gaurav.v.sharma
gt; Comment, Item, etc. models implement. An afterSave() method would then > update the acitivities table. > > On Mon, Apr 20, 2009 at 8:46 AM, gaurav.v.sharma > > wrote: > > > hi all, > > > If we want to save all the related model data then we use the saveAll > &g

saving entries that are not related directly.

2009-04-20 Thread gaurav.v.sharma
hi all, If we want to save all the related model data then we use the saveAll () method. But what should be done if I want to make an entry in that table which is not directly related to the related table. I have created a table named tbl_acitivites in which I am recording the actions of users l

Re: saveAll saving foreign_key_id as 1 event giving correct debug information

2009-04-20 Thread gaurav.v.sharma
there should be a direct relation between the two tables ( hasone, hasmany)... only then saveAll wil work.. On Apr 20, 3:50 pm, Nature Lover wrote: > Please help someone! > The project due date is the day after tomorrow. > > Please! --~--~-~--~~~---~--~~ You recei

Re: creationdate column in database is filled null

2009-04-12 Thread gaurav.v.sharma
, "modified". > Both of them should be defined like so: > > DATETIME DEFAULT NULL > > Cake will then set the value when/where appropriate. > > On Sun, Apr 12, 2009 at 2:05 AM, gaurav.v.sharma > > wrote: > > > Hi all :-), > > > I have created a

creationdate column in database is filled null

2009-04-12 Thread gaurav.v.sharma
Hi all :-), I have created a small application using the bake command. While designing the database for the application I created a column named "creationdate" in every table so as to record the date and time of that operation. I donot allow user to enter this "creationdate" value infact I have

using elements anywhere.

2009-04-06 Thread gaurav.v.sharma
I created a simple element for displaying the topics list. This element is working fine under the url http://localhost/webapp/topics but it is not working in the home page. http://localhost/webapp I mean the element contents are not displayed on the home page as they are displayed on the topics p