Re: expired cache files

2009-08-11 Thread zonium
Any insight everyone? --~--~-~--~~~---~--~~ 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, send email to

expired cache files

2009-08-10 Thread zonium
was told that on reading of cache data cake will delete the cache data if it is expired but If the expired data /cache files do not get read, how are they going to be deleted? Thanks zonium --~--~-~--~~~---~--~~ You received this message because you are subscribed

Execute a MS SQL stored procedure and receive values from Output parameter, How?

2009-07-30 Thread zonium
prams from Stored procedures. Thank you, zonium --~--~-~--~~~---~--~~ 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, send email

Re: IIS + CakePHP + ISAPI_Rewrite 3

2009-07-11 Thread zonium
Have you you read this: http://bakery.cakephp.org/articles/view/cakephp-on-iis6-with-fastcgi-sql-server-2005-and-isapi_rewrite I am guessing you are using IIS6 and you missed one step where you have to run Helicon Manager.exe to 'import' the content of .htacess (if you are using IIS 6) After

Re: Containable Behaviour Join Table

2009-07-02 Thread zonium
I run into the same problem as tobi_one described. Can some one provide a solution to the problem? How to get rid of LocationsVoucher array. Please help. Zonium --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Acl question: Can I change the name of aros and acos tables?

2009-06-24 Thread zonium
$prefix, it will be used for all tables, we cannot different prefixs for different tables. Any insight is appreciated. Zonium On Jun 24, 8:56 am, brian bally.z...@gmail.com wrote: On Tue, Jun 23, 2009 at 11:25 PM, zoniumzon...@gmail.com wrote: We are forced to follow some naming conventions

Acl question: Can I change the name of aros and acos tables?

2009-06-23 Thread zonium
We are forced to follow some naming conventions for our tables (some prefix needs to be added to the table names). I am going to use ACL component, but I wonder if I can use different names for aros, acos and acos_aros tables (e.g adding a prefix)? Thanks, Zonium

Re: Poll: what do you hate about CakePHP?

2009-05-08 Thread zonium
- Hard / impossible to organize large applications into smaller / manageable pieces. When you have 50 controllers or more in one folder you'll hate cakephp because it's difficult to locate things. (same problem with models and views) . I would like to organize the Model/Views/Controller

Re: Poll: what do you hate about CakePHP?

2009-05-08 Thread zonium
- Hard / impossible to organize a large application into smaller / manageable pieces. When you have 50 controllers or more in one folder you'll hate cakephp because it's difficult to locate things. (same problem with models and views) . I would like to organize the Model/Views/Controller

Re: Poll: what do you hate about CakePHP?

