Re: How to install FirePHP on Cake PHP 2.3?
hi 1- install DebugKit plugin https://github.com/cakephp/debug_kit 2- in bootstrap.php : App::uses('FireCake','DebugKit.Lib'); > 3- now can use FirePHP : FireCake::log('hello'); On Tuesday, February 26, 2013 6:32:31 AM UTC+3:30, sphereweb wrote: > > Hello All, > > I have used CakePHP 1.3 in the past and had the FirePHP working very well. > Obviously now that i am coming back to CakePHP 2.3 the same installation > steps (as in previous version) do not apply. > > Can someone give me the steps on how to make FirePHP work with CakePHP? > > Thank you very much. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: how to get model name into behavior
no, learning is sample, i have multi use of multiple models On Mar 28, 12:17 pm, nurvzy wrote: > $Model->Learning->name; > > Hope that helps, > Nick > > On Mar 27, 11:59 pm, Saleh Souzanchi > wrote: > > > hi pleas help me to find model name : > > > class Learning extends AppModel{ > > > var $name = 'Learning'; > > var $belongsTo = array( > > 'Cat' => array( > > 'className' => 'Cat', > > 'counterCache' =>'entry_count', > > ) > > ); > > > } > > > > > > class Cat extends AppModel{ > > var $name = 'Cat'; > > var $actsAs = array( 'MyTree' ) ; > > > } > > > > > class MyTreeBehavior extends ModelBehavior { > > > function setup(&$Model, $config = array()) { > > > ===> how to get name of model parent Cat > > (Learning) ? > > > } > > > } 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 To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
how to get model name into behavior
hi pleas help me to find model name : class Learning extends AppModel{ var $name = 'Learning'; var $belongsTo = array( 'Cat'=> array( 'className' => 'Cat', 'counterCache' =>'entry_count', ) ); } class Cat extends AppModel{ var $name = 'Cat'; var $actsAs = array( 'MyTree' ) ; } class MyTreeBehavior extends ModelBehavior { function setup(&$Model, $config = array()) { ===> how to get name of model parent Cat (Learning) ? } } 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 To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Re: pagination and routes
this is my problam, plz 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
Re: how to execute this query with cakephp
Is there another way? On Jan 18, 4:46 am, Jon Bennett wrote: > > how to execute this query with cakephp : > > > update table_name set hit = hit+1 > > $this->Table->query('update table set hit = hit+1); > > j > > -- > jon bennett -www.jben.net- blog.jben.net 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 execute this query with cakephp
how to execute this query with cakephp : update table_name set hit = hit+1 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
When I use Media View ,my session deleted
i use my custom auth system in my project and it save user informatin into session(no used Auth Component) $this->Session->write( 'Cms.User', array (...) ); when is use This Code function profile_donwload( $paperID ) { if ( $file = $this->Paper->Attachment->read( null, $paperID ) ) { $this->view = 'Media'; $params = array( 'id' => 'paper.'.$file['Attachment']['format'], 'name' => $file['Attachment']['fname'], 'download' => true, 'extension' => $file['Attachment']['format'], 'path' => WWW_ROOT .'data'.DS.$file['Attachment'] ['for'].DS.$file['Attachment']['paper_id'].DS ); $this->set($params); } } after Downloading file or Canceling it ,my session's deleted,why ? 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 make Multiple section in url interface for pretty url
hi plz see this sample : domain/portal/action domain/portal/system/action's domain/portal/profile/action's domain/portal/mybox/action's how to config Routing settings? --~--~-~--~~~---~--~~ 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 make defined multi porfix?
hi dear's i have define some prefix in my project for example domain/setting/user/add domain/setting/user/edit domain/setting/user/del setting = prefix user = controller and domain/setting/profile/edit domain/setting/profile/view domain/setting/profile/share setting = prefix profile= controller how to config routter and controller? plz help me --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---