spit out the sql code just for one line?

2011-10-30 Thread iphone5
$this -> Question-> deleteAll( array( 'survey_question_id' => $question[ 'SurveyQuestion'][ 'id' ] ) ); Is there any way to show the sql code for this line? I know if I turn on the debug = 2 it will show all the sql code for the whole page but I just want to do it for a single line of code. -- Ou

IE8 activate another windows

2011-10-27 Thread iphone5
I am developing web app with cakephp. Recently I noticed that whenever I click on the link on a page it activate another window for some reason. It looks ok but when I have multiple windows open ( like browsers or Zend Studio or photoshop ) and click submit or links on a page it just enable another

Re: call components from shell.

2011-10-07 Thread iphone5
Never mind i decided to do php way in shell if (! $conn = mysql_connect( 'localhost', $db_name, $db_pwd ) ) { echo 'Could not connect to mysql'; continue; }else{ $this -> connection = $conn; } if( mysql_select_db( $db_name, $conn ) ){ -- Our newest site for the community: CakePHP

Re: call components from shell.

2011-10-06 Thread iphone5
Also Can't even save the model in cake. $rpg[ 'ReviewPanelGroup' ][ 'account_id' ] = $account_id; $rpg[ 'ReviewPanelGroup' ][ 'department_id' ] = $department_id; $rpg[ 'ReviewPanelGroup' ][ 'survey_id' ] = $review_id; $this -> ReviewPanelGroup -> save( $rpg ); Is there anyway to split out the SQ

call components from shell.

2011-10-06 Thread iphone5
Within my Employee Manager Component, I have the folowing function . function get_manager( $department ){ $this -> controller -> loadModel( "Account" ); $this -> controller -> Account -> useDbConfig = $this -> controller -> db_name; $sql = "SELECT * FROM accounts Account LEFT JOIN account_roles A

what do you use to test your application's front end?

2011-10-05 Thread iphone5
Do you guys use Selenium or something similar for testing front end? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from t

Cake2.0

2011-09-21 Thread iphone5
I heard rumors that we are turning search result into object list instead of array. Is it comming soon? As English is not my mother tongue, it is very difficult to find spelling mistakes, whereas if it was object I can just depend on auto- complete. -- Our newest site for the community: CakePHP V