2009-05-08 Thread zonium
@Hannibal Lecter: I do use classPaths. Sometimes to achieve proximity of related MVC files for a feature of my application I have to create an 'app' for each feature; each of these apps has a complete cake application structure including config, tmp, app_controllers etc. (beside the regular,

Re: ACL - How to handle multiple nested levels of accounts

2009-04-10 Thread zonium
Thank you jmcneese for showing me an alternative to the cake's ACL. Your articles help me understand weaknesses of ACL when used to safeguard records. It's was interesting to see immediate attentions/ reactions from the core developers on those articles as well. One problem (in my case) with the

ACL - How to handle multiple nested levels of accounts

2009-04-07 Thread zonium
() ? Any suggestion is appreciated ( and welcome comments from aranworld, lemoncake, mark_story, francky06l and AD7six - Many thanks to each of you for excellent tutorials on ACL) Zonium --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: SQL query did not get executed for subsequent calls to requestAction

2009-03-27 Thread zonium
() On Thu, Mar 26, 2009 at 3:31 PM, zonium zon...@gmail.com wrote: I call requestAction('another_controller/myAction') at different places from a controller. What myAction() does is run a SQL query to get some data from DB. I notice that the SQL query in myAction() gets executed only

SQL query did not get executed for subsequent calls to requestAction

2009-03-26 Thread zonium
I call requestAction('another_controller/myAction') at different places from a controller. What myAction() does is run a SQL query to get some data from DB. I notice that the SQL query in myAction() gets executed only the first time the requestAction('another_controller/myAction') is called. For

DebugKit - where to put

2009-02-25 Thread zonium
it be in core.php after the line where we specify Configure::write ('debug', 2); or in bootstrap.php? Thanks, Zonium --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Migrating from 1.2 alpha to 1.2 Final

2009-02-02 Thread zonium
this migration path. Any link to a similar attempt or any suggestion is appreciated. Zonium. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php

Re: Please include CakeBaker on the blog list

2008-06-09 Thread zonium
Fantastic, a very positive ending! This was what I wished but didn't expect it would happen. Thanks to villas for creating this thread and thanks to the core team for listening. @Daniel : blog more! :) zonium On Jun 8, 2:37 pm, villas [EMAIL PROTECTED] wrote: Thanks Cake Team for reviewing

Re: Can cake do this or am I asking too much

2008-05-01 Thread zonium
for 2 entities. How can you tell cake to handle a relationship of more than 2 entities (i.e. the join table has 3 or more foreign keys)? Zonium On 30 Tháng Tư, 15:23, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The only real downsides I can see other than complicated code is that join tables

Re: problem handling huge database

2008-04-06 Thread zonium
Did you turn on debug? Look at the SQL statements to see what cake is trying to do and you'll figure out where the issue is. zonium On Apr 6, 1:10 pm, crazyDavid [EMAIL PROTECTED] wrote: sry about the version. it is 1.2 i am using only one model and i finally am able to run the script

Re: How to manage different site instances...

2008-04-06 Thread zonium
pertaining to the stage are invoked. stage1_index() stage2_index() Same naming convention for view. Just a quick thought Zonium On Apr 3, 12:15 pm, John R [EMAIL PROTECTED] wrote: My application is a series of contests with different stages (submission, voting, awards, etc.) For each stage

HABTM: How to prevent cake from deleting all associations before Insert

2007-12-18 Thread zonium
This 'issue' was discussed long ago: http://groups.google.com/group/cake-php/browse_thread/thread/acb76273176c3e21/d660547d266f8c7c?lnk=gstq=habtm+insert+delete#d660547d266f8c7c Basically, when some new entries are added (saved) to the jointable, cake attempts to DELETE FROM `jointable` WHERE

Re: HABTM: How to prevent cake from deleting all associations before Insert

2007-12-18 Thread zonium
workaround ? On Dec 18, 8:33 am, the_woodsman [EMAIL PROTECTED] wrote: Off the top of my head, I seem to remember someone implemented a behaviour to handle this? Maybe Im going crazy. Check the Bakery On Dec 18, 9:12 am, zonium [EMAIL PROTECTED] wrote: This 'issue' was discussed long

Re: Multiple N to Distinct N Model

2007-12-13 Thread zonium
for testing out this case. Good luck, Zonium On Dec 12, 9:59 pm, Santa [EMAIL PROTECTED] wrote: AD7six said: OR consider scaffolding what it is (a development tool), bake/write some code and add the conditions to the generateList call as you would need to do for any polymorphic model

Re: Has and belongs to many, with extra columns

2007-12-13 Thread zonium
Some info on how 'with' is used can be found here: http://www.cakephp.org/files/OCPHP.pdf Note: - using 'with' is optional, - scaffold controller methods and views built with bake wont take care of extra fields On Dec 12, 3:43 pm, Mr-Yellow [EMAIL PROTECTED] wrote: Went looking for the code I

Re: Session Sudden Expire during Ajax call

2007-12-13 Thread zonium
seems ... too restrict. In fact, to avoid the unwanted side effects associated with 'high', 'medium' is usually used as a 'solution'. So the value of 'high' is kind of diminished / less practical and your case is a very good example. Zonium On Dec 13, 1:13 am, ProFire [EMAIL PROTECTED] wrote

Re: Session Sudden Expire during Ajax call

2007-12-13 Thread zonium
seems ... too restrict. In fact, to avoid unwanted side effects associated with 'high', 'medium' is usually used as a *solution*. So the value of 'high' some how diminishes / is less practical; and your case is a good example. Zonium On Dec 13, 1:13 am, Krovosos [EMAIL PROTECTED] wrote: What I've

Re: Session Sudden Expire during Ajax call

2007-12-13 Thread zonium
seems ... too strict. In fact, to avoid unwanted side effects associated with 'high', 'medium' is usually used as a *solution*. So the value of 'high' some how diminishes / is less practical; and your case is a good example. Zonium On Dec 13, 1:13 am, ProFire [EMAIL PROTECTED] wrote: Alright

Re: 1.2 Session variable disappears

2007-12-13 Thread zonium
One thing you can check: The location where session is saved. If 2 pages are from 2 different applications and if they share session the paths (locations) need to be identical Good luck, Zonium On Dec 13, 1:35 pm, francky06l [EMAIL PROTECTED] wrote: If it's works under development

Re: Access cake data from external php script

2007-12-13 Thread zonium
Paolo, This has been discussed here: http://groups.google.com/group/cake-php/browse_thread/thread/8e5f487a944abeaf/e284ffdecdab0c69?lnk=gstq=+cakephp+structure#e284ffdecdab0c69 A note : - if you use $Dispatcher-dispatch($action) you need to use output buffering On Dec 13, 8:29 am, Paolo

Re: Helper Error, point me in the right direction...

2007-12-13 Thread zonium
Look closely..., these are not errors, just notices. Some variables have not been properly set for views. Check your the controller logic. Zonium On Dec 13, 5:52 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to implement the excel output helper from this article:http

Re: A question about MVC

2007-12-13 Thread zonium
@Grant Cox I agree with you. However, I find myself putting a lot of code into controllers. In many cases my models are quite thin while controllers are rather thick. One reason my controllers become thick is that it's easy for me to test out new methods while developing them. Just access them

Re: Multiple N to Distinct N Model

2007-12-12 Thread zonium
?php __('Add');? ?php __('Letter');?/ legend ?php echo $form-input('opening_id'); echo $form-input('middle_id'); echo $form-input('ending_id'); ? /fieldset ?php echo $form-end('Submit');? /div ... ? Good luck Zonium P/S: I like

Re: Session Sudden Expire during Ajax call

2007-12-12 Thread zonium
I am guessing there might be some other causes: - The user agent changed between calls (less likely in your case, though) - When first ajax call came, cake regenerated session_id (if security level set to high) The second ajax request might have taken place when session info had been moved to a

Re: Multiple N to Distinct N Model

2007-12-09 Thread zonium
'letter_contents' into 3. 2) If you prefer the existing table design, you might need to run bake again to re-create the controller (select option that creates 'add', edit, view, delete functions). Then in the 'edit' functions, provide condition parameter for generateList(). Zonium On Dec 8, 6:46 pm, Santa

