Re: need help with specifying a complex query
Hi Bingo, The key to being able to sort is to get the findAll method (or if that turns out to not be direcltly possible your custom, but exactly the same format, sql query) to return you what you want rather than a sql query followed by a php for each loop. http://groups-beta.google.com/group/cake-php/search?group=cake-phpq=max+nateqt_g=Search+this+group Why do you have models for your join tables...? You may find that counterCache does what you want regarding the counting how many Songs a singer has, I haven´t needed to use it yet so can't offer more than a point in that direction. HTH, AD7six Please note: The manual/bakery is a good place to start any quest for info. The cake search (at the time of writing) erroneously reports less/no results for the google group. The wiki may contain incorrect info - read at your own risk (it's mainly user submitted) :) You may get your answer quicker by asking on the IRC Channel (you can access it with just a browser here: http://irc.cakephp.org). On Oct 26, 5:08 pm, bingo [EMAIL PROTECTED] wrote: hi bakers (especially AD7six and Christoph) Now, I did find a solution for specifying the query, but getting a trouble on how to set pagination. I want to set the pagination on name, count or id any ideas on how to do to set pagination. Regards --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Multi Step Search
Hi Mikee, Here's one approach: User submits form via ajax using Js you display a processing message Controller action processes the form and redirects* the user to the url Here's another: User submits the form normally User is redirected to the url for their search results -- If js is disabled, after rendering the results page for the first time, process and cache the results page -- If js is disabled after a sufficient number of seconds redirect to the same url and display the results -- If js is enabled on loading make an ajax request to process and cache the results page - updating the contents of your page. The results in all cases would be pretty similar, for the latter you would need to sniff a little to know if js is enabled (could simply use js to change a value in the submitted form). * To 'redirect' from an ajax call you would use requestAction. HTH, AD7six Please note: The manual/bakery is a good place to start any quest for info. The cake search (at the time of writing) erroneously reports less/no results for the google group. The wiki may contain incorrect info - read at your own risk (it's mainly user submitted) :) You may get your answer quicker by asking on the IRC Channel (you can access it with just a browser here: http://irc.cakephp.org). On Oct 30, 6:18 am, Mikee Freedom [EMAIL PROTECTED] wrote: has anyone done anything similar to this in Cake before? or any other application? If the question is seen to be more of a generic one then fair enough. but if anyone knew of a method within CakePHP to display a processing screen while PHP performs a function behind the scenes it would be much appreciated. even a nudge in the right direction... thanks, mikee On 29/10/06, Mikee Freedom [EMAIL PROTECTED] wrote: hey bingo, had a look at it and it was useful in a way. however it seems the multi step was more in processing the data rather than any kind of display to the user. i've got a handle on how i am searching for the data and it is using the very handy findAll method with some creative use of bindModel, unbindModel and conditions. however, when my DB grows i think the request to the DB could take some time, and then i process the results at the controller / component level which will again soak up milliseconds. what i would like is the ability to display an intermediate screen while this processing goes on behind the scenes. i didn't really see mention of such functionality in that discussion. does this make sense? thanks for your help on this one. cheers, mikee On 29/10/06, bingo [EMAIL PROTECTED] wrote: hi Mikee, read this post...this might give you some ideas http://groups.google.com/group/cake-php/browse_thread/thread/c33b7864... Cheers bingo --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: need help with specifying a complex query
hi AD7six, this was the best solution I could think of...can you think this can be further optimized.. I am not sure about counterCache...I will looking into ...please let me know if you can think this query can be further optimized... Regards, bingo SOLUTION= $this-SongsUser-recursive = 0; $userid = $this-othAuth-user('id'); if(empty($userid)) return; $criteria= array('user_id' = {$userid}); // get list of songs for a given user $plist = $this-SongsUser-findAll($criteria, array('song_id'), null, null, -1); $mySongList = array(); foreach($plist as $value){ $mySongList[] = $value['SongsUser']['song_id']; } // get list of singers $singers = array(); if(!empty($mySongList)){ // unbind songs...as we don't want to retrieve songs $this-Singer-SingersSong-unbindModel(array('belongsTo'=array('Song'))); // set parameters $where = 'SingersSong.song_id in (' . implode(',', $mySongList) . ') Group by SingersSong.singer_id'; $fields = array('Singer.id', 'Singer.name', 'count(*) as nos'); // options for pagination $options = Array ( 'modelClass' ='SingersSong', sortByClass=SingersSong, // Different default sort class 'sortBy' ='singer_id' ); //set pagination list($order, $limit, $page) = $this-Pagination-init($where, NULL, $options); // if order is based on count of songs if(strpos($order,'nos')){ if(strpos($order, 'ASC')) $order = '`nos` ASC'; else $order = '`nos` DESC'; } // get list of singers $alist = $this-Singer-SingersSong-findAll($where, $fields, $order, $limit, $page, null, 1); $this-set('data', $alist); } == On Oct 30, 2:50 am, AD7six [EMAIL PROTECTED] wrote: Hi Bingo, The key to being able to sort is to get the findAll method (or if that turns out to not be direcltly possible your custom, but exactly the same format, sql query) to return you what you want rather than a sql query followed by a php for each loop. http://groups-beta.google.com/group/cake-php/search?group=cake-phpq=... Why do you have models for your join tables...? You may find that counterCache does what you want regarding the counting how many Songs a singer has, I haven´t needed to use it yet so can't offer more than a point in that direction. HTH, AD7six Please note: The manual/bakery is a good place to start any quest for info. The cake search (at the time of writing) erroneously reports less/no results for the google group. The wiki may contain incorrect info - read at your own risk (it's mainly user submitted) :) You may get your answer quicker by asking on the IRC Channel (you can access it with just a browser here:http://irc.cakephp.org). On Oct 26, 5:08 pm, bingo [EMAIL PROTECTED] wrote: hi bakers (especially AD7six and Christoph) Now, I did find a solution for specifying the query, but getting a trouble on how to set pagination. I want to set the pagination on name, count or id any ideas on how to do to set pagination. Regards- Hide quoted text -- Show quoted text - --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: need help with specifying a complex query
hi AD7six, I posted my solution ...but not sure why its not here..I will post it again if fails to appear...but after you mentioned about countercache, I checked into it...it seems I wont be able to use countercache..as I just don't to calculate total number of songs by each singer...but total number of songs by a singer based on what songs a user has in his/her library... Regards, bingo --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Multi Step Search
hi Mikee and AD7six, Actually I am also struggling with the same issue...i haven't found a solution that I can easily implement...and also my courses are keeping me busy to really try anything new... ...but another solution that I am trying to work on is using data live grid ...Rico provides a data live grid...but it requires data to be in XSLT format...on RSSsoft's blog you will find on how to convert data into xslt... One more simple solutuion would be to implement paginationI was able to get pagination working with my complex query...see the post http://groups.google.com/group/cake-php/browse_thread/thread/c33b78642ee9d395/# AD7six...are you aware of any sample implementation of rico's live grid using cakephp... Regards, bingo --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: HABTM select problem
Have you set up a join table? If not, I would suggest going back to the manual, reading up a bit more and perhaps getting the example there working. It helped me understand them, and it's probably worth the time investment in the long term. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Deleting and habtm associations
Hi bakers. I'm trying to delete a record from a model Foo that has a habtm association with a model Bar, through a foo_bar table. The problem is that when i try to delete the Foo record i get a constraint violation error because it is still referenced from the record at foo_bar! Shouldn't Cake delete the records of foo_bar that reference the record of Foo i'm deleting? I'm setting delete's cascade parameter to true. Am i missing something? Thanks in advance. -- Gonçalo Marrafa [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Slow Site Load time Question
20 seconds in debug mode, several years in production. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
othauth mssql
Im using cake with mssql, im not a mssql fan and took me a while to figure out the right sintax for the table creation, so im posting it with the hope that could be useful for somebody else. $sql = CREATE TABLE [prospectzone] ( [id] Integer Identity(0,1) NOT NULL, [first_name] Varchar(75) NOT NULL , [last_name] Varchar(55) NOT NULL , [contact_time] Varchar(55) NULL , [email]Varchar(100) NOT NULL , [phone]Varchar(50) NOT NULL, [phone2]Varchar(50) NULL, [address_1_city] Varchar(55) NOT NULL , [address_1_state] Varchar(55) NOT NULL , [address_1_street1] Varchar(225) NOT NULL , [address_1_street2] Varchar(225) NULL , [address_1_zip] Varchar(25) NOT NULL , [insured_1_dobMM] Varchar(10) NOT NULL , [insured_1_dobDD] Varchar(10) NOT NULL , [insured_1_dob] Varchar(15) NOT NULL , [insured_1_gender] Varchar(10) NOT NULL , [insured_1_heightFT] Varchar(10) NOT NULL , [insured_1_heightIN] Varchar(10) NOT NULL , [insured_1_health_conditions_detail] Varchar(250) NOT NULL , [insured_1_current_medications_detail] Varchar(250) NOT NULL , [insured_1_smoker] Varchar(15) NOT NULL , [insured_1_weight] Varchar(15) NOT NULL , [ip_address] Varchar(40) NOT NULL , [question_felony] Varchar(50) NOT NULL , [question_hazardous_occupation] Varchar(30) NOT NULL , [question_licensed_pilot] Varchar(30) NOT NULL , [question_dui] Varchar(30) NOT NULL , [insured_1_tobacco_use] Varchar(30) NOT NULL , [insured_1_coverage_amount] Varchar(15)NOT NULL , [insured_1_term_length] Varchar(18) NOT NULL , [insured_1_health_class] Varchar(35) NOT NULL , [datatime_post] datetime NOT NULL, [response] Varchar(245) NULL , [callrep] Varchar(24) NULL , [screener] Varchar(24) NULL , [processor]Varchar(24) NULL , [leadid]Varchar(25) NULL , [healthclasi]Varchar(75) NULL , [typeinsur]Varchar(245) NULL , [hhincome]Varchar(50) NULL , [smokefreq]Varchar(50) NULL , [smokebrand]Varchar(50) NULL , [insured_1_health_conditions_detail_other]Varchar(50) NULL , [healthfamiliyhis]Varchar(245) NULL , [healthfamiliyhis_other]Varchar(245) NULL , [homeowner]Varchar(24) NULL , [freequote]Varchar(24) NULL , [haveten]Varchar(24) NULL , [wantquote]Varchar(24) NULL , Primary Key ([id]) ); CREATE TABLE [groups] ( [id] Integer Identity(0,1) NOT NULL, [name] Varchar(50) NOT NULL , [created] datetime NOT NULL default '-00-00 00:00:00', [modified] datetime NOT NULL default '-00-00 00:00:00', PRIMARY KEY ([id]) ); CREATE TABLE [groups_permissions] ( [group_id] int NOT NULL default '0', [permission_id] int NOT NULL default '0' ); CREATE INDEX group_id ON groups_permissions (group_id,permission_id); CREATE TABLE [permissions] ( [id] Integer Identity(0,1) NOT NULL, [name] Varchar(50) NOT NULL , [created] datetime NOT NULL default '-00-00 00:00:00', [modified] datetime NOT NULL default '-00-00 00:00:00', PRIMARY KEY ([id]) ); CREATE INDEX name ON permissions (name); CREATE TABLE [users] ( [id] Integer Identity(0,1) NOT NULL, [username] varchar(50) NOT NULL default '', [password] varchar(32) NOT NULL default '', [name] varchar(50) NOT NULL default '', [email] varchar(100) NOT NULL default '', [last_visit] datetime NOT NULL default '-00-00 00:00:00', [group_id] int NOT NULL default '0', [active] int NOT NULL default '0', [created] datetime NOT NULL default '-00-00 00:00:00', [modified] datetime NOT NULL default '-00-00 00:00:00', PRIMARY KEY ([id]) ); CREATE INDEX group_id ON users (group_id); CREATE UNIQUE INDEX username ON users (username); CREATE UNIQUE INDEX email ON users (email,username); --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Scaffold: A few more features
Hi there I've been playing with scaffold, and found come neat features that could be usefull, i'd like to know what is the comunity feeling about. I agree with nate's opinion, expressed in many post on this newsgroup, that scaffolding is for a aleterate the project start, athought i think one feature like. In model we could defined an array, like $fieldTypes = Array(field_name=READONLY, field_name=HIDDEN, fieldname=FILE,...); Could be very usefull, what do you think about that? jose Silva --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Need Help On ACL
Im very new to ACL Concepts, besides from the manual example are there any ACL-in-action code implementation available?. ive been googLing acl stuff havnt found any idiots guide to acl. Lol =( Thanks for any help --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Custom CakePHP search engine
this is very useful http://othy.wordpress.com/ --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Using Capistrano PHP and Ruby side-by-side under Apache
Hey guys,I've taken a look at Capistrano and I think that I will use it to deploy my CakePHP apps. I've got a dedicated server and I would like to know if anyone has managed to run PHP and Ruby side-by-side on Apache? (as I will need to use Capistrano). Thanks in advance!Marcelo. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: How To Load Divs Asynchronous For Index.php?
I am not so clear. The div synchronous means each div are loading at the same time. Is it correct? BUT for the example website www.netvibes.com, is it the each div are loading asynchronous or indivually? AND also, if I want to load the index page to load like www.netvibes.com, Where can I write the code like u $options['type']. Thanks. I am a rookie. Tim wrote: If I understand your problem correctly you may just want to make each div synchronous. $options ['type'] // Either 'asynchronous' (default), or 'synchronous'. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: session data gone after redirect
Thx for this info. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Scaffold: A few more features
What John said. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Notice: IE6, P3P and FRAMESETs
Dear Cake users, If you've used a frameset on IE6 lately (ugh), check out this Ticket: https://trac.cakephp.org/ticket/1532 The gist is: IE6 says No! to session cookies in framesets with frames with pages from another domain in them. To make IE6 happy, Cake sends a so-called P3P header to it. But not all the time. IE6 becomes sad, and sends empty sessions back. So, no setFlash() magic, no session love. To send the P3P header on all your session cookies, follow the simple advice in the Ticket comment. (I just did, and it solved my issue.) By the way: Thanks for being such a lovely community, folks. Friendly! I dig that. kind regards, Olle Jonsson Copenhagen, Denmark --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Form front end and backend conventions
Intro: Excellent job on the CakePHP development to the creators and developers. I am developing an application that requires a simple job application form front end and the ability to Admin edit/update the same form data on the backend. I've created 2 controllers, elements and unique views but am not sure of the Cake best practices and conventions for ACL and CRUD for this application. I've read the manual and spent some time here but haven't seen exactly what I'm looking for. If someone could shed some light it would be greatly appreciated. Thanks and keep up the good work. -Akornz --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: How To Load Divs Asynchronous For Index.php?
For the Question B. I check the script.aculo.us Wiki and got one solution. use Ajax.Updater for onclick The code below: onclick=new Ajax.Updater('posts_view','/posts/refresh',{asynchronous:true,evalScritps:true});return false Is it the right way to do this even it works? Thanks. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Dynamic Elements
Hi All! Can anyone help me with following question? Let's (for example) I have blog application. And I have some posts categories. I'd like to have an element, that shows on every page my categories list. How can I do this? Elements don't have access to controllers. I don't want to include Categories model in every controller that I have in application. I want to do it from template... Is it possible? Best Regards --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Custom CakePHP search engine
included that one also thanks :).. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Using Capistrano PHP and Ruby side-by-side under Apache
On 10/30/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: Hey guys, I've taken a look at Capistrano and I think that I will use it to deploy my CakePHP apps. I've got a dedicated server and I would like to know if anyone has managed to run PHP and Ruby side-by-side on Apache? (as I will need to use Capistrano). Thanks in advance! Hey Marcelo, We are going to be using Captistrano at my work to deploy projects, so the two can co-exist. Please don't confuse Ruby with Ruby on Rails. Ruby can happily live on a server with PHP, as it's just a programming language. Rails is the web framework that sits on top of Ruby. So, the short story is this: you can use Capistrano without configuring your web server to support Ruby on Rails. -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Slow Site Load time Question
On 10/30/06, Nextri [EMAIL PROTECTED] wrote: is there a way to see load time when in production mode? You can get that from your web server logs, can you not? -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: strtolower utf-8 char problem
Hello, Thanks for your interest Felix. As you said encoding and decoding the characters in UTF-8 does not solve the problem. Also, charset and header issues don't solve it alone. Furthermore, multibyte string methods works well for utf-8 encoding. Since my database is setted to UTF-8, it looks like working well for now both inputs and outputs. Regards, bt On Oct 30, 7:26 am, Felix Geisendörfer [EMAIL PROTECTED] wrote: Hi, UTF-8 supports Umlaute laut äüö and french notations like ç. I know that for sure. I investigated on the problem, and in order to make sure we are on the same page, this is how my test setup looked like: - The PHP document I used to test was UTF-8 encoded - The html document that was served by the php document was treated as UTF-8 by the browser Then I typed in ?php echo strtolower('ÜÜÜ'); ? and got the same results as you. However something like this worked: ?php echo utf8_encode(strtolower(utf8_decode('ÜÜÜ'))); ?. The best, and probably propper solution for the problem I came across was this: ?php echo mb_strtolower('ÜÜÜ', 'UTF-8') ?. I think this behavior makes total sense given that the normal php string functions can't deal with utf8 characters. Now the reason it worked with your non-php document was probably been that it has been treated as you OS native ISO entirely (php document, and web document). When working with UTF-8 in CakePHP you should always pay attention to the following things: 1. All PHP documents you use Umlaute, or other utf8 characters in must be encoded UTF-8 themselves 2. The html document must be served as utf-8. 3. The database connection needs to be UTF-8. For number #2 put this line on top of your layout view (i.e. default.thtml): ?php header('Content-Type: text/html; charset=utf-8'); ? And this in your head section: ?php echo $html-charset('UTF-8'); ? To ensure #3 is working, use this code in your AppModel: class AppModel extends Model { function __construct($id = null, $table = null, $ds = null) { parent::__construct($id, $table, $ds); if (!defined('MYSQL_SET_NAMES_UTF8') $this-useTable!==false) { @$this-execute(SET NAMES 'UTF8'); define('MYSQL_SET_NAMES_UTF8', true); } } }Good luck and let me know how things are working out. Best Regards, Felix Geisendörfer --http://www.thinkingphp.orghttp://www.fg-webdesign.de Ismael S. Kafeltz schrieb: Try to set you codification on firefox/IE to ISO-8859-1 UTF-8 i guess don't suport this kind of chars äëïöüç does this helps? meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 instead of UTF-8 ? and/or header('Content-Type:text/plain;charset=iso-8859-1'); --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Major mysqli Problems
Hi, I just re-launched my organization's community blog using CakePHP: http://www.blogforamerica.com Unfortunately, the mysqli connection seems to be buckling under the pressure. Every 45 minutes or so, the site just dies and gives me this: Warning: mysqli_connect() [function.mysqli-connect]: (08004/1040): Too many connections in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 101 Warning: mysqli_select_db() expects parameter 1 to be mysqli, boolean given in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 104 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 126 I have to restart Apache to get things going again. Any thoughts? Should I switch away from mysqli? Thanks. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Repeating models in a single form: how to validate?
Hi, maybe this has been answered before, and I couldn't find the answer in my extensive search (or I was not looking for the right ting), but I am having a hard time figuring out a way to do this in Cake elegantly. Basically, I have to do a very simple Send to a friend form, where a sender (name, email) has the ability to send an email to up to n receivers (name, email). The sender has the ability to Add boxes to fill in more emails. I'm trying to do this using existing helpers and model structure (I use html helper for form rendering), and I have 2 models (Sender and Receiver), but I can't seem to find how I could validate the form, save everything in the DB, and send the appropriate email given the structure of the platform. Will I have to program the whole thing by workarounds and such, or has anyone ever found a clever solution to this common problem? Enlighten me, tell me I oversaw something :D Thanks, flemieux-- --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Using Capistrano PHP and Ruby side-by-side under Apache
Hi Chris, I didn't say RoR, only Ruby, I know the difference between them :DIt's nice to know that PHP and Ruby can live together on the same server. Could you point me to a tutorial on how to do this? Thanks,Marcelo.On 10/30/06, Chris Hartjes [EMAIL PROTECTED] wrote: On 10/30/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: Hey guys, I've taken a look at Capistrano and I think that I will use it to deploy my CakePHP apps. I've got a dedicated server and I would like to know if anyone has managed to run PHP and Ruby side-by-side on Apache? (as I will need to use Capistrano). Thanks in advance! Hey Marcelo,We are going to be using Captistrano at my work to deploy projects, sothe two can co-exist.Please don't confuse Ruby with Ruby on Rails.Ruby can happily live on a server with PHP, as it's just a programming language.Rails is the web framework that sits on top of Ruby.So, the short story is this:you can use Capistrano withoutconfiguring your web server to support Ruby on Rails.--Chris Hartjes The greatest inefficiencies come from solving problems you will never have.-- Rasmus Lerdorf@TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Using Capistrano PHP and Ruby side-by-side under Apache
On 10/30/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: Hi Chris, I didn't say RoR, only Ruby, I know the difference between them :D It's nice to know that PHP and Ruby can live together on the same server. Could you point me to a tutorial on how to do this? You don't need a tutorial. Just install Ruby on the target server via whatever method is available to you, be it by source, package or one-click installer. You don't need Apache at all to use Ruby. Am I missing something here? -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Major mysqli Problems
Are you using persistent db connections? On Oct 30, 1:26 pm, Luigi [EMAIL PROTECTED] wrote: Hi, I just re-launched my organization's community blog using CakePHP: http://www.blogforamerica.com Unfortunately, the mysqli connection seems to be buckling under the pressure. Every 45 minutes or so, the site just dies and gives me this: Warning: mysqli_connect() [function.mysqli-connect]: (08004/1040): Too many connections in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 101 Warning: mysqli_select_db() expects parameter 1 to be mysqli, boolean given in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 104 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 126 I have to restart Apache to get things going again. Any thoughts? Should I switch away from mysqli? Thanks. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Slow Site Load time Question
My understanding was 24 hours for model caching. If the site will be quite large then I would recommend looking into view caching. Just make sure you do all your homework and understand about requestionactions, query execution, and how to exclude view caching or will just create more headaches for yourself just diving in to it without reading up on it first. On Oct 29, 9:42 pm, bibek [EMAIL PROTECTED] wrote: how long does temporary caching last in debug mode? --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Using Capistrano PHP and Ruby side-by-side under Apache
On 30-Oct-2006, at 10:50, Marcelo de Moraes Serpa wrote: Hey guys, I've taken a look at Capistrano and I think that I will use it to deploy my CakePHP apps. I've got a dedicated server and I would like to know if anyone has managed to run PHP and Ruby side-by-side on Apache? (as I will need to use Capistrano). Thanks in advance! Marcelo. There is no need to have ruby on the destination server. Capistrano runs entirely on your local machine, it connects to the server via ssh and runs shell commands. All you need on the destination server is ssh and subversion. I've got a few notes on deploying Cake apps via Capistrano on my blog at http://scotfl.ca/2006/07/25/capistrano-and-cakephp-in-perfect- harmony/. I use Cap for deployments, Rake for management, and Selenium RC and Test::Unit for behaviour testing. Cake and Ruby can definitely coexist! hth scott. PGP.sig Description: This is a digitally signed message part
Re: Using Capistrano PHP and Ruby side-by-side under Apache
Ah, ok... how dumb .. thanks :)On 10/30/06, Chris Hartjes [EMAIL PROTECTED] wrote: On 10/30/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: Hi Chris, I didn't say RoR, only Ruby, I know the difference between them :D It's nice to know that PHP and Ruby can live together on the same server. Could you point me to a tutorial on how to do this?You don't need a tutorial.Just install Ruby on the target server via whatever method is available to you, be it by source, package orone-click installer.You don't need Apache at all to use Ruby.Am I missing something here?--Chris HartjesThe greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf@TheBallpark - http://www.littlehart.net/attheballpark@TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Slow Site Load time Question
20 seconds. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Dynamic Elements
requestAction maybe? if i understand correctly, you would like to display you list of categories on every page yes? within your element you could call: $this-requestAction('categories/list'); There was some discussion a while back as to the overhead of too many of these calls. Was an interesting one, looked at using this method against including models in other controllers where necessary. both have uses. do a quick search on requestaction and there are some interesting posts. HTH mikee On 31/10/06, GL [EMAIL PROTECTED] wrote: Hi All! Can anyone help me with following question? Let's (for example) I have blog application. And I have some posts categories. I'd like to have an element, that shows on every page my categories list. How can I do this? Elements don't have access to controllers. I don't want to include Categories model in every controller that I have in application. I want to do it from template... Is it possible? Best Regards --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: How To Load Divs Asynchronous For Index.php?
Hi Eric, I think you might be getting your synchronous and asynchronous in a muddle. Synchronous - browser stops working and waits for reply from a single request Asynchronous - browser makes multiple requests at the same time...! See: http://wiki.script.aculo.us/scriptaculous/show/Ajax.Request Most people seem to think that synchronous requests are a bad idea e.g. http://ajaxblog.com/archives/2005/05/25/synchronous-requests-bad https://blueprints.dev.java.net/ajax-faq.html#synchronous On Oct 30, 12:56 pm, Eric [EMAIL PROTECTED] wrote: For the Question B. I check the script.aculo.us Wiki and got one solution. use Ajax.Updater for onclick The code below: onclick=new Ajax.Updater('posts_view','/posts/refresh',{asynchronous:true,evalScritps:true});return false Is it the right way to do this even it works? Thanks. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
check action in view
how can i check action in thtml file its $view-action == 'action' not working --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: How To Load Divs Asynchronous For Index.php?
Hi Eric If you look back again at Graham Bird's 'tutorial', in the view you'll see an example of the $option['update'] option, I agree it's difficult know from the documentation that you are supposed to remove the $option and stick it in an array print $ajax-link('Delete', 'delete/' . $item['id'], array('update'='tasks_done')); If you want to do it on load of the page you'll probably need an onload event attached to the body tag. This should call a function which (if you want to have it cakeified) should maybe have one blocks of code for each div you want to update: echo $ajax-remoteFunction( array(url=/controller/action/, update=divToUpdate, type=asynchronous ) ); View the source after its run and you'll see it converts it to use the prototype.js object Ajax.Updater If you change the type to synchronous, each div should load one after the other, rather than all at once. Hope this helps Tim --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Major mysqli Problems
I'm using mysqli_connect. For some reason, trying out mysqli_pconnect spits out errors. Thanks! dkarlson wrote: Are you using persistent db connections? On Oct 30, 1:26 pm, Luigi [EMAIL PROTECTED] wrote: Hi, I just re-launched my organization's community blog using CakePHP: http://www.blogforamerica.com Unfortunately, the mysqli connection seems to be buckling under the pressure. Every 45 minutes or so, the site just dies and gives me this: Warning: mysqli_connect() [function.mysqli-connect]: (08004/1040): Too many connections in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 101 Warning: mysqli_select_db() expects parameter 1 to be mysqli, boolean given in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 104 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 126 I have to restart Apache to get things going again. Any thoughts? Should I switch away from mysqli? Thanks. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Major mysqli Problems
Luigi wrote: I'm using mysqli_connect. For some reason, trying out mysqli_pconnect spits out errors. Thanks! dkarlson wrote: Are you using persistent db connections? On Oct 30, 1:26 pm, Luigi [EMAIL PROTECTED] wrote: Hi, I just re-launched my organization's community blog using CakePHP: http://www.blogforamerica.com Unfortunately, the mysqli connection seems to be buckling under the pressure. Every 45 minutes or so, the site just dies and gives me this: Warning: mysqli_connect() [function.mysqli-connect]: (08004/1040): Too many connections in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 101 Warning: mysqli_select_db() expects parameter 1 to be mysqli, boolean given in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 104 Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /path/to/cake/libs/model/dbo/dbo_mysqli.php on line 126 I have to restart Apache to get things going again. Any thoughts? Should I switch away from mysqli? Thanks. You need to increase your max_connections for MySQL. General rule is one connection per-thread or process, I believe. Cheers, Matt -- BASIC: A programming language. Related to certain social diseases in that those who have it will not admit it in polite company. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: check action in view
$this-params is an array that includes a few interesting bits of information. do a print_r() on it in the view and you'll see what it includes. HTH mikee On 31/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: how can i check action in thtml file its $view-action == 'action' not working --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Using Capistrano PHP and Ruby side-by-side under Apache
Hi scott,Thanks for the explanation!What about migrations, have you managed to make it work too?Thanks,Marcelo.On 10/30/06, scott lewis [EMAIL PROTECTED] wrote: On 30-Oct-2006, at 10:50, Marcelo de Moraes Serpa wrote: Hey guys, I've taken a look at Capistrano and I think that I will use it to deploy my CakePHP apps. I've got a dedicated server and I would like to know if anyone has managed to run PHP and Ruby side-by-side on Apache? (as I will need to use Capistrano). Thanks in advance! Marcelo.There is no need to have ruby on the destination server. Capistrano runs entirely on your local machine, it connects to the server viassh and runs shell commands. All you need on the destination serveris ssh and subversion.I've got a few notes on deploying Cake apps via Capistrano on my blog at http://scotfl.ca/2006/07/25/capistrano-and-cakephp-in-perfect-harmony/. I use Cap for deployments, Rake for management, and Selenium RC and Test::Unit for behaviour testing. Cake and Ruby candefinitely coexist!hthscott. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Scaffold: A few more features
I do like the idea of extending the ability of scaffolding. I use cake for work so anything that saves time lets me sleep more ;) Personally if one could put in the option to hide a field from scaffolding (like 'id') and format the rows and columns a little more cleanly it would mean I wouldn't have to bake so quickly. I've just found that users always want to change a field, add a field, delete a field and this process doesn't seem to stop and once I've baked my views it means going into the index/add/view/edit templates to add/delete a field. These are just my thoughts and I am still learning :) -Jeff btw. Hi Jose, you remember me? --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Nested categories controller and routing
If I create a model with a relationship to itself ie a nested categories model with a belongs to and has many relationship I can easily enough get a set of nested categories data. The problem for me is that if I wish to reference the content related to that category I must either reference it directly or set a nesting depth limit on the parameters I pass via the url. More clearly I can't figure out how I could set a controller to read category information from an url that might have no parameters or 5 or 13 or any other number. Is there a way to take a structure like so : Categories __ id - parent_id - value __ 0 - null- null 1 - 0- articles 2 - 0- files 3 - 1- programming 4 - 3- php etc.. and represent the actual hierarchy in the url as parameters? domain.ext/ domain.ext/articles domain.ext/articles/php particulary in the case where in the future I might want to add a sub-category to php thus making the url into domain.ext/articles/php/cake or similiar? --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Scaffold: A few more features
Scaffold should not be used for production settings, I have said this since I added it to cake. If you want the automagicness that scaffold provides, use bake and edit the files that are created. I will not add any more functionality to scaffold that is not already there. You can already use methods that are available to extend scaffold on your own.Controller::_beforeScaffold()Controller::_afterScaffoldSave()Controller::_afterScaffoldSaveError()Controller::_scaffoldError() And you already have the ability to override the core templates used for scaffold by creating your own views.app/views/scaffold/scaffold.*.thtmlor app/views/*/scaffold.*.thtmlWith all of this available to you, doing what you need can be done already without having to add it to the core. -- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/On 10/30/06, jdownton [EMAIL PROTECTED] wrote: I do like the idea of extending the ability of scaffolding.I use cakefor work so anything that saves time lets me sleep more ;)Personally if one could put in the option to hide a field fromscaffolding (like 'id') and format the rows and columns a little more cleanly it would mean I wouldn't have to bake so quickly.I've just found that users always want to change a field, add a field,delete a field and this process doesn't seem to stop and once I'vebaked my views it means going into the index/add/view/edit templates to add/delete a field.These are just my thoughts and I am still learning :)-Jeffbtw. Hi Jose, you remember me? --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Dynamic Elements
As far as I understand I can't use requestAction inside element. I solved it by calling ?= $this-renderElement('catmenu', array('categories'=$this-requestAction('/categories/getlist'))); ? from my layout template. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Cake PHP Help
Hello! Please help me in finding answer to this. I am new to Cake PHP. I have downloaded the Cake PHP and worked out the example show in the site http://www.sitepoint.com/article/application-development-cakephp. I had done all the coding as per in the example, - Create a table (notes), - database.php (app/config), - note.php (app/models), - notes_controller.php (app/controllers). Creating *.thtml leads to an error. I just copy the code and save it as index.thtml (app/views/notes) and run in the browser (http://localhost/cake/app/views/notes ), it simply displays the coding. The database is configured correctly. http://localhost/cake/ shows "Your database configuration file is present. Cake is able to connect to the database." Cake Version: 3632 PHP Version: PHP5 Database: MySQL Thanks in advance for all your help!! Regards,Gayathiri. --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Scaffold: A few more features
Thanks phpnut, I understand the purpose of scaffolding better and thanks nate for the style suggestion, both are of great help. -Jeff --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: check action in view
Try $this-action --~--~-~--~~~---~--~~ 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] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---