Re: One Parent Model for All Other Models?

2010-05-10 Thread Zaky Katalan-Ezra
Does the public database is read only from the end user perspective? If it is you can use MySql views as a model table. Cake treat views as table. I think its more easy to maintain read only data this way. About the data structure it seems you are in the right way. If you want to take an example f

Limitations to plugins for app modularity - are there any left in cake 1.3?

2010-05-10 Thread keymaster
In the past (cake 1.1, and to an extent cake 1.2) there were limitations to plugins which prevented their use as a means of modularizing your app's code. For example, - plugins couldn't access or extend app's models - code in the app couldn't access a plugin's models - plugin did not have callba

Limitations to plugins for app modularity - are there any ?

2010-05-10 Thread keymaster
In the past (cake 1.1, and to an extent cake 1.2) there were limitations to plugins which prevented their use as a means of modularizing your app's code. For example, - plugins couldn't access or extend app's models - code in the app couldn't access a plugin's models - plugin did not have callba

Re: One Parent Model for All Other Models?

2010-05-10 Thread Jeremy Burns
It's a long post, so I hope I haven't missed the point... I'd say that having a single, well thought out database is better than having two, so you are going in the right direction. Yes, you can access related data from the Schedule model, so long as they are associated (and even if they are no

Re: Finding related articles

2010-05-10 Thread jthommo
Thanks Paul, I'll give it a go. You're right - the teknoid.wordpress.com site has a good bunch of HABTM stuff on it, in particular: http://teknoid.wordpress.com/2008/08/06/habtm-and-join-trickery-with-cakephp/ I think what I'm really missing is more detail on the various parameters you can stick

Re: Finding related articles

2010-05-10 Thread jthommo
Thanks Paul, I'll give it a go. You're right - the teknoid.wordpress.com site has a good bunch of HABTM stuff on it, in particular: http://teknoid.wordpress.com/2008/08/06/habtm-and-join-trickery-with-cakephp/ I think what I'm really missing is more detail on the various parameters you can stick

Using ajax observefield method to update text field

2010-05-10 Thread aveev
I'm new to using ajax helper. I'm designing a travel document that uses 1 drop down and 1 text field in a page. The drop down lists the travel document types and the text field will display the most current unused travel document according to the travel document type being selected. I tried to us

Re: array dump

2010-05-10 Thread bradmaxs
Thanks - I guess I misread the post about it being deprecated. Works now! On May 10, 6:51 pm, Andy Dirnberger wrote: > http://book.cakephp.org/view/1128/debug > > On May 10, 9:06 pm, bradmaxs wrote: > > > > > Can anyone tell me how to get: > > > Array > > ( > >     [0] => Array > >         ( >

Re: array dump

2010-05-10 Thread Andy Dirnberger
http://book.cakephp.org/view/1128/debug On May 10, 9:06 pm, bradmaxs wrote: > Can anyone tell me how to get: > > Array > ( >     [0] => Array >         ( >             [Portfolio] => Array >                 ( >                     [id] => 1 >                     [user_id] => 0 >                  

array dump