Re: HABTM Select Option Name Field

2007-12-09 Thread zonium
Try this little trick: Rename the 'category' field in 'categories' table to 'name' Good luck. Zonium On Dec 9, 10:55 am, drcyc [EMAIL PROTECTED] wrote: I have two tables setup to use a HABTM relationship: blogs - id - created - modified - title - entry blogs_categories - blog_id

Re: Dbdesigner :: hasAndBelongsToMany ER example

2007-12-08 Thread zonium
-somefunction() anywhere you can omit Project HasAndBelongsToMany User, in other words, it's not required. Zonium On Dec 7, 2:03 pm, powtac [EMAIL PROTECTED] wrote: Hi zonium, a general question: in't it required to set up both directions? This is something I never understood! Simon On 7 Dez., 22

Re: Model Association 'limit' not working

2007-12-08 Thread zonium
Did you try turning on debug mode and see how the SQL statement looks like? Try running the sql statement manually and you should be able to track where the problem is. Zonium On Dec 7, 5:30 pm, sanderken [EMAIL PROTECTED] wrote: People looking for the answer to defining limit row in oracle

Re: Dbdesigner :: hasAndBelongsToMany ER example

2007-12-08 Thread zonium
-somefunction() anywhere you can omit Project HasAndBelongsToMany User. In other words, it's not required. Zonium On Dec 7, 2:03 pm, powtac [EMAIL PROTECTED] wrote: Hi zonium, a general question: in't it required to set up both directions? This is something I never understood! Simon On 7 Dez

