Re: Secure File Download

2009-07-13 Thread thatsgreat2345
Thanks would of had to code my own thing download function but now with this Media view that is all covered, sweet. On Jul 13, 11:39 am, brian wrote: > Hi Jörg, > > I'll show you the basics of how I just did this. In my case, the files > are stored above webroot and there's a record for each in

Re: Single controller file to access multiple model files

2009-07-13 Thread thatsgreat2345
If you are going to load a lot of models into one I WOULD NOT RECOMMEND THIS! You should use database relations to navigate, ie. $this->User->Post->find(); or Use containable as well. Or use $this- >loadModel when you need it. Putting a lot of models into the uses variable slows your sites speed d

Re: Confirm Password

2009-07-13 Thread thatsgreat2345
Yeah the reason they come back different is a field named ['AuthModel'] ['password'] is automatically hashed, but when you hash with Security it uses something else. so use $this->Auth->hashPasswords which you can check out more in the book here http://book.cakephp.org/view/247/AuthComponent-Metho

Unknown column in where clause - help (not as simple as it sounds)

2009-07-13 Thread womble
I'm getting an annoying error: Unknown column 'xx' in 'where clause' The error is correct based on the SQL that cake is generating. But I don't think cake should be generating the SQL it is. When accessed via the AclAro model (below) it produces the desired results - I get data from either

Re: Separate admin and client views

2009-07-13 Thread NegoBlack®
Yes... You can create subfolders inside the view path like this: -- app views users login.ctp register.ctp themed admin users admin_index.ctp admin_view.ctp ---

Re: Any dissadvantage to adding Containable behvior to all models