2010-05-10 Thread bradmaxs
Can anyone tell me how to get: Array ( [0] => Array ( [Portfolio] => Array ( [id] => 1 [user_id] => 0 [url] => 29thstreetrep.com [description] => Off-Broadway New York City theat

Design Props

2010-05-10 Thread #2Will
http://webdesignledger.com/inspiration/55-inspiring-examples-of-slideshows-in-web-design Cake featuring in a design gallery. nice. 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 subscrib

One Parent Model for All Other Models?

2010-05-10 Thread paws_galuten
Hi, My question is below, but first some info about the situation I'm in: I am taking an app that I wrote years ago for scheduling people in different areas of work at our Center, and re-writing it in cakePHP. In the mean time, I'm doing all sorts of things better than ever before ;) Among many

Re: How to find out if action has been called by requestAction()?

2010-05-10 Thread John Andersen
In the $this->params there will be a parameter named "requested" equal to 1, and one named "return" equal to 1. My assumption is that they indicate that it is a requestAction from within the application itself and that the requested action is to return. Enjoy, John On May 10, 5:49 pm, Steven Ch

Re: plugins css javascript route cake 1.3

2010-05-10 Thread mark_story
Is the css file in your plugins webroot/css directory? And do you have a server that supports url rewriting? If either is not true plugin assets won't work. -Mark On May 9, 10:04 pm, CoDe wrote: > What is the new correct way for add css on you plugin because there > cakephp show me CssControll

Re: calling a console method from a controller (cake 1.3)

2010-05-10 Thread mark_story
Sounds like you might be approaching things in an odd fashion. If your code is spawning new controller actions I'm a bit concerned, but you could always hack things together with some exec() -fu -Mark On May 8, 10:24 am, Steinkel wrote: > Hi ! > > I'm trying to call a console method from a cont

How to find out if action has been called by requestAction()?

2010-05-10 Thread Steven Chan
Hi all, I'm using cake 1.2. I was wondering if there was a way for a controller/action to know eg. variable or property set etc. etc. if it had been called through a requestAction()? Thanks Steven Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP rel

Documentation builder

2010-05-10 Thread Marek Sebera
I wish you a nice day, please, according to http://book.cakephp.org/ I'm lookin for ready project "Documentation builder" I wannt to ask you , is there any ready project, which was used to make Documentation on URL upper? It's nice example of what i want, project to make documentation in Tree-Li

model conditions

2010-05-10 Thread fly2279
I am trying to set conditions on relationships in a model to better filter records returned in finds. If I specify conditions on which users are returned in a $this->Post->find('list) call I'm still getting all the records returned instead of the conditions (booleanfield = 1) placed in the model.

Re: How to insert data in postgesql using cakephp

2010-05-10 Thread John Andersen
Please take a look at the CakePHP cook book at http://book.cakephp.org Maybe go through the tutorial, so that you may get an idea of how CakePHP makes it easy for you to retrieve and save your information. It will probably not be any help if I just pointed you to the models save method, so I will

Re: how to get the value next page...

2010-05-10 Thread John Andersen
Either save the values from each page (step) in the database or in the session, then upon the final save (commit), gather all the information together and save it to the database. Enjoy, John On May 10, 2:14 pm, Master Ram wrote: > hi.. all > > i am new to cakephp. > > i have five pages. and o

how to get the value next page...

2010-05-10 Thread Master Ram
hi.. all i am new to cakephp. i have five pages. and only one table.. in each page i have five fields. i want add the filled data after 5th page. each page i am having next button. after i am clicking on next. i will get the next page. how to do. please help me... in advance thanks... Check

How to insert data in postgesql using cakephp

2010-05-10 Thread Narendra Padala
Hi i am new to cake php, how to insert data in to cakephp, i am using PostgreSql please help me out. $strDate="12-12-2010"; $IngCDLog_Type=".gif"; pg_exec($conn,"INSERT INTO tblcdlog(dtmcreated, strcdno, lngcdlog_type, blnsuccess) VALUES ('$strDate', 'Unknown CD', $lngCDLog_Type, '0')"); please

Re: hasAndBelongsToMany Relationship

2010-05-10 Thread WebbedIT
Ok you've mentioned a 3 part process there, at which point are you coming unstuck? - Finding the data and passing it to the view - Using form helper to create a form populated with your data - Submitted the form and saving the changed data What does your dbase schema look like, are you happy that

Re: passing more parameters leads to duplicate content

2010-05-10 Thread WebbedIT
> I find you insistence that in no normal circumstances could massl have > a point (which is how I understand your replies to this thread) - a > bit weird. Firstly, I certainly did not intend to say massl could not have a point under any circumstance. So apologies if I came across as dismissive in

Js helper - hide on change

2010-05-10 Thread Jeremy Burns
Javascript is a bit foreign to me, so I am struggling to accomplish something that is probably quite straightforward. I have a select list. When its value is changed, I want to check it's new value. Then I want to hide or show one or more divs depending on that value. How do I d this with the Js h

Re: Finding related articles

2010-05-10 Thread WebbedIT
Firstly, welcome to the community and to the joys of CakePHP Secondly, HABTM is where a lot of people tend to start tripping over themselves as it's really a convenience method to join 3 tables together with minimal coding and doesn't always have the flexibility of what should ideally be a ModelA

Re: Bakery...arrogance or plain lack of attention

2010-05-10 Thread AD7six
On May 9, 1:10 pm, Jayesh Wadhwani wrote: > ADmad: > > "especially the ones which have almost nil probability of being > accepted like yours" > > This is what I call arrogance. Take a step back and look at the resources you ignored/didn't look for before writing your article; One of cake's core

Re: plugins css javascript route cake 1.3

2010-05-10 Thread Dilip Godhani
Hello In default ctp content_for_layout then in view ctp give this link of css and js without .js and .css css('maincss'));?> Also link(array('property','properties'),false));?> thanks On Mon, May 10, 2010 at 7:34 AM, CoDe wrote: > What is the new correct way for add css on you plugin because

Re: Bakery...arrogance or plain lack of attention

2010-05-10 Thread Roland Bock
Please allow me to make a few remarks as an innocent bystander: Jayesh Wadhwani wrote: > "especially the ones which have almost nil probability of being > accepted like yours" > > This is what I call arrogance. Sure, that does not sound very polite, but it happens. Especially in non-verbal commu