Re: Dbdesigner :: hasAndBelongsToMany ER example

2007-12-07 Thread zonium
I think your diagram is correct academically. For implementation using cake, I usually just need to specify one of the 2 associations: User HasAndBelongsToMany Projects or Projects HasAndBelongsToMany Users Because any one of these already represents the linkage between the 2 model (User and

Re: Am I trying to do the impossible (or impractical)?

2007-11-29 Thread zonium
', ), ); in the controller, try: $this-Customer-findAll(array(id='123456')) and you will see the default address followed by an array of addresses (including the default address as well !) Zonium On Nov 28, 3:55 pm, J.B. [EMAIL PROTECTED] wrote: This can be done by adding another

Re: Getting 404 error after moving to production server

2007-11-28 Thread zonium
Rohit, See if my 'todo list' on cakebaker's blog helps you to deal with your problem when running application the first time. http://cakebaker.42dh.com/2007/11/14/class-configure-not-found-with-development-setup/ Good luck. Zonium On Nov 28, 4:38 pm, Rohit [EMAIL PROTECTED] wrote: Hi, I am

Re: Complex Find Conditions (using arrays) , a bug in 1.2?

2007-11-20 Thread zonium
, On Nov 19, 8:42 pm, Grant Cox [EMAIL PROTECTED] wrote: Put both conditions in the 'or' key: $datetime = date(Y-m-d H:i:s); $count =$this-PromoCode-findCount(array(OR=array(PromoCode.start_date = $datetime, 'PromoCode.active'='1'))); On Nov 20, 11:49 am, zonium [EMAIL PROTECTED] wrote

Re: Complex Find Conditions (using arrays) , a bug in 1.2?

2007-11-20 Thread zonium
` WHERE (((`PromoCode`.`start_date` '2007-11-20 09:11:23') AND (`PromoCode`.`promo_code` = 'freemug')) OR (`PromoCode`.`active` 1)) But ... Too complicated a statement for a simple query. Don't you think? Thanks! On Nov 20, 8:55 am, zonium [EMAIL PROTECTED] wrote: In fact, my select statement

Complex Find Conditions (using arrays) , a bug in 1.2?

2007-11-19 Thread zonium
I have these statements: $datetime = date(Y-m-d H:i:s); $count =$this-PromoCode-findCount(array(PromoCode.start_date = $datetime, OR=array('PromoCode.active'='1'))); With debug enabled I saw cake tried to create this query: SELECT COUNT(*) AS `count` FROM `promo_codes` AS `PromoCode` WHERE

How to specify components in a subfolder

2007-10-14 Thread zonium
I've used $components = array ('ComponentA, ComponentB, ComponentC, ComponentD, ComponentE, ComponentF') to tell the controller that I need the ComponentA, B, C, D, E and F. Now I want to move these components into a folder named ABCDE (inside the standard 'components' folder) because these

Re: How to access a controller action from an application not in cakephp structure

2007-09-24 Thread zonium
Thanks for reminding me about using the 'vendors'. Zonium On Sep 23, 9:44 pm, Geoff Ford [EMAIL PROTECTED] wrote: This all depends on the other application. The basic premise is the same - just include the file you need and if the other app has a whole hierachy of includes etc you need

Re: How to access a controller action from an application not in cakephp structure

2007-09-24 Thread zonium
Geoff, thanks for reminding me about using the 'vendors'. Zonium On Sep 23, 9:44 pm, Geoff Ford [EMAIL PROTECTED] wrote: This all depends on the other application. The basic premise is the same - just include the file you need and if the other app has a whole hierachy of includes etc you

How to access a controller action from an application not in cakephp structure

2007-09-23 Thread zonium
suggestion how I can get through this? (restriction: converting appB to use cake is not an available option) Thanks a lot, Zonium --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group

Re: How to access a controller action from an application not in cakephp structure

2007-09-23 Thread zonium
? Thanks again, Zonium --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED