1.3 cakephp tree / behavoir
hi! my cakephp installation looks as the following application tree, whereby cms is my plugin, cake version is 1.3. Behavoir in cms folder are not attached in turn to component. app cake cms Any idea? Thanks for any answers. gg david -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Model Joins, $options
Hi@all! In my Cakephp 1.3 Webapp I try to get related Content for my Menu. Inside the Menus Model I call the following function as i found in http://book.cakephp.org/1.3/view/1047/Joining-tables. Puts me out all data from someOther table, neither data from joining table. All sql errors where fixed, i still do not recive any data from the joining table, what I do not understand Controller: $output = $this->Menu->findInbox(1); Model: var $name = 'Menu'; var $useTable = 'someOther'; function findRelatedContent($user) { $this->recursive = -1; . $query = $this->find('all', $options['joins'] = array( array( 'table' => 'Content', 'alias' => 'Pages', 'type' => 'LEFT', 'conditions' => array( 'Content.showing = 1' ) ) ) ); -- 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 this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
cannot acces plugin with 1.3 installation
Hi! I´ve succesfully upgraded to 1.3. On my local xampp everthiny is working fine. On the webserver I´m using the following error appears when I try to call a plugins url. The layout file can not be found or does not exist. It seems weird that the url where the layout file seems to be located is in /app/views/plugins/about/layouts/Pages.ctp. Why does cake search the layout for my plugin in the app/views folder? Is ther any idea? david 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
cakephp 1.3 plugin layout path
Hi! I wanted to ask if somebody can help me with the 1.3 versions plugin. I ´ve used a plugin in 1.2.6 and everything was working great. On version 1.3 the same plugin delivers me an error message on call: Error: The layout file www.mydomain.at/app/views/plugins/about/layouts/About.Pages.ctp can not be found or does not exist. Error: Confirm you have created the file: www.mydomain.at/app/views/plugins/about/layouts/About.Pages.ctp I don´t know what exactly is happen and I found now hints. Would be happy about any help. Regards 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: App::import()
Hello! Thank you a lot! I see! On 20 Apr., 18:02, cricket wrote: > On Apr 20, 11:52 am, davido wrote: > > > Hello! > > > I´m a newbie in cakephp so long. My question is: which class does > > App::import() belongs to? > > It's the import() method of App class. See: > > http://api.cakephp.org/class/app > > The class is loaded by default. Calling the method like this means > that you're not using a specific instance of the class. > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > athttp://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
reuseable Code with cakePHP
Hello! I´m a newbie in cakephp so long. I have two controller that use the treehelper. On one it works and on the other it does not. Tree Helper: Ex: http://www.schwarzefrauen.at/sidebars (works) http://www.schwarzefrauen.at/tags (works not!) Basically my understandings are to customize cakephp framework for the need of the application. Basically I underlay the same problem everytime when I work with reuseable code like in the example above and in the implemantation of a news plugin. Plugin: Ex: http://www.schwarzefrauen.at/about (works) http://www.schwarzefrauen.at/news (works not!) 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
App::import()
Hello! I´m a newbie in cakephp so long. My question is: which class does App::import() belongs to? Thank you for any answers! 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: A Web-app for small business
Thank you! This works great for the first, and there are a few question on the implementation. For the first I want to change the active state by the parameters that are passed through my pages/display function but I don´t know where I must change the code. For the second I´m asking where I can find the values that are defined in the function beforeFilter and what effect they have. I do not understand what the function beforeFilter exactly does or where the data is stored in my views or layout, because in debug($this) is no variable menus either I can not debug $menus within my views or layout. So do I have not understood the concept, have´t I? Thanks On 30 Nov., 17:20, jburns wrote: > I wrote an article on this just last week; this might help: > > http://www.jeremy-burns.co.uk/2009/11/cakephp-dynamic-navigation-bars/ > > On Nov 30, 3:53 pm, davido wrote: > > > Hello, I´ll try to make a web app for asmallbusinessowners web > > presence. I found cakephp as the right tool for fast development. > > > Now I have wrote my model and controller classes and the views. In the > > layout I would like to switch the visability of the menu by a simple > > Callback function. > > > Am I right using the beforeFilter for passing active state to the view > > as in the example I found > > on,http://old.nabble.com/beforeFilter-on-app_controller-and-on-posts_con..., > > google? > > > Ex: > > > app_controller before filter: > > function beforeFilter() { > > $this->set('SiteRoot', '/bla/'); > > //default menu to nothing > > $this->set('MenuSelected', '0'); > > } > > > post_controller before filter > > function beforeFilter() { > > parent::beforeFilter(); > > $this->set('MenuSelected', '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
A Web-app for small business
Hello, I´ll try to make a web app for a small business owners web presence. I found cakephp as the right tool for fast development. Now I have wrote my model and controller classes and the views. In the layout I would like to switch the visability of the menu by a simple Callback function. Am I right using the beforeFilter for passing active state to the view as in the example I found on, http://old.nabble.com/beforeFilter-on-app_controller-and-on-posts_controller--td16543705.html, google? Ex: app_controller before filter: function beforeFilter() { $this->set('SiteRoot', '/bla/'); //default menu to nothing $this->set('MenuSelected', '0'); } post_controller before filter function beforeFilter() { parent::beforeFilter(); $this->set('MenuSelected', '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