debug = 0 -> Layout problem
Hi, After setting debug to 0 all pages are loaded without layout. Any ideas? Thanks --~--~-~--~~~---~--~~ 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 layout problem
Some one help me too. On Jan 27, 10:08 am, Mahesh Sutar wrote: > Hi All, > > I am very new to CakePHP, I used default layout which is under folder > views\layouts\ > > In once .ctp file I have used Ajax code. Which populates new table. > but that new table is overlapping on footer which is present in > default layout(default.ctp). > > Any body has solution to use Ajax layout. > > Thanks, > --Mahesh --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Ajax layout problem
Hi All, I am very new to CakePHP, I used default layout which is under folder views\layouts\ In once .ctp file I have used Ajax code. Which populates new table. but that new table is overlapping on footer which is present in default layout(default.ctp). Any body has solution to use Ajax layout. Thanks, --Mahesh --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
The CSS&Layout problem to a newbie of CAKEPHP.
Hello, i have a big problem for the first time to use the Cakephp(the newest version) I have edited the all files what the book.cakephp.org tell me to do. and the default page said that: "Your tmp directory is writable. The FileEngine is being used for caching. To change the config edit APP/config/core.php Your database configuration file is present. Cake is able to connect to the database. ." It seems that everything is ok, but i dont know why i cannot see any style--Just words ,words, and words! what's wrong with it? and it tell me that: Editing this Page To change the content of this page, edit: APP/views/pages/home.ctp. To change its layout, edit: APP/views/layouts/default.ctp. You can also add some CSS styles for your pages at: APP/webroot/css. but i can't find the home.ctp, default.ctp. why? And where is the default page's file? I can't find it in the whole fold-(Cakephp). I have this problem in my home PC,but it is OK with the PC in my company. The last question is: With my company PC, I built a blog as the manual shows, I can edit the CSS,but I dont know where should I change the Layout or the content in header and footer. Please help the newbie to Cakephp! Many thanks!!! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: The CSS&Layout problem to a newbie of CAKEPHP.
a note from me ... I had to shift my .htaccess file UP one level (so it's sitting outside the app dir) . RewriteEngine on RewriteRule^$app/webroot/[L] RewriteRule(.*) app/webroot/$1[L] then it was all sweet Cheers mr K PS: I'm running cake on my local Mac ... so this might be diff on my servers... On Jul 20, 2:47 am, Daniel Hofstetter <[EMAIL PROTECTED]> wrote: > Hi, > > [snipped] > > > It seems that everything is ok, but i dont know why i cannot see any > > style--Just words ,words, and words! > > > what's wrong with it? > > Probably a mod_rewrite issue, have a look > athttp://book.cakephp.org/view/333/a-note-on-mod_rewrite > > > and it tell me that: > > > Editing this Page > > To change the content of this page, edit: APP/views/pages/home.ctp. > > To change its layout, edit: APP/views/layouts/default.ctp. > > You can also add some CSS styles for your pages at: APP/webroot/css. > > > but i can't find the home.ctp, default.ctp. why? > > You can copy those files from cake/libs/view/pages/ resp. cake/libs/ > view/layouts. > > > And where is the default page's file? I can't find it in the whole > > fold-(Cakephp). > > > I have this problem in my home PC,but it is OK with the PC in my > > company. > > > The last question is: > > > With my company PC, I built a blog as the manual shows, I can edit the > > CSS,but I dont know where should I change the Layout or the content in > > header and footer. > > app/views/layouts/default.ctp (after you copied it from cake/libs/view/ > layouts) > > Hope that helps! > > -- > Daniel Hofstetterhttp://cakebaker.42dh.com --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: The CSS&Layout problem to a newbie of CAKEPHP.
You can create the home.ctp in the pages directory of the view directory, then create the default.ctp in your layout folder. The default page is your overall layout and the home page is your starting template. On Jul 19, 10:09 am, "Aquarius.Chifi" <[EMAIL PROTECTED]> wrote: > Can anybody 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: The CSS&Layout problem to a newbie of CAKEPHP.
Hi, [snipped] > It seems that everything is ok, but i dont know why i cannot see any > style--Just words ,words, and words! > > what's wrong with it? Probably a mod_rewrite issue, have a look at http://book.cakephp.org/view/333/a-note-on-mod_rewrite > and it tell me that: > > Editing this Page > To change the content of this page, edit: APP/views/pages/home.ctp. > To change its layout, edit: APP/views/layouts/default.ctp. > You can also add some CSS styles for your pages at: APP/webroot/css. > > but i can't find the home.ctp, default.ctp. why? You can copy those files from cake/libs/view/pages/ resp. cake/libs/ view/layouts. > And where is the default page's file? I can't find it in the whole > fold-(Cakephp). > > I have this problem in my home PC,but it is OK with the PC in my > company. > > The last question is: > > With my company PC, I built a blog as the manual shows, I can edit the > CSS,but I dont know where should I change the Layout or the content in > header and footer. app/views/layouts/default.ctp (after you copied it from cake/libs/view/ layouts) Hope that helps! -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: The CSS&Layout problem to a newbie of CAKEPHP.
The reason why you can't find the default layout, is that it doesn't exist until your create it. By default, Cake uses the layout present in the cake Core installation. If you put CSS stylesheets into your /app/webroot/css folder, you can put the following code into any view or layout to link to them: css('name_of_stylesheet'); ?> Hope this helps a little. -- In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Sat, Jul 19, 2008 at 09:09, Aquarius.Chifi <[EMAIL PROTECTED]> wrote: > > Can anybody 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: The CSS&Layout problem to a newbie of CAKEPHP.
Can anybody 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Layout problem
Put in your layout: On Oct 10, 4:14 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm using cake php for developing one website. I have problem in using > layout to display. > In layouts directory i have one test.thtml file, in that i'm just > echoing the text, for testing. > echo "hai" ; > In controller i'm calling this layout as > $this->layout = 'test' ; > > Here this layout is over writing my controller view pages.That is > only this text is displaying, but other my controller html is not > displaying. To solve this what should i need to do? > > Any help would be greatly appreciated. > > Thanks & Regards, > Sahal. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Layout problem
Hello all, I'm using cake php for developing one website. I have problem in using layout to display. In layouts directory i have one test.thtml file, in that i'm just echoing the text, for testing. echo "hai" ; In controller i'm calling this layout as $this->layout = 'test' ; Here this layout is over writing my controller view pages.That is only this text is displaying, but other my controller html is not displaying. To solve this what should i need to do? Any help would be greatly appreciated. Thanks & Regards, Sahal. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Weird missing layout problem
Fixed it. For future searchers, I replaced everything in the /Cake/ directory with a freshly downloaded version and it worked. I have no idea how it got corrupted in the first place, but at least it's now working! Ian On Jul 12, 2:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > > First off, this is not the dreaded newbie "what's a layout" problem, > I'm on my 3rd Cake project at the moment and have had a great > experience until now! > > I was editing a function in one of my controllers, all was going well > and then I clicked onto a page served up by a different controller and > suddenly get a "Layout file cannot be found" error, but the space > where it says what layout file it is looking for is blank! I have not > removed any layout files since it was last working, all I have done is > a bit of coding on one of the controllers (ironically the only one > that still works!) > > Has anyone else experienced anything like this? I now have reverted to > a previous version (that was definately working) but I still get > exactly the same problem with that. This suggests to me that it's an > Apache or htaccess issue, but again I haven't touched either since it > was last working and I'm developing on a non networked standalone > machine, so I have complete control. > > Any suggestions on what might be going wrong? Or anywhere I can look > for clues? The Apache log file hasn't thrown anything up. > > Any help would be hugely appreciated! > > Ian --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Weird missing layout problem
Hi First off, this is not the dreaded newbie "what's a layout" problem, I'm on my 3rd Cake project at the moment and have had a great experience until now! I was editing a function in one of my controllers, all was going well and then I clicked onto a page served up by a different controller and suddenly get a "Layout file cannot be found" error, but the space where it says what layout file it is looking for is blank! I have not removed any layout files since it was last working, all I have done is a bit of coding on one of the controllers (ironically the only one that still works!) Has anyone else experienced anything like this? I now have reverted to a previous version (that was definately working) but I still get exactly the same problem with that. This suggests to me that it's an Apache or htaccess issue, but again I haven't touched either since it was last working and I'm developing on a non networked standalone machine, so I have complete control. Any suggestions on what might be going wrong? Or anywhere I can look for clues? The Apache log file hasn't thrown anything up. Any help would be hugely appreciated! Ian --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Layout Problem
On 2/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > $helpers doesn't work for java script function in layouts files but it > work on views index files. Even simple alert functions are not Please do not start new threads for the same problem - it make answering and following difficult for everyone. Apart from what I already wrote in the other thread (with a code sample) you can do a couple of things. #1 See if the generated html has any link to the js file - perhaps it is there but wrong. #2 Install firebug extension and see what the console error messages say. HTH Tarique -- = PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org = --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Layout Problem
$helpers doesn't work for java script function in layouts files but it work on views index files. Even simple alert functions are not responding in layouts files. I need the script enabled in the layouts. What could be the problem? What I want to know is how to include java script file on layouts folder. Can u send me some sample coding so that it may be easy for me to grasp. views/index.thtml the index.thtml file javascript is working fine. But viiews/layout/index.thtml>inthis page javascript is not working but the home page this two files will be visible. we are calling the layout/index.thtml file is setLayout('index'); ?> Please advice me Thanks and 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?hl=en -~--~~~~--~~--~--~---
Re: Flash Movie in Layout Problem
Thanks! That was almost perfect. Here's what worked: $this->base.'/img/banner.swf'; That extra slash at the beginning threw things off. Thanks, gwoo! You're awesome. hydra12 --~--~-~--~~~---~--~~ 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: Flash Movie in Layout Problem
'/'.$this->base.'/img/flashmove.swf'; --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Flash Movie in Layout Problem
I'm trying to put a flash movie into my layout. I've put my layout code into views/layouts, and my movie is in webroot/img. Here's the code in my layout: http://www.macromedia.com/go/getflashplayer"; /> The problem seems to be the path to my movie - how can I set the path to img/banner.swf so that it will work regardless of which controller/view I am using? For images, css, etc, I would use a helper. Thanks in advance! hydra12 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---