Re: Flow Control with Ajax

2009-09-09 Thread Martin Westin
On successful login, Auth Component does a redirect to either: 1. where you were before you were redirected to the login screen (not in your case I guess) 2. whatever default you have set 3. the website index page. (I think that is the correct order) I guess your problem is that your ajax call

Re: cake cant find model's method!!!

2009-09-09 Thread Martin Westin
I am not sure about this but I have a vague memory about reading that for habtm Cake does not look for any real model unless you specify with in the association. The automagic being that you don't have to make a real linking model for those simple habtm associations and Cake does not have to

Total of multiple records frequently

2009-09-09 Thread Jas
If I have a table with a price field and these prices change very frequently, also rows are added and subtracted frequently. I need to make an element that shows the total of all these prices, what is the most efficient way to minimise load on the database. Keep in mind there might be anywhere

Re: Two paginations on one page, can't figure it out

2009-09-09 Thread Martin Westin
Yes I saw defaultModel too after I posted. Both my paginated models were in paginator's params array but using them both seems, as you say, to only affect parst of the helper. For example, numbers pulls the correct values provided by the component and uses them for counting pages but does not

How to Call Library Function from a Component

2009-09-09 Thread Sarah
I want to call the hash function from the Core Security Library. In this controller I can simply call $this-hash(...); but in the component I get an error: Fatal error: Call to undefined method obAuthComponent::hash() I tried $this-ControllerName-hash and $this-ModelName-hash and I can't find

Re: How to Call Library Function from a Component

2009-09-09 Thread Martin Westin
I believe you can call it statically like this: Security::hash(...); /Martin On Sep 9, 8:45 am, Sarah sarah.e.p.jo...@gmail.com wrote: I want to call the hash function from the Core Security Library. In this controller I can simply call $this-hash(...); but in the component I get an

Re: Containable ignoring model::order?

2009-09-09 Thread Ernesto
find call works ok i was just wondering why Containable is ignoring my model::order. On 9 Set, 05:20, brian bally.z...@gmail.com wrote: On Tue, Sep 8, 2009 at 7:35 PM, Ernestoe.fanz...@gmail.com wrote: y sorry i forgot it i'm using the italian translation of Date as field name

Re: session lost during ajax calls problem

2009-09-09 Thread Martin Westin
At security level high CakePHP creates a new session id for each request (often enough anyway). This behaviour might be causing you problems using Ajax. The intermittent aspect of the problem is because ajax will be fine as long as you don't make use of the A too much. Cake will only allow one

Re: architecture question

2009-09-09 Thread John Andersen
Are the non-members information important after the meeting? Are there non-members, who participates repeatedly? Must non-members provide information on themselves every time, or can they use their previous non-member information? What are the current use of the members? Does the non-members

Re: CakeForum

2009-09-09 Thread Aivaras
http://www.milesj.me/forum is purely with CakePHP :p Faifas On Wed, Sep 9, 2009 at 02:09, ihti meta...@gmail.com wrote: CakeForum is a fast and lightweight CakePHP powered forum software with very basic functionality. It is being actively developed and new featured are popping up on a

Re: Query Help

2009-09-09 Thread WebbedIT
@Miles J - Of course, I was concentrating on using cake to build the SQL so much that I missed the obvious mistake in creating the conditions array. I don't suppose cake would handle the following: array('Post.title LIKE'=array('%mary%', '%tom%'), 'Post.description LIKE'=array('%mary%',

Re: Checkboxes in index view

2009-09-09 Thread WebbedIT
I would be creating a new action in your controller to handle your multiple soft delete and you would need to pass a data array structured as follows: Array ( [ModelName] = Array( [0] = Array ( [id] = 1

Dynamic Selection of Database config based on Debug level

2009-09-09 Thread CapeTownGuy
Hi, is there some instructions on how to get Cake to use an alternative Database config, based on the Debug level, I currently use the following code inside my core.php to dynamically change between debug levels, based on whether I'm on my localhost, or on my production server... I tried the same

Production server MySQL connection problem...

2009-09-09 Thread CapeTownGuy
Hi, I keep on getting the following message on my production server and the hosting company asked me to troubleshoot my code... (xxx denotes the correct server config info)... this configuration, when edited on my localhost works fine. Warning (2): mysql_connect() [function.mysql-connect]: Host

Re: Total of multiple records frequently

2009-09-09 Thread WebbedIT
The most accurate would be to run a method after create, update and delete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Cake standard index cannot connect to db

2009-09-09 Thread Mukke
But it is supported, it is PDO witch is not installed in my environment mysql MySQL Support enabled Active Persistent Links 0 Active Links0 Client API version 5.0.18 MYSQL_MODULE_TYPE external MYSQL_SOCKET/var/lib/mysql/mysql.sock MYSQL_INCLUDE -I/usr/include/mysql

how to call method from another controller?

2009-09-09 Thread toka...@gmail.com
Hi, how can I call method from another controller? I have read somthing about requestAction(...) but in help they say ... It is rarely appropriate to use in a controller or model. Is there other better way?? Thanks Tomas --~--~-~--~~~---~--~~ You received this

app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-09 Thread toka...@gmail.com
Hi, I have got some little issue and I would appreciate if anybody can help me out :) In some specific part PHP (not even cake I guess) gives me strange error. Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 19456 bytes) in

How to use PHP to delete cookies when browser is close.

2009-09-09 Thread arif hossen
Dear all , Please help me. How to use CAKEPHP to delete cookies when browser is close. -- Regards, Mohammad Arif Hossen Software Enginner Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com +88 01714355911 --~--~-~--~~~---~--~~ You received this

Re: Total of multiple records frequently

2009-09-09 Thread schneimi
Hi Jas, I just had the same situation and I created a model behavior where the sum of all fields can be written to a parent model field afterSave() and afterDelete(). The definition of the field and the scope of the sum operation I define inside the model's belongsTo-Associaton. If you just

Re: Cake standard index cannot connect to db

2009-09-09 Thread Mukke
Nvm i found the problem, i followed some tutorial somwhere witch said database_name in stead of database On Sep 8, 6:22 pm, brian bally.z...@gmail.com wrote: I think PDO is not supported. You'll need to have either MySQL or MySQLi drivers installed. On Tue, Sep 8, 2009 at 10:01 AM,

Re: Checkboxes in index view

2009-09-09 Thread Jas
OK, trying to get the array layout like yours. I've only been able to get this close. Array ( [Records] = Array ( [id] = 17 [delete] = 0 ) ) echo $form-hidden('Records.id]',array('value' = $record['Record'] ['id'])); echo

The Todo List Tutorial not working ormissing somthing

2009-09-09 Thread Dismankler
Hopefully it will be simple for one of you to help me. I was following the steps in the Todo list tutorial from Cakephp novice to professional and i am getting stuck along the way. . 1)Firstly i created my database CREATE TABLE IF NOT EXISTS `item` ( `id` int(11) unsigned NOT NULL

Re: app problems after upgrading cake to newer versions.. [within 1.2.4.xx] ?

2009-09-09 Thread Bert Van den Brande
I think it also depends on what your own code is doing in draw_form_item.ctp on line 35 . Possibly the CakePHP upgrade requires a little bit of extra memory, and your script was already near the limit of 8MB using the previous CakePHP version ? Try raising the memory limit a bit and evaluate

Re: Production server MySQL connection problem...

2009-09-09 Thread Bert Van den Brande
Does your provider guarantees that a client coming from the address 'www17.jnb2.host-h.net has access to the mysql database ? On Wed, Sep 9, 2009 at 10:25 AM, CapeTownGuycobus.van.aa...@gmail.com wrote: Hi,  I keep on getting the following message on my production server and the hosting

Re: layzy loading

2009-09-09 Thread AgBorkowski
nice one On 5 Wrz, 22:06, Miles J mileswjohn...@gmail.com wrote: Here you go, this will do what your asking for model associations. http://www.pseudocoder.com/archives/2009/04/17/on-the-fly-model-chain... But yes, since it supports PHP 4 it wont do lazyloading, its a future feature.

Question about dropRemote

2009-09-09 Thread Luke
Hi, I had already posted a question, but figured out that this might have been too confusing. i want to use a Drag and Drop AJAX Function. I have got 2 Drop Zones. div id=dropZone11/div div id=dropZone22/div Question: 1. Do I need now 2 dropRemote for this? 2. I know I can use with to hand

Hi, $paginator-sort, I need a ID in the a tag.

2009-09-09 Thread Cosmin Paul
My employer wants a drop down for sorting the results instead of links. I want to do this by launching a js function that make a click on the appropriate link that is hidden. It is this the right way to do it ? And if so, haw can I insert a ID in the a href that $paginator-sort set on the

Re: How to use PHP to delete cookies when browser is close.

2009-09-09 Thread hellfish
Is this for real?! On 9 Set, 10:45, arif hossen arifhossen2...@gmail.com wrote: Dear all , Please help me. How to use CAKEPHP to delete cookies when browser is close. -- Regards, Mohammad Arif Hossen Software Enginner Epsilon Consulting and Development Services(ECDS)www.ecds-tech.com

char primary keys and HABTM saves

2009-09-09 Thread hellfish
Hi, Does anyone know if cake core has any problems saving HABTM tables using text keys instead of numeric? I have and edit method in a controller that is supposed to save data to it's main table and 3 HABTM. Two of them work just as expected, first removing all of the rows in the table and

Re: Virtual Hosting for CakePHP sites

2009-09-09 Thread Vladiq
thanks, I'll try to work a2hosting. Also I found in help: Yes we working with CakePHP ;-) On 8 сен, 20:23, Changoso mmosc...@gmail.com wrote: I use A2Hostingand Works great with vhosting and CakePHP Have lots of cakeprojects working without problem ;) A2 say they are programmers friendly

Cake php

2009-09-09 Thread nida
Hello , I m not able to connect my database with Mysql in cake php that show database could not connection error please tell me where i m wrong. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: Cake php

2009-09-09 Thread Rick
What OS? Are you able to connect or query using any other program? Type mysql on command line. What do you get? Rick On Sep 9, 6:52 am, nida nidakid...@gmail.com wrote: Hello ,  I m not able to connect my database with Mysql in cake php that show database could not connection error

Re: Cake php

2009-09-09 Thread Amit Rawat
Make changes in your database.php file in config folder. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: Should id be hidden value?

2009-09-09 Thread thesti
ah yes, i can check the passed id if it's stored in a session, and i'll check out the security component. it's better to use what's already there supplied by Cake than to solve problems with our own way right? thank you for your replies. --~--~-~--~~~---~--~~

Cake not saving CREATED and MODIFIED field to the join table when saving related records

2009-09-09 Thread doze
Hello, The problem is in the title Cake not saving CREATED and MODIFIED field to the join table when saving related records, here's the models involved: -- - -- Table `dbname`.`user` -- -

Re: how to call method from another controller?

2009-09-09 Thread Mukhamad Ikhsan
App::import('Controller', array(...)); http://book.cakephp.org/view/531/Importing-Controllers-Models-Components-Behaviors- On Wed, Sep 9, 2009 at 3:50 PM, toka...@gmail.com toka...@gmail.com wrote: Hi, how can I call method from another controller? I have read somthing about

model-saveAll is only for add(create)?

2009-09-09 Thread Mukhamad Ikhsan
I have a class model 1. Shift - has many ShiftDetail 2. ShiftDetail - belongs to Shift i was creating page for add Shift that has also can create shift detail on the same page (using ajax) in the controller i using saveAll to save that data, if ($this-Shift-validates()) {

Finding deeply related models

2009-09-09 Thread Bryan Paddock
Hey all, How can I get cake to retrieve deeply related info? *Property *belongsTo *Location *which in turn belongsTo *Country* How can I get $this-Property-find(xx) to return the Country as well? I'm having the same problem with *Property *belongsTo *Seller *which belongsTo *User *(every time I

Re: how to call method from another controller?

2009-09-09 Thread Mukhamad Ikhsan
initialize to local variable, $variable = App::import('Controller', array('example')); $variable-method On Wed, Sep 9, 2009 at 8:36 PM, Mukhamad Ikhsan ikhsan.o...@gmail.comwrote: App::import('Controller', array(...));

Re: Finding deeply related models

2009-09-09 Thread grigri
Set recursive to 2? On Sep 9, 3:21 pm, Bryan Paddock bryanpadd...@gmail.com wrote: Hey all, How can I get cake to retrieve deeply related info? *Property *belongsTo *Location *which in turn belongsTo *Country* How can I get $this-Property-find(xx) to return the Country as well? I'm

Re: Finding deeply related models

2009-09-09 Thread Bryan Paddock
recursive only accepts 3 values... -1 / 0 / 1 Tried that :( On Wed, Sep 9, 2009 at 4:57 PM, grigri j...@hendersonwebdesign.com wrote: Set recursive to 2? On Sep 9, 3:21 pm, Bryan Paddock bryanpadd...@gmail.com wrote: Hey all, How can I get cake to retrieve deeply related info?

Re: Finding deeply related models

2009-09-09 Thread grigri
Where on earth did you get that idea? See: http://book.cakephp.org/view/439/recursive Check the model tests in the source, there are many examples of setting recursive to 2, 3, and even 6 (in the testReadFakeThread method). hth grigri On Sep 9, 4:01 pm, Bryan Paddock bryanpadd...@gmail.com

Re: Finding deeply related models

2009-09-09 Thread Bryan Paddock
Oh no ways Hmm.. $this-Property-recursive = 1; pr($this-Property-find('all')); and it prints out the properties without extended associated data... $this-Property-recursive = 2; pr($this-Property-find('all')); and it returns nothing at all... hmmm let me look through my models - maybe I

Re: How to use PHP to delete cookies when browser is close.

2009-09-09 Thread Kau-Boy
What hellfish wanted to say: YOU CAN'T. Closing the browser doesn't affect PHP so the only way to do this is IN the browser. But why so complicated. Just use a session. A session usually stores user information in a text file on the server. To recognize a user, the browser will store a session

PHP IDEs

2009-09-09 Thread Bob Albert
I've been doing my PHP coding in BBedit on the Mac, but thinking that it would be better if I started to use an IDE for PHP. Can anyone recommend a good free or low cost one that works well on Mac and with CakePHP framework? I've briefly looked at Zend Studio but it's too expensive for me

Re: How to use PHP to delete cookies when browser is close.

2009-09-09 Thread Brendon Kozlowski (Realm)
PHP is primarily a web centric language. Once the browser is closed, there really isn't a way to clear the cookies of a visitor, as there is no further way to interact with the web site, and thus the server that runs the PHP code. If you are thinking more along clearing your OWN cookies after

RE: Finding deeply related models

2009-09-09 Thread Dave Maharaj :: WidePixels.com
Why not use contain? 'contain' = array( 'Property' = array( 'conditions' = array( 'Property.id' = $foo), 'fields' = array( 'Property.field1, 'Property.field2')),

Re: PHP IDEs

2009-09-09 Thread Thiago Nuic Vidigal
I like netbeans a lot. It shows documentation from PHP functions inline in the editor, which is very useful. On Wed, Sep 9, 2009 at 12:18 PM, Bob Albert b...@superstan.com wrote: I've been doing my PHP coding in BBedit on the Mac, but thinking that it would be better if I started to use an

Re: ACO node being overridden by a node with the same name further down the tree

2009-09-09 Thread benjamwelker
I tried to submit this bug, but apparently my trac account doesn't have the proper permissions to submit a ticket. If someone in charge of trac.cakephp.org could remedy this for me, I'd be happy to file a ticket. Thanks. On Aug 18, 8:04 pm, benjam benjamwel...@gmail.com wrote: I have

Release: CakePHP 1.2.5

2009-09-09 Thread mark_story
The CakePHP development team is happy to announce CakePHP 1.2.5[1]. 1.2.5 is a bug fix release of the latest stable branch. Check the changelog[2] for all the changes. CakePHP 1.2.5 Includes almost 40 commits and more than 20 fixes. Furthermore, due to popular demand CakePHP 1.2.5 is compatible

Re: PHP IDEs

2009-09-09 Thread Tokasa
Hi Bob, I use on my Mac Eclipse with PHP support. http://www.eclipse.org/pdt/ It does not come with build-in cakes support but it is good for me. Anyway you can put cake's library in build path and you get also suggestion of cake core methods... Tomas On Sep 9, 5:18 pm, Bob Albert

Plugin models - are they recognizable as such?

2009-09-09 Thread Jamie
OK - I can't figure out if I'm missing something really obvious (quite possibly), or if the functionality just isn't there. Basically, my issue is figuring out whether a model belongs to a plugin at runtime. I've got some common functionality in a behavior that is attached to almost every model

Contain not pulling data

2009-09-09 Thread Dave Maharaj :: WidePixels.com
I have this contain query $params = array( 'conditions' = array( 'Post.featured' = 1, 'Post.status' = 0, 'Post.rank =' = $rank, 'NOT' = array( 'Post.id' = $remove)), 'fields' = array(

Re: Plugin models - are they recognizable as such?

2009-09-09 Thread Miles J
Well in what circumstances would you need to know if its from a plugin or not? You should know right off the bat when you are calling the model, like Plugin.ModelName. On Sep 9, 9:08 am, Jamie jamie@gmail.com wrote: OK - I can't figure out if I'm missing something really obvious (quite

Re: how to call method from another controller?

2009-09-09 Thread Miles J
Do not listen to Mukhamad Ikhsan, that way is extremely wrong. Simply place the method you want to use in the AppController, or within a component. On Sep 9, 6:38 am, Mukhamad Ikhsan ikhsan.o...@gmail.com wrote: initialize to local variable, $variable = App::import('Controller',

Re: Production server MySQL connection problem...

2009-09-09 Thread brian
Try changing it to 'host' = 'localhost' On Wed, Sep 9, 2009 at 4:25 AM, CapeTownGuy cobus.van.aa...@gmail.com wrote: Hi,  I keep on getting the following message on my production server and the hosting company asked me to troubleshoot my code... (xxx denotes the correct server config

Re: cake cant find model's method!!!

2009-09-09 Thread Miles J
Yes the join or relation HABTM table uses the AppModel object unless you supply a model name with the with option. Ive ran into many problems because of this. On Sep 8, 11:21 pm, Martin Westin martin.westin...@gmail.com wrote: I am not sure about this but I have a vague memory about reading

Re: [CakePHP : The Rapid Development Framework for PHP] #6245: HABTM primaryKey identified in one direction only, bad DELETE queries

2009-09-09 Thread Stephen Cuppett
Can somebody re-open Trac Ticket #6245. It's sitting in the waiting for testcase state, but I have put a testcase in there since then: 6245_testcase.tar.gz (2.1 kB) - added by cuppett on 07/16/09 21:56:09. The CakePHP Testcase There is also some analysis and a patch. Stephen Cuppett steve at

Re: architecture question

2009-09-09 Thread brian
On Wed, Sep 9, 2009 at 3:31 AM, John Andersen j.andersen...@gmail.com wrote: Are the non-members information important after the meeting? Are there non-members, who participates repeatedly? Must non-members provide information on themselves every time, or can they use their previous

Re: Total of multiple records frequently

2009-09-09 Thread brian
I would strongly consider doing this within the DB. With proper indexing, it'd be a lot more efficient to let the DB do the calculations rather than have your app do it. On Wed, Sep 9, 2009 at 2:22 AM, Jas mciver.ja...@gmail.com wrote: If I have a table with a price field and these prices

Re: Containable ignoring model::order?

2009-09-09 Thread brian
If the find() works ok, what's the problem? On Wed, Sep 9, 2009 at 3:19 AM, Ernesto e.fanz...@gmail.com wrote: find call works ok i was just wondering why Containable is ignoring my model::order. On 9 Set, 05:20, brian bally.z...@gmail.com wrote: On Tue, Sep 8, 2009 at 7:35 PM,

Re: The Todo List Tutorial not working ormissing somthing

2009-09-09 Thread brian
On Wed, Sep 9, 2009 at 6:19 AM, Dismankler simbatro...@gmail.com wrote: Hopefully it will be simple for one of you to help me. I was following the steps in the Todo list tutorial from Cakephp novice to professional and i am getting stuck along the way. . 1)Firstly i created my database

RE: Contain not pulling data - Solved

2009-09-09 Thread Dave Maharaj :: WidePixels.com
Was missing Post.user_id Dave -Original Message- From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com] Sent: September-09-09 1:42 PM To: cake-php@googlegroups.com Subject: Contain not pulling data I have this contain query $params = array( 'conditions' =

Re: PHP IDEs

2009-09-09 Thread Bob Albert
Tomas - thanks. I downloaded the Eclipse for PHP developers. Is that the same thing as adding PDT to Eclipse? Bob On Sep 9, 2009, at 9:00 AM, Tokasa wrote: Hi Bob, I use on my Mac Eclipse with PHP support. http://www.eclipse.org/pdt/ It does not come with build-in cakes support but it

Re: The Todo List Tutorial not working ormissing somthing

2009-09-09 Thread Miles J
Additionally, your table name should be plural, so items. On Sep 9, 9:52 am, brian bally.z...@gmail.com wrote: On Wed, Sep 9, 2009 at 6:19 AM, Dismankler simbatro...@gmail.com wrote: Hopefully it will be simple for one of you to help me. I was following the steps in the Todo list tutorial

Re: How to Call Library Function from a Component

2009-09-09 Thread Sarah
Thank you. On Sep 9, 12:04 am, Martin Westin martin.westin...@gmail.com wrote: I believe you can call it statically like this: Security::hash(...); /Martin On Sep 9, 8:45 am, Sarah sarah.e.p.jo...@gmail.com wrote: I want to call the hash function from the Core Security Library. In

unique validation problem

2009-09-09 Thread brian
I have the following validatio rules: 'email' = array( 'valid' = array( 'rule' = 'email', 'required' = true, 'allowEmpty' = false, 'message' = 'You must provide an email address.' ), 'duplicate' = array(

form plugin

2009-09-09 Thread andrzejborkow...@gmail.com
WTF loks at namespaces LikecontentSection Section my VIEW ?php echo $form-create('Section',array ('plugin'='likecontent','controller'='sections','action'='add'));? fieldset legend?php __('Add');?/legend

Re: unique validation problem

2009-09-09 Thread brian
On Wed, Sep 9, 2009 at 1:42 PM, brian bally.z...@gmail.com wrote: I have the following validatio rules: 'email' = array(        'valid' = array(                'rule' = 'email',                'required' = true,                'allowEmpty' = false,                'message' = 'You must

Re: Validating a HABTM relationship

2009-09-09 Thread PedroBenaca
Well, I was having exactly the same problem: a HABTM relation between two entities. That fix worked, but is a workaround. I really think this is a bug and should be solved by the CakePHP team. With all that wonderful automagic, why do I have to copy an array to have working validation and data

Re: architecture question

2009-09-09 Thread humbao
brian, If members and non-members have the same fields, why not have a field called 'status' which holds 'member' or 'non-member'? humbao brian wrote: I'm building a site for an industry organisation and have a tricky (I think) architecture problem. There's a table for members, with first

Re: PHP IDEs

2009-09-09 Thread Kornelije Sajler
Komodo IDE is quite OK and has a nice support for CakePHP. Setup screencast can be found herehttp://www.pseudocoder.com/archives/2009/02/25/programming-cakephp-app-with-komodo-ide/ . Kornelije Sajler On Wed, Sep 9, 2009 at 19:03, Bob Albert b...@superstan.com wrote: Tomas - thanks. I

Re: Returning file for download

2009-09-09 Thread Benedikt R.
This works much better! Thank you! On 8 Sep., 07:03, Braindead markus.he...@gmail.com wrote: You could also have a look at Cakes media views:http://book.cakephp.org/view/489/Media-Views --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: architecture question

2009-09-09 Thread John Andersen
Hi Brian, If the information is correct, that the meeting only takes place yearly, then I would not care to retrieve the non-members information or even keep it for long. Then my models would be: meetings - hasMany - non-members (thus the non-members register their information every time for

Using CakePHP Layouts outside of CakePHP

2009-09-09 Thread Jesse
I'm wondering if anyone else has this problem and has come up with a solution. Before my company started migrating some of our new development to CakePHP we used just straight PHP development. Mostly pretty ugly but it got the job done. Most of our templates were a simple ?php

Re: Missing Database Table

2009-09-09 Thread new2cakephp
tried that too..!!! it shows the same error On Sep 8, 1:49 pm, Miles J mileswjohn...@gmail.com wrote: Do you have caching on? Try clearing your tmp/cache folders. Also try doing var $uses = array('Post'); in your controller. On Sep 8, 9:33 am, new2cakephp shabaris...@gmail.com wrote:

Re: Plugin models - are they recognizable as such?

2009-09-09 Thread Jamie
Actually, after some more digging I think my original question was a bit short-sighted and possibly entirely irrelevant. Here's the situation: One of our clients wants a what's new section of their website, in which basically anything new or modified in the database gets reported. So, a new

Possible ACL or Cookie Issue When I Reload Page

2009-09-09 Thread hahmadi82
There's a very peculiar problem with my site that I can't quite figure out. My garage page loads/displays information from the database based on the users current session that's logged in. The user_id used to load the information is set to $this-Auth-user('id'). However, if you reload the page

Re: architecture question

2009-09-09 Thread brian
On Wed, Sep 9, 2009 at 2:24 PM, John Andersen j.andersen...@gmail.com wrote: Hi Brian, If the information is correct, that the meeting only takes place yearly, then I would not care to retrieve the non-members information or even keep it for long. Then my models would be: meetings -

Re: architecture question

2009-09-09 Thread brian
On Wed, Sep 9, 2009 at 12:44 PM, humbao hum...@gmail.com wrote: brian, If members and non-members have the same fields, why not have a field called 'status' which holds 'member' or 'non-member'? Yes, this is what a couple of others have suggested. It was also one of my original plans but

Re: Missing Database Table

2009-09-09 Thread Miles J
Try putting var $useTable = 'posts'; in your Post model and see what happens. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: Missing Database Table

2009-09-09 Thread new2cakephp
tried that too..!! I guess there is connection to the database.. but when i check xampp/mysql/data/ I have the database that I have created.. On Sep 9, 6:38 pm, Miles J mileswjohn...@gmail.com wrote: Try putting var $useTable = 'posts'; in your Post model and see what happens.

Re: Release: CakePHP 1.2.5

2009-09-09 Thread George H
Good going with the release of 1.2.5! I've already downloaded and installed it. However, I noticed that the version reported is still 1.2.4.8284. Are you sure this is a clean commit to the code base? Commit [e693e881e05dba168f49d14ab657dbff2b2f9c88] in the changelog says that the version number

Re: Missing Database Table

2009-09-09 Thread Miles J
Since your on xampp, does your database information in your config file match the database found at localhost/phpmyadmin (or your online server)? On Sep 9, 3:47 pm, new2cakephp shabaris...@gmail.com wrote: tried that too..!! I guess there is connection to the database.. but when i check

Do I need this?

2009-09-09 Thread Dave Maharaj :: WidePixels.com
I have an admin routing set up for manage_action Pretty much all the functions after baking the original controller functions have if (!$id empty($this-data)) { $this-Session-setFlash(__('Invalid User', true)); $this-redirect(array('action'

Re: Missing Database Table

2009-09-09 Thread new2cakephp
Please eloborate..!!! thanks On Sep 9, 8:33 pm, Miles J mileswjohn...@gmail.com wrote: Since your on xampp, does your database information in your config file match the database found at localhost/phpmyadmin (or your online server)? On Sep 9, 3:47 pm, new2cakephp shabaris...@gmail.com

Validation Help

2009-09-09 Thread Dave Maharaj :: WidePixels.com
Not getting any validation error message with this: 'current' = array( 'rule' = array( 'between', 5, 15), 'required' = true, 'allowEmpty' = false, 'message' = 'Passwords must be between 5 and 15 characters long.', 'last' = true), The

Re: model-saveAll is only for add(create)?

2009-09-09 Thread loke
No as long as relevant conditions and fields are present, it will update as well. Loke On Sep 9, 9:55 am, Mukhamad Ikhsan ikhsan.o...@gmail.com wrote: I have a class model 1. Shift - has many ShiftDetail 2. ShiftDetail - belongs to Shift i was creating page for add Shift that has also can

Re: PHP IDEs

2009-09-09 Thread loke
After using Eclipse PDT for almost four years now, and moving on to Eclipse Galileo, I found that Eclipse IDE is too slow, and hogs too much of memory, and CPU resources. It does support soft wrapping using Athik's wrapper plugin. I tried NetBeans recently which does not have any support for

Re: Missing Database Table

2009-09-09 Thread Miles J
Go to localhost/phpmyadmin in your browsers address bar. From there you should see all your database tables created on your localhost. Now open database.php within your Cake app and determine if the database names and users match up. Seems like you might be creating the posts table on the wrong

Re: Possible ACL or Cookie Issue When I Reload Page

2009-09-09 Thread AgBorkowski
i have the similar situation with auto complete and many ajax reuests - my user after many request to controller has logout when i cut url and paste in browser user has goback login. this is the stupid situation. On 9 Wrz, 23:49, hahmadi82 hahmad...@gmail.com wrote: There's a very peculiar

Re: Help with authentication

2009-09-09 Thread Shashidhar Gampa
Thank you for the response. So are you saying that I have only one Auth code in my complete application? Can't we have multiple Auth code in different controllers and treat them differently? That is each controller have their own Auth code. Is that not possiable in cakePHP? Regards, Shashidhar.G

Re: PHP IDEs

2009-09-09 Thread MattyHead
I bake in the command-line and edit with gedit like loke. Haven't made use of gmate yet. (will check it out, thx, loke) Matt On Wed, Sep 9, 2009 at 9:57 PM, loke developer.l...@gmail.com wrote: After using Eclipse PDT for almost four years now, and moving on to Eclipse Galileo, I found

Re: Missing Database Table

2009-09-09 Thread new2cakephp
you are awesome..!!! i jus screwed up the name of the database.!! thanks a ton..!!! thanks On Sep 9, 10:14 pm, Miles J mileswjohn...@gmail.com wrote: Go to localhost/phpmyadmin in your browsers address bar. From there you should see all your database tables created on your localhost. Now open

Re: Dynamic Selection of Database config based on Debug level

2009-09-09 Thread Dr. Loboto
Have both configs in database.php, add AppModel, in it's constructor set appropriate db config name to $this-useDbConfig and then call parent constructor. Copy constructor arguments for AppModel from Model and don't forget to pass them all to parent::__constructor(); On Sep 9, 3:21 pm,