How to run CRON job with the setup on a virtual server?
Hello. I would like to set a CRON job for my application. In my server administrative panel I want to define the path for the CRON job. The problem is, that I cannot give path as URL (like /mysite.com/users/ some_cron_function), but I have to specify physical file that is on a server (full path to specified file like /www/app/...) How to do this? Because I want to run CRON as a function in a defined controller class. I do not want to put that function in separate file, because it operates on a database. Thanks in advance for help!:) 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
how to pass value index - edit - index -edit
I don't know how to pass value index - edit - index -edit 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Migration Guide 1.2 to 1.3
I have only worked with 1.2.5, so haven't done a migration yet. It seems sensible to develop in 1.3 beta. If I migrate current development work onto 1.3 beta, what will the migration to 1.3 final be like? Is it worth it, or should I wait in order to avoid duplication of effort? On Dec 14, 5:55 pm, Miles J mileswjohn...@gmail.com wrote: Here you go. http://cakephp.lighthouseapp.com/projects/42648/13-migration-guide On Dec 14, 7:18 am, web w...@essence.at wrote: Hey, does anyone know where i can find the migraton guide? 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: how to pass value index - edit - index -edit
Can you explain what you are trying to do in CakePHP, maybe with some code showing what you have done/tried? Enjoy, John On Dec 15, 10:54 am, Tom tomislav.vitenb...@gmail.com wrote: I don't know how to pass value index - edit - index -edit 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Ajax form submit issue
I have solved this issue (phew!). In my edit function I redirect after a successful save. The redirect command is as generated by Bake: $this-redirect(array('action' = 'view', $this-Xxxx-id)); You'll notice that the controller is not set. Changing it to: $this-redirect(array('controller' = '', 'action' = 'view', $this-Xxxx-id)); ...solves the issue. I am surprised that more people don't run into this issue. On Dec 14, 2:07 pm, Jeremy Burns jeremybu...@me.com wrote: I have a problem that is driving me mad! I have a form that submits data to an edit action. It works fine when using $form-submit. I want to submit the form via Ajax. If I change the form submit button to the following: $ajax-submit ( 'Save', array( 'div' = false, 'url' = array( 'controller' = 'xxx', 'action' = 'edit', $id ), 'update' = 'divForm' ) ); ...I get a stream of errors inside the div 'divForm' along these lines: Notice (8): Undefined index: controller [CORE/cake/dispatcher.php, line 411] Notice (8): Undefined index: controller [CORE/cake/dispatcher.php, line 133] Error: Controller could not be found. Error: Create the class Controller below in file: app/controllers/ controller.php ?php class Controller extends AppController { var $name = '';} ? The errors are being thrown by dispatcher.php when it tries to find $this-params['controller']. That index is not in the params array. Does anyone have any idea what might be going astray here? I have seen some references to this issue elsewhere, but I have not located a resolution as yet. 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
please help me to learn cake php
please help me to learn cake php 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: please help me to learn cake php
Start on http://www.cakephp.org Giro 2009/12/15 harikris harikris2...@gmail.com please help me to learn cake php 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 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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: how to pass value index - edit - index -edit
I am not quite sure, but assuming that you have an Add action and an Edit action in your controller, then you can use: $this-params['action'] to see which (Add or Edit) action has been invoked. If not, please show the code that you are trying to use. Please always reply to the group, not to me directly :) Enjoy, John On 2009/12/15 Tom tomislav.vitenb...@gmail.com wrote: This is my first app. I define activities table ( date, desctiption, time, auth ) I want to set in Index condition for pagination (date, auth), and if date or auth in Add .or. Edit change I want do chanage condition in Index to new values. I don't know how? Please help me with sample code! THANK YOU On Dec 15, 11:56 am, John Andersen j.andersen...@gmail.com wrote: Can you explain what you are trying to do in CakePHP, maybe with some code showing what you have done/tried? Enjoy, John On Dec 15, 10:54 am, Tom tomislav.vitenb...@gmail.com wrote: I don't know how to pass value index - edit - index -edit 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Passing (json) value to javascript in PHP4
I've been trying to pass a field value to javascript for the last 3 days with no avail. First of all on my development pc I have php5. On my test/productin server php4. I put in the controller view function: $tracks = $this-Track-find( 'all', array( 'conditions'=array('Track.path_id' = $id, 'contain' = array('Track.gpstrack') ) ); $this-set(compact('tracks')); //Track.gpstrack contains a GML file (something like Gmaps KML files) In the view.ctp file: $tmp= var phptracks=.$javascript-object($tracks); echo $javascript-codeBlock($tmp); On my pc this works perfectly. On the test server $javascript-object formats the $tracks array in a different way. There's a different number of escape backslashes and the javascript variable phptracks isn't even initialised. FF and firebug error log report: missing } after property list. I suppose this has something to do with encode_json() function missing in php4 but I don't understand why there's such difference in escaping the field value. I mean the variable seems to be formatted almost perfectly for javascript, why those missing backslashes in php4? Is it wrong or incomplete cakephp code? Should I implement an encode_json() function for php4? Should I code this in a completely different way? Thank you maxx 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: How to echo special character in cakephp????
On Mon, 2009-12-14 at 19:00 -0800, Hanif wrote: Dear everyone, I want to return XML data form controller. The format is like controller code: function info(){ $xml =membermy name here /member; echo $xml; } This does not print any result (blank result). While it get special character then it filter all value. Try to do it this way: function info(){ $xml =membermy name here /member; echo 'pre'; echo $xml; echo '/pre'; } -- Regards, Giedrius Rekasius 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: parent of parent model results
Thanks. Looks like progress, but now error is: Model Product is not associated with model Group [CORE/cake/libs/ model/behaviors/containable.php, line 317] -- Product has one Group through Collection: class Product extends AppModel { var $name = 'Product'; var $actsAs = array('Containable'); var $belongsTo = array( 'Collection' = array('className' = 'Collection', 'foreignKey' = 'collection_id', 'conditions' = '', 'fields' = '', 'order' = '' ), -- class Collection extends AppModel { var $name = 'Collection'; var $order = 'Collection.name'; var $actsAs = array('Containable'); var $belongsTo = array( 'Group' = array('className' = 'Group', 'foreignKey' = 'group_id', 'conditions' = '', 'fields' = '', 'order' = '' ) ); Any other ideas? On Dec 14, 6:06 pm, Tonu Tusk lvot...@googlemail.com wrote: Hi, you can only specify the fields for the model that you are callng the find method on in the 'fields' attribute in the parameter list passed to the method call. You need to specify the fields you want returned in the dataset controlled by the containable behaviour in the 'contain' variable itself. e.g in your parameter array to the find call you would do 'contain' = array('Collection' = array('fields' = array ('Collection.name', 'collection.group_id',)), 'Group' = array ('fields' = array('Group.name')) also make sure all your model relationships are setup and also the actsAs variable in the Product model has 'Containable' set. On Dec 14, 8:25 pm, Todd McGrath todd.mcgr...@gmail.com wrote: Hello, Having trouble figuring out how to construct a query such as this: SELECT products.*, groups.* FROM products Inner Join collections ON products.collection_id = collections.id Inner Join groups ON collections.group_id = groups.id WHERE products.name LIKE '% . $searchstring . ' Products belongsTo Collections and Collections belongsTo Groups I'm trying to use find all with conditions and fields and recursive, but no luck. Example: $this-set('products', $this-Product-find('all', array ('contain' = array('Collection', 'Group'), 'conditions'=array ('Product.name LIKE ' = $searchstring), 'recursive'=3, 'fields' = array('Product.name','Collection.name', 'Collection.group_id', 'Collection.group_id','Group.name') ))); but, the error is: Warning (512): SQL Error: 1054: Unknown column 'Group.name' in 'field list' [CORE/cake/libs/model/datasources/dbo_source.php, line 512] How can I obtain the Group field data through Collections when querying Products? Todd 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Excessive resource usage
I'm getting lots of Excessive resource usage messages from my server, like the one you can see below: Time: Tue Dec 15 10:34:43 2009 -0500 Account: ee Resource: Virtual Memory Size Exceeded: 103 100 (MB) Executable: /usr/bin/php Command Line: /usr/bin/php /home/ee/public_html/app/webroot/index.php PID: 24195 Killed: No It`s always the same webroot/index.php. I can`t figure out why it`s using so much memory. Debug level is already in 0. Does someone know anything that can be happening? Thanks in adv. 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: How to echo special character in cakephp????
h() escapes special characters so use echo h($string) to get membermy name here /member On 15 Dez., 15:42, Giedrius Rekasius giedrius.rekas...@gmail.com wrote: On Mon, 2009-12-14 at 19:00 -0800, Hanif wrote: Dear everyone, I want to return XML data form controller. The format is like controller code: function info(){ $xml =membermy name here /member; echo $xml; } This does not print any result (blank result). While it get special character then it filter all value. Try to do it this way: function info(){ $xml =membermy name here /member; echo 'pre'; echo $xml; echo '/pre'; } -- Regards, Giedrius Rekasius 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: HttpSocket with proxy server
Thanks! I'll try this out and let this group know if it was successful. On Dec 14, 10:04 pm, gianpaulo gcbasa...@gmail.com wrote: Try this: $HttpSocket = new HttpSocket(); $request = $HttpSocket-request(array( 'host'='proxy server address:proxy server port', 'uri'='http://api.yahoo.com/' )); This is how powerful CakePHP is :D On Dec 15, 8:48 am, fr3nch13 fr3nc...@gmail.com wrote: Has anyone tried using a proxy server with HttpSocket? I have been looking all over via the normal channels (google, api, bakery, book, etc.) to no avail. If so, could you please point me in the right direction? 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
mod_rewrite exeption
In my htdocs directory i have files: app, cake, vendors, global Now, when i go example.com/global/, i want to see folder global instead of cake 404 error. 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: HttpSocket with proxy server
It doesn't seem to be working. Any help would be greatly appreciated! Here is some more information/versions/stats to help: Server: RHEL, PHP 5.1.6, cakephp 1.2.3.8166 Proxy: Squid/2.5 stable This is my test shell: ?php class TesterShell extends Shell { function httpsockproxy() { $uri = 'http://www.google.com'; if(isset($this-args[0])) { $uri = $this-args[0]; } App::import('Core', 'HttpSocket'); $HttpSocket = new HttpSocket(); $request = $HttpSocket-request(array( 'method' = 'POST', 'host'='[proxyhostname]:[port]', 'uri'='http://www.google.com' )); print_r($request); print_r($HttpSocket-config); } } the print_r($request) is getting a response from the squid proxy server; however, the proxy is returning it's html error instead of google's homepage: ... H2The requested URL could not be retrieved/H2 HR noshade size=1px P While trying to retrieve the URL: A HREF=///A P The following error was encountered: UL LI STRONG Invalid URL /STRONG /UL the print_r($HttpSocket-config) output is: Array ( [persistent] = [host] = [proxyhostname]:[port] [protocol] = 6 [port] = 80 [timeout] = 30 [request] = Array ( [uri] = Array ( [scheme] = http [host] = www.google.com [port] = 80 ) [auth] = Array ( [method] = Basic [user] = [pass] = ) [cookies] = Array ( ) ) ) On Dec 15, 8:56 am, fr3nch13 fr3nc...@gmail.com wrote: Thanks! I'll try this out and let this group know if it was successful. On Dec 14, 10:04 pm, gianpaulo gcbasa...@gmail.com wrote: Try this: $HttpSocket = new HttpSocket(); $request = $HttpSocket-request(array( 'host'='proxy server address:proxy server port', 'uri'='http://api.yahoo.com/' )); This is how powerful CakePHP is :D On Dec 15, 8:48 am, fr3nch13 fr3nc...@gmail.com wrote: Has anyone tried using a proxy server with HttpSocket? I have been looking all over via the normal channels (google, api, bakery, book, etc.) to no avail. If so, could you please point me in the right direction? 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: HttpSocket with proxy server
Also, some more information. 1. i don't have access to change anything on the squid proxy. 2. trying with curl works: curl --proxy [proxyhostname]:[port] http://www.google.com On Dec 15, 10:18 am, fr3nch13 fr3nc...@gmail.com wrote: It doesn't seem to be working. Any help would be greatly appreciated! Here is some more information/versions/stats to help: Server: RHEL, PHP 5.1.6, cakephp 1.2.3.8166 Proxy: Squid/2.5 stable This is my test shell: ?php class TesterShell extends Shell { function httpsockproxy() { $uri = 'http://www.google.com'; if(isset($this-args[0])) { $uri = $this-args[0]; } App::import('Core', 'HttpSocket'); $HttpSocket = new HttpSocket(); $request = $HttpSocket-request(array( 'method' = 'POST', 'host'='[proxyhostname]:[port]', 'uri'='http://www.google.com' )); print_r($request); print_r($HttpSocket-config); } } the print_r($request) is getting a response from the squid proxy server; however, the proxy is returning it's html error instead of google's homepage: ... H2The requested URL could not be retrieved/H2 HR noshade size=1px P While trying to retrieve the URL: A HREF=///A P The following error was encountered: UL LI STRONG Invalid URL /STRONG /UL the print_r($HttpSocket-config) output is: Array ( [persistent] = [host] = [proxyhostname]:[port] [protocol] = 6 [port] = 80 [timeout] = 30 [request] = Array ( [uri] = Array ( [scheme] = http [host] =www.google.com [port] = 80 ) [auth] = Array ( [method] = Basic [user] = [pass] = ) [cookies] = Array ( ) ) ) On Dec 15, 8:56 am, fr3nch13 fr3nc...@gmail.com wrote: Thanks! I'll try this out and let this group know if it was successful. On Dec 14, 10:04 pm, gianpaulo gcbasa...@gmail.com wrote: Try this: $HttpSocket = new HttpSocket(); $request = $HttpSocket-request(array( 'host'='proxy server address:proxy server port', 'uri'='http://api.yahoo.com/' )); This is how powerful CakePHP is :D On Dec 15, 8:48 am, fr3nch13 fr3nc...@gmail.com wrote: Has anyone tried using a proxy server with HttpSocket? I have been looking all over via the normal channels (google, api, bakery, book, etc.) to no avail. If so, could you please point me in the right direction? 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: jQuery ajax pagination in 1.3
I am having the same problem and can confirm that it happens specifically when using JQuery. Using the Js Helper with Mootools works just fine. On Dec 14, 3:44 am, Scronkey scron...@gmail.com wrote: I believe I know what's going on now but I'm not sure how to fix it. On the first (successful) ajax call the next set of content is loaded, including the paginator links, however the paginator links are not successfully bound to a jQuery ajax call, therefore the next click results in a normal page request which then results in correctly bound events. Marks post mentions the use of 'evalScripts' = true to chain the ajax requests however this seems to have no effect with jQuery (his example uses MooTools). Is there a way I can ensure the events are rebound using jsHelper with jQuery after the ajax call? 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: HttpSocket with proxy server
I know what gainpaulo post, should be the way it's supposed to work; however, i was able to get it to work with a GET, but not a POST: $request_get = array( 'GET http://www.google.com HTTP/1.1', 'Host: www.google.com', 'Connection: close', 'User-Agent: CakePHP' ); $response = $HttpSocket-request(array( 'host' = $proxyhost:$proxyport, 'line' = implode(\n, $request_get), 'raw' = implode(\n, $request_get), )); print_r($response); print_r($HttpSocket-request); print_r($HttpSocket-config); $request_post = array( 'POST http://www.google.com HTTP/1.1', 'q=cakephp', 'Host: www.google.com', 'Connection: close', 'User-Agent: CakePHP' ); $response = $HttpSocket-request(array( 'host' = $proxyhost:$proxyport, 'line' = implode(\n, $request_post), 'raw' = implode(\n, $request_post), )); print_r($response); print_r($HttpSocket-request); print_r($HttpSocket-config); On Dec 15, 10:21 am, fr3nch13 fr3nc...@gmail.com wrote: Also, some more information. 1. i don't have access to change anything on the squid proxy. 2. trying with curl works: curl --proxy [proxyhostname]:[port]http://www.google.com On Dec 15, 10:18 am, fr3nch13 fr3nc...@gmail.com wrote: It doesn't seem to be working. Any help would be greatly appreciated! Here is some more information/versions/stats to help: Server: RHEL, PHP 5.1.6, cakephp 1.2.3.8166 Proxy: Squid/2.5 stable This is my test shell: ?php class TesterShell extends Shell { function httpsockproxy() { $uri = 'http://www.google.com'; if(isset($this-args[0])) { $uri = $this-args[0]; } App::import('Core', 'HttpSocket'); $HttpSocket = new HttpSocket(); $request = $HttpSocket-request(array( 'method' = 'POST', 'host'='[proxyhostname]:[port]', 'uri'='http://www.google.com' )); print_r($request); print_r($HttpSocket-config); } } the print_r($request) is getting a response from the squid proxy server; however, the proxy is returning it's html error instead of google's homepage: ... H2The requested URL could not be retrieved/H2 HR noshade size=1px P While trying to retrieve the URL: A HREF=///A P The following error was encountered: UL LI STRONG Invalid URL /STRONG /UL the print_r($HttpSocket-config) output is: Array ( [persistent] = [host] = [proxyhostname]:[port] [protocol] = 6 [port] = 80 [timeout] = 30 [request] = Array ( [uri] = Array ( [scheme] = http [host] =www.google.com [port] = 80 ) [auth] = Array ( [method] = Basic [user] = [pass] = ) [cookies] = Array ( ) ) ) On Dec 15, 8:56 am, fr3nch13 fr3nc...@gmail.com wrote: Thanks! I'll try this out and let this group know if it was successful. On Dec 14, 10:04 pm, gianpaulo gcbasa...@gmail.com wrote: Try this: $HttpSocket = new HttpSocket(); $request = $HttpSocket-request(array( 'host'='proxy server address:proxy server port', 'uri'='http://api.yahoo.com/' )); This is how powerful CakePHP is :D On Dec 15, 8:48 am, fr3nch13 fr3nc...@gmail.com wrote: Has anyone tried using a proxy server with HttpSocket? I have been looking all over via the normal channels (google, api, bakery, book, etc.) to no avail. If so, could you please point me in the right direction? 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: mod_rewrite exeption
what does your .htaccess file look like in your webroot? On Dec 15, 10:02 am, Ragnis ragnis.ar...@gmail.com wrote: In my htdocs directory i have files: app, cake, vendors, global Now, when i go example.com/global/, i want to see folder global instead of cake 404 error. 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: HttpSocket with proxy server
I just tried it with cake 1.2.5 stable, and it's still not working like how gainpaulo was describing above. Is this indeed the way it's supposed to be working? 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
visibility/change varijable within controller
I wrote something like this code: class ActivitiesController extends AppController { var $name = 'Activities'; function index(){ $year = 2009; $month = 12; $day = 15; } function add(){ } } how can I see variables $year, $month, $day in function add, and if I change their value (i.e. $day = 1) how can I in function 'Index' see that new value. Can samebody help me with this sample of code! thanks. 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: How to run CRON job with the setup on a virtual server?
Cześć Ania, I would like to set a CRON job for my application. In my server administrative panel I want to define the path for the CRON job. The problem is, that I cannot give path as URL (like /mysite.com/users/ some_cron_function), but I have to specify physical file that is on a server (full path to specified file like /www/app/...) How to do this? Because I want to run CRON as a function in a defined controller class. I do not want to put that function in separate file, because it operates on a database. Since, as you say, it operates on a database, you should not put it in the C tier. Dedicate a model method to your task and build a shell task using that method. /** * @see: http://book.cakephp.org/pl/view/108/The-CakePHP-Console ;-) * */ If you really need to call a controller method (action), you can always use sth like: App::import('controller', 'MyController'); $mc = new MyController; $mc-action(); Pozdrawiam, Piotr 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: visibility/change varijable within controller
Hello, class ActivitiesController extends AppController { var $name = 'Activities'; function index(){ $year = 2009; $month = 12; $day = 15; } function add(){ } } how can I see variables $year, $month, $day in function add, and if I change their value (i.e. $day = 1) how can I in function 'Index' see that new value. Can samebody help me with this sample of code! Your should declare them just as $name. They belong to the ActivitiesController class, not the function. I suggest reading some tutorial on PHP OOP as well as visibility scope in PHP. This is nothing CakePHP revelant. Regards, Piotr 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Cache Help
Hello, How do i make sure that the browser does not cache elements, pages. I have the cache no cache blocks in view, cache helper in app_controller, var cacheAction = false. tried everything but nothing seems to work. How about http://api.cakephp.org/class/controller#method-ControllerdisableCache ? Regards, Piotr 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Excessive resource usage
Hello, I'm getting lots of Excessive resource usage messages from my server, like the one you can see below: What PHP version is it, guess 5.3? Did you try to set recursive to -1 wherever possible? Regards, Piotr 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Removing divs around checkboxes when using multiple
How can I remove the div tags around the checkboxes when using $form- input() and 'multiple' = 'checkbox'? 'div' = false removes the div around the whole selection, but not each choice 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Excessive resource usage
maybe some loops that do not terminate while (true) {} or with foreach, for, ...? On 15 Dez., 22:18, Piotr Kilczuk kilc...@gmail.com wrote: Hello, I'm getting lots of Excessive resource usage messages from my server, like the one you can see below: What PHP version is it, guess 5.3? Did you try to set recursive to -1 wherever possible? Regards, Piotr 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
rendering and returning
HI all, I have a controller that has 1 method that renders a view and all the other methods return values (its used to handle responses from a flash movie). My question is that if i set autoRender to false the 'return' value is echoed to the screen if I go to the method via the browser, and without I get a 404 error. Is there a nice clean way of not 404'ing and also NOT displaying the return value on screen without making a view for every method? TIA, d. 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Newb? Console wants full path for app name-Need answer tonight please ;)
This is a total newb question. I'm new to cake. I did the blog tutorial and am now working on the acl so I can try bake. In the console it asks for the full path for this app including directory name. The example is C:\Users\Dana\ I'm using xampp in windows (C: \xampp\htdocs\cake). Am I creating a new app folder before I run cake bake and then referring to that path? By default, using the console already has me in my cake application. If so, do I put it in my xampp directory, in cake, desktop, etc...? On a side note, I have not gotten the interactive bake shell to come up in the console. All I get is the database configuration (which I have already done in database.php). I'm sure it's related to my question above. I appreciate the help. Ideally, I need an answer by 8 pm PST today 12/15. 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Migration Guide 1.2 to 1.3
Most of the 1.3 conventions are in place and migrated. There wont be a big difference between beta and final besides internal code. On Dec 15, 1:56 am, Jeremy Burns jeremybu...@me.com wrote: I have only worked with 1.2.5, so haven't done a migration yet. It seems sensible to develop in 1.3 beta. If I migrate current development work onto 1.3 beta, what will the migration to 1.3 final be like? Is it worth it, or should I wait in order to avoid duplication of effort? On Dec 14, 5:55 pm, Miles J mileswjohn...@gmail.com wrote: Here you go. http://cakephp.lighthouseapp.com/projects/42648/13-migration-guide On Dec 14, 7:18 am, web w...@essence.at wrote: Hey, does anyone know where i can find the migraton guide? 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
HABTM Additional Field / Checkbox
I have my HABTM table and was thinking of adding an additional field to the table for years to go with the selectable options. i have in the form: ?php echo $form-input('Skills', array('multiple'='checkbox','label' = 'Select your Skills', 'div' = 'options_select'));? If I added my years field added to the HABTM how would I get the input field for each of the checkbox items? Any ideas? Thanks Dave 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Question on 1.3 alpha
Hi Everyone, I just wondered how stable 1.3 alpha is ? I noticed that this site: http://mark-story.com/ has a blog entry about upgrading, so I guess it must be a fair bit further on that many alpha releases. I guess I was just a bit apprehensive as a lot of Alpha releases are very early and often buggy and not suitable for production, so I'd appreciate some feedback from folk who have been playing it with it ? cheers Dave Porter 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Newb? Console wants full path for app name-Need answer tonight please ;)
On Tue, Dec 15, 2009 at 9:34 PM, danashan danas...@gmail.com wrote: This is a total newb question. I'm new to cake. I did the blog tutorial and am now working on the acl so I can try bake. In the console it asks for the full path for this app including directory name. The example is C:\Users\Dana\ I'm using xampp in windows (C: \xampp\htdocs\cake). Am I creating a new app folder before I run cake bake and then referring to that path? By default, using the console already has me in my cake application. If so, do I put it in my xampp directory, in cake, desktop, etc...? You must just inform the full path for your app' folder. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://tasafo.org 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
query resultant display on index
Hii , programmers, This is my controller function. function index() { $result=$this-IssueLibraryItem-query(select id,title from library_items where library_items.id in (select issue_library_items.library_item_id from issue_library_items where return_date is null);); $options = array(); foreach($result as $value) { $index = $value['library_items']['id']; $options[$index] = $value['library_items']['title']; } $this-set('options',$options); $this-IssueLibraryItem-recursive = 0; $this-set('issueLibraryItems', $this-paginate()); } And my index.ctp th class=actions?php __('Actions');?/th /tr ?php echo debug($options); ? ?php $i = 0; foreach ($issueLibraryItems as $issueLibraryItem): $class = $options; if ($i++ % 2 == 0) { $class = ' class=altrow'; } ? tr?php echo $class;? td ?php echo $issueLibraryItem['IssueLibraryItem']['id'] ? /td td ?php echo $html-link($issueLibraryItem['LibraryItem'] ['title'],array('controller' = 'library_items', 'action' = 'view', $issueLibraryItem['LibraryItem']['id']));? /td td ?php echo $html-link($issueLibraryItem['Member']['name'],array ('controller' = 'members', 'action' = 'view', $issueLibraryItem ['Member']['id'])); ? /td td ?php echo $issueLibraryItem['IssueLibraryItem']['issue_date']; ? /td td ?php echo $issueLibraryItem['IssueLibraryItem']['due_date']; ? /td td ?php echo $issueLibraryItem['IssueLibraryItem']['return_date']; ? /td But my index shows the whole issueed items in the list. But i like to display only the items that should come according to the query result. How can I solve this problem. Please help me 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Newb? Console wants full path for app name-Need answer tonight please ;)
So C:\xampp\htdocs\cake\app\'newproject'? That is the path I used, but I still get the message that the database is not configured even though I changed the following in the database.php file: var $default = array( 'driver' = 'mysql', 'persistent' = false, 'host' = 'localhost', 'login' = 'root', 'password' = '**', 'database' = 'danashan', 'prefix' = '', I have done this over and over. It keeps creating projects, database gets configured again and again, but I never get the option to bake a model, controller, or view. I need to get to the CAKE BAKE screen on the console. I wince to say this but, please spell it out for me because I'm certain I have missed something basic. On Dec 15, 7:29 pm, Marcelo Andrade mfandr...@gmail.com wrote: On Tue, Dec 15, 2009 at 9:34 PM, danashan danas...@gmail.com wrote: This is a total newb question. I'm new to cake. I did the blog tutorial and am now working on the acl so I can try bake. In the console it asks for the full path for this app including directory name. The example is C:\Users\Dana\ I'm using xampp in windows (C: \xampp\htdocs\cake). Am I creating a new app folder before I run cake bake and then referring to that path? By default, using the console already has me in my cake application. If so, do I put it in my xampp directory, in cake, desktop, etc...? You must just inform the full path for your app' folder. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://tasafo.org 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Question on 1.3 alpha
1.3 Alpha isn't very stable. But the current Git repository is. On Dec 16, 3:52 am, Dave Porter dave.southpe...@gmail.com wrote: Hi Everyone, I just wondered how stable 1.3 alpha is ? I noticed that this site: http://mark-story.com/ has a blog entry about upgrading, so I guess it must be a fair bit further on that many alpha releases. I guess I was just a bit apprehensive as a lot of Alpha releases are very early and often buggy and not suitable for production, so I'd appreciate some feedback from folk who have been playing it with it ? cheers Dave Porter 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Migration Guide 1.2 to 1.3
Thanks for that. What I was really aiming at is: when a production version of 1.3 is released, is it a case of putting my app folder into a fresh copy, or is it more complicated than that? On Dec 16, 1:15 am, Miles J mileswjohn...@gmail.com wrote: Most of the 1.3 conventions are in place and migrated. There wont be a big difference between beta and final besides internal code. On Dec 15, 1:56 am, Jeremy Burns jeremybu...@me.com wrote: I have only worked with 1.2.5, so haven't done a migration yet. It seems sensible to develop in 1.3 beta. If I migrate current development work onto 1.3 beta, what will the migration to 1.3 final be like? Is it worth it, or should I wait in order to avoid duplication of effort? On Dec 14, 5:55 pm, Miles J mileswjohn...@gmail.com wrote: Here you go. http://cakephp.lighthouseapp.com/projects/42648/13-migration-guide On Dec 14, 7:18 am, web w...@essence.at wrote: Hey, does anyone know where i can find the migraton guide? 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Question on 1.3 alpha
Thanks for the feedback, that makes sense... Dave On Dec 16, 1:53 pm, Walther waltherl...@gmail.com wrote: 1.3 Alpha isn't very stable. But the current Git repository is. On Dec 16, 3:52 am, Dave Porter dave.southpe...@gmail.com wrote: Hi Everyone, I just wondered how stable 1.3 alpha is ? I noticed that this site: http://mark-story.com/ has a blog entry about upgrading, so I guess it must be a fair bit further on that many alpha releases. I guess I was just a bit apprehensive as a lot of Alpha releases are very early and often buggy and not suitable for production, so I'd appreciate some feedback from folk who have been playing it with it ? cheers Dave Porter 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 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en