2009-07-13 Thread thatsgreat2345
Uh not that I can see, I tossed it in my app_model a while ago and haven't even though about it till now. On Jul 13, 10:33 pm, womble wrote: > Are  there any known disadvantages to adding the Containable behavior > to a all models? --~--~-~--~~~---~--~~ You receiv

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-13 Thread jeff
sorry Dr. Loboto what i mean to say is that when i alert the data through javascript it gives me the foll Data submitted: Array ( [pass] => Array ( ) [named] => Array ( ) [controller] => beers [

Re: Convert this Mysql Statement to a cakePHP find array

2009-07-13 Thread jeff
USE THE CAKEPHP $this->model_name->querry(); format... =>To make custom queries use the foll *Syntax:* $this->model name->query(" sql query here “ ); Eg: $this->Employee->query("SELECT employee_name,employee_ID,company,basic_salary FROM Employees WHERE id='$id';")); refer the l

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-13 Thread Dr. Loboto
You finally see your controller output and data you submitted is there. Your initial post was exactly about achieving this result. On Jul 14, 11:48 am, jeremy wrote: > hai guys am waiting didnt get any response so far... > > please help me as i need to get this working..

Convert this Mysql Statement to a cakePHP find array

2009-07-13 Thread liaogz82
Hi all, I am having some difficulty finding a cakePHP solution to this MySQL statement: SELECT `id`, `issue_date` FROM icapsdb3.print_issues where id >=2043 limit 45,1 Can somebody help me please? --~--~-~--~~~---~--~~ You received this message because you are su

Re: Sanitization question

2009-07-13 Thread Dr. Loboto
Login/password sanitization is bad idea initially. Validation should not allow restricted symbols in login and that's all. Password may and should contain anything for its strongness. Login and password in database should not differs from inputed by user. On Jul 14, 10:04 am, Miles J wrote: > Ye

A Table Belongs to the Same Table

2009-07-13 Thread si-mon
Hi All, I am creating a CRM application in cake php. In it, in my user table, there are three levels of users viz. Director, Manager and Executive. I need to include a field "reports_to" Eg: executive1 reports_to manager1 executive2 reports_to manager1 executive3 reports_to manager2

Re: Separate admin and client views

2009-07-13 Thread M Naveed Akram
thanks.. but that helps in making themable .. but i want to separate admin routed function views in separate admin directory On Tue, Jul 14, 2009 at 10:54 AM, NegoBlack® wrote: > > Try this... http://book.cakephp.org/view/488/Themes > > On Jul 14, 2:37 am, CMNAJS wrote: > > i want to maintain tw

Re: Separate admin and client views

2009-07-13 Thread NegoBlack®
Try this... http://book.cakephp.org/view/488/Themes On Jul 14, 2:37 am, CMNAJS wrote: > i want to maintain two different directories for admin and client > views. and want to make it themeable as well. .. any idea. --~--~-~--~~~---~--~~ You received this message b

Re: Another password question

2009-07-13 Thread CMNAJS
hey i think its a good practice to empty both passwords and let the user re-enter his password. this is some sort of critical information and user must be sure what he has entered. up to you.. but if you want to preserve... firstly decide what you want to preserve the password or confirm password.

Re: Confirm Password

2009-07-13 Thread M Naveed Akram
Hey you might be using auth component.. so you need to use $this->Auth->password(); to hash your confirm password.. and your password field is automatically hashed using this function On Tue, Jul 14, 2009 at 8:09 AM, Dave Maharaj :: WidePixels.com < d...@widepixels.com> wrote: > I can not get my

Separate admin and client views

2009-07-13 Thread CMNAJS
i want to maintain two different directories for admin and client views. and want to make it themeable as well. .. any idea. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send

Re: Joomla modules like functionality in CAKE PHP

2009-07-13 Thread Shadab Shaikh
Hello Guys, Any help for below points. Thanks! Shadab Shaikh On Sat, Jul 11, 2009 at 12:19 PM, Shadab Shaikh wrote: > Hi James, Robert & Other crew members, > > Thanks for all your answers. I appreciate all senders’ comments. > > I think we are near to our requirements. > > I like the Robert an

Tried to install another application inside cakePHP configuration

2009-07-13 Thread saavedrajj
Hello everybody, inside my cakePHP configuration i want to install the phpMyAdmin and phpBB forum http://www.cakeapp.com/phpMyAdmin http://www.cakeapp.com/phpBB I have been uploaded, as usual, the applications in my root server directory, but the following error appears: Missing Controller Er

Any dissadvantage to adding Containable behvior to all models

2009-07-13 Thread womble
Are there any known disadvantages to adding the Containable behavior to a all models? --~--~-~--~~~---~--~~ 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: var $useDbConfig not working - caching?

2009-07-13 Thread komaruloh
I'm not sure if it's all about cache. But perhaps you could add this option to your database.php var $default = array( . . . 'persistent' => false, . . . ); var $prod = array( . . .

Re: var $useDbConfig not working - caching?

2009-07-13 Thread komaruloh
I'm not sure if it's all about cache. But perhaps you could add this option to your database.php var $default = array( . . . 'persistent' => false, . . . ); var $prod = array( . . .

Re: Abandoned by developer using CakePHP, need help with web security emergency

2009-07-13 Thread bonkycat
Thank you for your reply. I have googled "published tinyint(1) field" and have found a couple of tutorials. I will try a few and see if I can get it to work. At the risk of sounding completely ignorant; I don't know what the security component is, or how to tell it to require secure. I will a

SOLVED: schema.php could not be loaded

2009-07-13 Thread espeed
Someone was asking about this today on IRC and left before I could answer so here it is for the record If you get an error saying "schema.php could not be loaded" when you are trying to use bake to create the Acl tables, make sure that "DbAcl" is in CamelCase -- it is case sensitve and typing

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-13 Thread jeremy
hai guys am waiting didnt get any response so far... please help me as i need to get this working.. my javascript file is as shown below $(document).ready(function() { > > var value = $('.add-beer-link').attr('id'); > > alert(va

Another password question

2009-07-13 Thread Dave Maharaj :: WidePixels.com
I have the confirm password working now, but if another field fails validation the passwords entered becomes ● ●●● in both password and confirm , meaning the user now has to re-enter the password even if there was no problem with the confirmation between the 2.

Re: Confirm Password

2009-07-13 Thread d1ve blu3
On Tue, Jul 14, 2009 at 10:09 AM, Dave Maharaj :: WidePixels.com < d...@widepixels.com> wrote: > I can not get my confirm passwords to match. > > I have: > $this->data['User']['password_confirm'] = > Security::hash($this->data['User']['password_confirm']) ; > > but when I debug > debug($this->dat

Confirm Password

2009-07-13 Thread Dave Maharaj :: WidePixels.com
I can not get my confirm passwords to match. I have: $this->data['User']['password_confirm'] = Security::hash($this->data['User']['password_confirm']) ; but when I debug debug($this->data['User']['password_confirm']) ; debug($this->data['User']['password']) ; both come back different even th

Re: Sanitization question

2009-07-13 Thread Miles J
Yes your right, sanitization should be done after validation. Your validation should check for errors. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@goo

Re: Disable an helper from a controller action

2009-07-13 Thread Dr. Loboto
Or "unload" in the actions you need: function pdfreport() { if (in_array("TidyHelper"), $this->helpers) { unset($this->helpers[array_search("TidyHelper", $this- >helpers)]); } ... } Makes sense if there are a lot of actions and only couple of them do not need this helper. In

Sanitization question

2009-07-13 Thread Dave Maharaj :: WidePixels.com
I was just reading a post online about user registration and was curious about this bit function register() { if (!empty($this->data)) { $clean = new Sanitize(); $clean->clean($this->data); $this->User->set($this->data); Might be dumb of

Re: some codes

2009-07-13 Thread Thiago Elias
Left double (opening) quotation mark (“): “ or “ Right double (closing) quotation mark (”): ” or ” Left single (opening) quotation mark (‘): ‘ or ‘ Right single (closing) quotation mark or apostrophe (’): ’ or ’ If you found this on the internet, maybe the script doesn't translated the html entit

Re: Abstracting HTML/CSS

2009-07-13 Thread Sake
The thing is that my solution eliminates this work and offers you and your developpers more freedom. Above and beyond the obvious advantages of super rapid prototyping, I imagine my code eventually becoming a repository of interface elements that can be used without having to know html/css, empow

Re: how to generate xml in cakephp

2009-07-13 Thread Sam Sherlock
In addition to what Pietro suggested I doing the following (the same can be adapted for json rss) parseExtensions for xml in router - Router::parseExtensions() see screen 25 of link of first link check if requested format is xml respondAs Xml (ensure that debug is off; set layout xml you can use

some codes

2009-07-13 Thread heli007
1. loadModel(‘Orders’); 2. $Order = new Order(); -‘Orders’ ---i don't what's that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@google

HABTM additional question

2009-07-13 Thread Dave Maharaj :: WidePixels.com
I have a USERS_OPTIONS HABTM table with 10 options a user can select from only and USERS_PREFERENCES with same select from only setup. Now in the form I want to add a field Other: ___ for each of the select from Options/Preferences where they could type in other options not available in t

Re: how to generate xml in cakephp

2009-07-13 Thread fain182
why don't you use an xml layout, a view and a controller, and xmlhelper? as for simple html... -- pietro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-p

Re: Calling Sanitize::clean() in AppModel beforeSave()?

2009-07-13 Thread Miles J
Well I tried it and it works, but it messes up any serialized arrays that you insert into the database. So I had to do a work around for those, but thats the only problem I ran into so far. On Jul 13, 1:41 pm, Miles J wrote: > Has anyone done this before? Im planning on doing this because its a

2 many to many relationship between tables

2009-07-13 Thread Amit
Hi, I have a quick question about Many to Many relationship works in cakephp. I have two priamry tables. 1)users 2)profiles. There is Many to Many relationship between these tables i.e profiles_users table. Till here its fine. Now, here is a new thing... I have one more Many to Many relationship

Re: Even after deleting the cash am getting Database table for model was not found

2009-07-13 Thread mmahgoub
Thanks its working now. On Jul 14, 12:30 am, mmahgoub wrote: > I also set the /tmp directory and its contents permission to 777 > > On Jul 14, 12:27 am, mmahgoub wrote: > > > hi brian > > Its all working well on my dev machine i just zipped the files and > > extract it on the server, and to mak

Re: Even after deleting the cash am getting Database table for model was not found

2009-07-13 Thread mmahgoub
I also set the /tmp directory and its contents permission to 777 On Jul 14, 12:27 am, mmahgoub wrote: > hi brian > Its all working well on my dev machine i just zipped the files and > extract it on the server, and to make sure everything is named > correctly i renamed the table to match whats pr

Re: Even after deleting the cash am getting Database table for model was not found

2009-07-13 Thread mmahgoub
hi brian Its all working well on my dev machine i just zipped the files and extract it on the server, and to make sure everything is named correctly i renamed the table to match whats provided on the error message which you can see it here http://africahall.net/mmahgoub/twtu/hajjapplicants/submit

Calling Sanitize::clean() in AppModel beforeSave()?

2009-07-13 Thread Miles J
Has anyone done this before? Im planning on doing this because its a lot easier instead of doing it separately everywhere else. Are there any downsides to doing this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

Re: Single controller file to access multiple model files

2009-07-13 Thread Vijay Kumbhar
Hello Sheetal, You are right about using the $uses. You have to use that as follows, var $uses = array('Main model name' , '2nd model name' ...so on); in the add function you have to write, $this->modelname->tablefieldname = $this->data['modelname']['form_field_name']; //here $this->data['m

RE: help me plz

2009-07-13 Thread Matthew Bingham
A reasonable suggestion... Prajakta? -Original Message- From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of brian Sent: Monday, July 13, 2009 2:41 PM To: cake-php@googlegroups.com Subject: Re: help me plz On Mon, Jul 13, 2009 at 2:23 PM, Matthew Bingham wrote

Single controller file to access multiple model files

2009-07-13 Thread Sheetal
Hi Friends My scenario is : I have a single controller file, lets keep its name as conditions_controller.php. This controller file saves the details that are submitted from a form. But the form details needs to be saved in 3 different table. The thing here is I am saving it in 3 different tables.

Setting up table ID's

2009-07-13 Thread Dave Maharaj :: WidePixels.com
I am setting up am app and trying UUID for each user but question I have is: So a User.id is a UUID that User hasOne Profile.id which will be the User.id correct? User.id <= same as => Profile.id And say a User hasOne Gallery which hasMany Albums and each Album hasMany Photos Would the Gal

2 many to many relationship between tables

2009-07-13 Thread abhishekh
Hi, I have a quick question about Many to Many relationship works in cakephp. I have two priamry tables. 1)users 2)profiles. There is Many to Many relationship between these tables i.e profiles_users table. Till here its fine. Now, here is a new thing... I have one more Many to Many relationship

2 many to many relationship between tables

2009-07-13 Thread Amit
Hi, I have a quick question about Many to Many relationship works in cakephp. I have two priamry tables. 1)users 2)profiles. There is Many to Many relationship between these tables i.e profiles_users table. Till here its fine. Now, here is a new thing... I have one more Many to Many relationship

Re: An example of a Facebook Connect Integration to a cakePHP app ?

2009-07-13 Thread rod
Nevermind that, I found a solution with session (ugly but works). On Jul 1, 11:16 pm, rod wrote: > Hey Ashu, > Yeah I got it working with my login system, that article from > cutfromthenorth helped... > Since my app needs a username I redirect the user to a page where s/he > enters a name and th

Re: Disable an helper from a controller action

2009-07-13 Thread rod
You could just load TidyHelper in the actions you need: function add() { $this->helpers[] = "TidyHelper"; .. } On Jul 13, 12:59 pm, Ernesto wrote: > Hello. > > i have a controller with some actions: > > - index > - add > - delete > - pdfreport > > i want to disable the "TidyHelper" in pdfreport

Re: help me plz

2009-07-13 Thread brian
On Mon, Jul 13, 2009 at 2:23 PM, Matthew Bingham wrote: > > I think the most common memory limits I've seen are 32MB and 64MB (my > override limit is generally 128MB), but this developer is reporting in the > 256Kb range. > Prajakta, could you check your error one more time?  Was there anything >

Re: Secure File Download

2009-07-13 Thread brian
Hi Jörg, I'll show you the basics of how I just did this. In my case, the files are stored above webroot and there's a record for each in the database. The table was created like so: CREATE TABLE item_files ( id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, created DATET

Re: Even after deleting the cash am getting Database table for model was not found

2009-07-13 Thread brian
What's the exact error message? And what's the code in your controller that's triggering it? What are the names (and filenames) of all relevant models? You might see this error when there's a misnamed file. Or you may have a model association that's not good. On Mon, Jul 13, 2009 at 7:01 AM, mmah

RE: help me plz

2009-07-13 Thread Matthew Bingham
I think the most common memory limits I've seen are 32MB and 64MB (my override limit is generally 128MB), but this developer is reporting in the 256Kb range. Prajakta, could you check your error one more time? Was there anything else? Matt -Original Message- From: cake-php@googlegroups.

RE: Abandoned by developer using CakePHP, need help with web security emergency

2009-07-13 Thread Matthew Bingham
The secure/insecure nuisance: Ok, I see that you have the codebase param in your flash logo's markup referencing the http page rather than the https page. This is supposed to cause the warning you're seeing. - http://download.macromedia.com/pub/shockwave/cabs/flash/sw

Re: Even after deleting the cash am getting Database table for model was not found

2009-07-13 Thread M.Mahgoub
No body have an idea whats going on with my app?!! On Mon, Jul 13, 2009 at 2:01 PM, mmahgoub wrote: > hi all > I have a hosting with 1and1 there was an issue with the mod_rewrite > but i fixed it. Now there is another issue i keep getting "Database > table XYZ for model XYZ was not found." > >

Multiple Database Relationship /cakephp1.2 and mysql

2009-07-13 Thread Thiago Elias
Hi folks. This is my first post here. This Group saved me a lot of times (even when I wasn't member of it), but these days I've been "googling" around and didn't found a good solution for my problem. Where I work, we have some integrated databases. All of them in the same mysql server, but in di

Re: help me plz

2009-07-13 Thread Thiago Elias
As brian said, you should set your memory_limit. Our production server has 256mb for php, and CakePHP works fine without any memory errors. Your memory limit is just strange, because everytime I've installed php in Linux (or either in Windows), the default value for memory_limit was 128m. I Hop

Re: IIS + CakePHP + ISAPI_Rewrite 3

2009-07-13 Thread deizel.
I had some issues with ISAPI_Rewrite 3 also. Hopefully these threads may be of some help: http://www.helicontech.com/forum/forum_posts-TID-9888.htm http://www.helicontech.com/forum/forum_posts-TID-9907.htm Cheers, deizel. On Jul 13, 3:18 pm, Stephen Cuppett wrote: > I was also having some tro

Re: var $useDbConfig not working - caching?

2009-07-13 Thread Alastair
Ok, while I haven't solved the problem, I've managed to get a little more information from this. It is definitely using the $default database configuration. If I don't have the $default set up, it fails with an error message. "Fatal Error (256): ConnectionManager::getDataSource - Non-existent da

Even after deleting the cash am getting Database table for model was not found

2009-07-13 Thread mmahgoub
hi all I have a hosting with 1and1 there was an issue with the mod_rewrite but i fixed it. Now there is another issue i keep getting "Database table XYZ for model XYZ was not found." After Googling for solutions i found that there some people facing the same issue but after they delete the cache

Secure File Download

2009-07-13 Thread joergpb
Hello CakePhp Group! My name ist Jörg, form Berlin/Germany. I am quite new to Cake. My problem is that I need a downloadarea where the user can only download pdfs ( or any files) from the filesystem after he logged in. So the URL to the download has to be dynamic. Any idea how I may get this d

Nesting Models

2009-07-13 Thread Silver
Hi Guys, I am new at Cakes, and MVC and would like some suggestion in terms of design. I currently have the following database structure settings - setting_id -> setting name users - user_name, password etc user information user_settings - user_name -> setting_id groups - groun_id -> gr

Re: Get Different Result Array on different host server

2009-07-13 Thread brian
Check your AppModel. The output you're seeing on the live server is normal for Cake when you have a function in your query. But there's a simple way to group the results together (as you're seeing on the local server) that involves afterFind(). See this link: http://teknoid.wordpress.com/2008/09/2

Disable an helper from a controller action

2009-07-13 Thread Ernesto
Hello. i have a controller with some actions: - index - add - delete - pdfreport i want to disable the "TidyHelper" in pdfreport action 'cause it will break my pdf. is there any way to do that? --~--~-~--~~~---~--~~ You received this message because you are subs

how to generate xml in cakephp

2009-07-13 Thread mona
can anybody tell me how to generate xml in cakephp and export data from database in xml --~--~-~--~~~---~--~~ 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 T

can anybody use wurfl with cakephp

2009-07-13 Thread mona
I want to export device data to wurfl can anybody help me for this --~--~-~--~~~---~--~~ 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 th

Re: Abstracting HTML/CSS

2009-07-13 Thread GravyFace
On Mon, Jul 13, 2009 at 11:34 AM, GravyFace wrote: > On Mon, Jul 13, 2009 at 1:12 AM, Sake wrote: >> >> Yes, but I'm talking about the case where you're using someone else's >> code, be it a sub-contractor who's chopped up the image into html or a >> pre-made template. This seems to me a nice solu

Re: Abstracting HTML/CSS

2009-07-13 Thread GravyFace
On Mon, Jul 13, 2009 at 1:12 AM, Sake wrote: > > Yes, but I'm talking about the case where you're using someone else's > code, be it a sub-contractor who's chopped up the image into html or a > pre-made template. This seems to me a nice solution, no? Isn't this what CakePHP themes are for? Build

Re: Future of jQuery in CakePHP?

2009-07-13 Thread Marcelo Andrade
On Mon, Jul 13, 2009 at 4:00 AM, RC wrote: > > I haven't tried this myself, but this maybe of some merit: >   > http://blog.loadsys.com/2009/05/01/cakephp-jquery-ajax-helper-easy-scriptaculous-replacement/ I tried this helper replacement sometime ago. It's a very good initiative, but is not a f

Re: Set::merge help needed

2009-07-13 Thread brian
Thanks a heap! Yes, it was UNION I was trying (and failing) to conceptualize. I always forget about that one. But, I came up with another solution. First, I needed to adjust the query to better work across several years. The MySQL manual mentions using partial dates, eg. '2009-07-00' where a more

Re: Abstracting HTML/CSS

2009-07-13 Thread Richard
The problem your trying to solve - inconsistencies in supplied markup - is best by making the markup consistent in the first place. As a user of templates myself, I allocate up to 2 hours to modify any supplied HTML to match my systems standard. If I hire a sub-contractor to produce the HTML, I tel

Re: IIS + CakePHP + ISAPI_Rewrite 3

2009-07-13 Thread Stephen Cuppett
I was also having some trouble with this a couple weeks ago. I was able to get Ionics Isapi Rewrite working though with IIS5, PHP 5.3, fastcgi and their filter. The big thing was making sure your home directory was the app/webroot location and not the root. Then, t

Re: A Search Behavior

2009-07-13 Thread Stinkbug
Thanks! I'll have to check this out. On Jul 10, 5:44 pm, Jon Chin wrote: > I'm actually in the process of implementing Sphinx in my website.  I've > investigated several other search indexing tools (Lucene, Xapian, etc), > and Sphinx seems to give the most bang for your effort.  There was a > S

Need blank datetime form field

2009-07-13 Thread idx
Hello, I've tried various iterations of $form->input(), but can't seem to get it to default to a "blank" date/time. It always uses the current time.. Is this possible or am I better off just throwing in a JS calendar control and combining fields in the controller? They will need to fill ou

Get Different Result Array on different host server

2009-07-13 Thread keyurvaghani
Hello Friends, In cakephp, i am facing issues while execute query with custom functions and including it in separate file using "bootstrap.php" file as below: $db =& ConnectionManager::getDataSource('default'); $query="SELECT id, user_id, max( created ) AS `maxdate` FROM orders GROUP

Re: what do you use to deploy?

2009-07-13 Thread Sam Sherlock
Yes please Richard! That sounds streamlined & efficient. also thanks for pointing that out about the .git folder (though for me this returns missing controller||404 but guess it best to not rely on that) thx - S 2009/7/13 Richard > I use git. "git pull". I use an apache htaccess to prevent acc

Re: Pass invalidation message through invalidate() method

2009-07-13 Thread Richard
Hi, Looking at your bespoke validation code there, you might want to simplify your code by using the built in rules, take a look at these two: http://book.cakephp.org/view/139/comparison http://book.cakephp.org/view/472/isUnique Hope this helps, Richard On Sun, Jul 12, 2009 at 8:24 PM, Burgos

Re: Execute a Shell Task on Background

2009-07-13 Thread Richard
Two possible approaches, if your responding to user requests to invoke report generation I've used 'exec' with 'nice. The request is made by the user, which then invokes the shell task, and then redirects to another page. This page is automatically reloaded, on each time it monitors the status of t

Re: what do you use to deploy?

2009-07-13 Thread Richard
I use git. "git pull". I use an apache htaccess to prevent access to the .git folder. I'm now working on some automation, the idea being when I run this command: "cake deploy" the code unit tests are run and then deployed. I'll dump the code on github sometime this week for anyone who's interest

Re: var $useDbConfig not working - caching?

2009-07-13 Thread Alastair
On Jul 7, 3:37 pm, Robert P wrote: > The first step in trying to debug a possible caching issue is to > navigate through all the folders under /app/tmp/cache and delete every > file. Any future uploads should not include the /app/tmp directory. If > the issue persists it's not a problem with cac

Re: cron job question..

2009-07-13 Thread WebbedIT
@ Travis: What are those various reasons for not liking the shell method of running CronJobs as endorsed by the CakePHP developers? @ internetchris: I have just followed the cake book's method and got it working a dream and above all is secure. A few things I came across when doing this that may

user/developer needs to refresh browser for scaffolding interaction

2009-07-13 Thread Jacob Everist
Hello, I have a developer for a Flex application that is integrating with my CakePHP site. I gave him access to the scaffold features so he can modify the database at will. Everything was fine the first day, but ever since he's having problems. For instance, in IE he needs to press the browser

Re: what do you use to deploy?

2009-07-13 Thread Bert Van den Brande
Subversion is by far the easiest way to update imho, I'm not aware of any issues regarding SVN and .htaccess On Sun, Jul 12, 2009 at 9:28 AM, nurvzy wrote: > > I use http://www.xp-dev.com (free private SVN service).  SVN works > great for me.   I work in SVN locally or on dev server and when read

Re: saveAll() with $fieldList problem

2009-07-13 Thread jakobjp
Hi Joshua. Thanks for your response, but unfortunately you misunderstood the issue. I am NOT asking for the format of the $data array, but the $fieldList (an option that can be passed on to the saveAll() function). According to the CakePHP docs (your link): "If $fieldList is not supplied, a mal

Re: Security question

2009-07-13 Thread Richard
Hi Dave, In terms of security, my opinion is that your concern should be with how the data is protected rather than the profiles a person can have. I was responsible for the architecture of a major real estate application and we implemented it in a similar way that you mentioned. Each user had "pr

Re: load a CSS file if DEBUG > 0

2009-07-13 Thread Ernesto
y u're right. thx for help. On 13 Lug, 11:15, Andreas Derksen wrote: > hi, > what would be the point of doing so? besides, i think view "things" > belong to the view part of mvc :) > > greets > Andreas > > Ernesto schrieb: > > > > > same way i'm using. > > > what about load this css from App_Co

Re: load a CSS file if DEBUG > 0

2009-07-13 Thread Andreas Derksen
hi, what would be the point of doing so? besides, i think view "things" belong to the view part of mvc :) greets Andreas Ernesto schrieb: > same way i'm using. > > what about load this css from App_Controller? > > On 13 Lug, 10:15, Andreas Derksen wrote: > >> Hi, >> i do: if( Configure::rea

Re: load a CSS file if DEBUG > 0

2009-07-13 Thread Ernesto
same way i'm using. what about load this css from App_Controller? On 13 Lug, 10:15, Andreas Derksen wrote: > Hi, > i do: if( Configure::read('debug')>0) echo $html->css('debug'); else ''; > in my layouts head. > > greets > Andreas > > Ernesto schrieb: > > > > > Hello. > > > i've coded a simple

post habtm postlover : how to order posts by number of postlovers?

2009-07-13 Thread checcco
Hi guys...please help me, i'm really struggling with this... Authors can write post, and authors can love other authors' posts... For example i'd like to get posts ordered by number of postlovers and created in the last 24 hours. So posts belong to author (when authors write them), but posts ha

Containable does not return data

2009-07-13 Thread Fran Iglesias
Hi, I'm writing a Commentable Behavior based on some ideas from http://josediazgonzalez.com/posts/view/2/Commentable_Behavior Briefly, the behavior binds a hasMany association between a model and the Comment model. This works well, and muy tests pass ok. My problem happens when I issue a mod

Re: load a CSS file if DEBUG > 0

2009-07-13 Thread Andreas Derksen
Hi, i do: if( Configure::read('debug')>0) echo $html->css('debug'); else ''; in my layouts head. greets Andreas Ernesto schrieb: > Hello. > > i've coded a simple css file that helps me display the Cake's SQL log. > > this css needs to be loaded only when debug > 0. > > how can i do? > > > -

load a CSS file if DEBUG > 0

2009-07-13 Thread Ernesto
Hello. i've coded a simple css file that helps me display the Cake's SQL log. this css needs to be loaded only when debug > 0. how can i do? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: Future of jQuery in CakePHP?

2009-07-13 Thread RC
I haven't tried this myself, but this maybe of some merit: http://blog.loadsys.com/2009/05/01/cakephp-jquery-ajax-helper-easy-scriptaculous-replacement/ On Jul 8, 4:00 am, Mike wrote: > Hello! > > I'm starting to play around with jQuery on CakePHP (and blogging about > it, of course - how mu