Re: Problem with paths to files
Le mardi 11 septembre 2012 12:51:11 UTC+2, Mancho Murgan a écrit : Hi, Make sure the following line is commented in file app/Config/core.php the: //Configure::write('App.baseUrl', env('SCRIPT_NAME')); If is commented, make sure the Apache has enabled the rewrite module. I've got the same problem, but this core's line is commented... So maybe any other idea? This is my first cakePHP project, I've managed the mod_rewrite config correctly: my app/view/Page/home.ctp looks very nice with the default CSS. I've started the *blog tutorial*, and my two first view (index.php view.php) encountered this path problem Can someone explain why the header tag is not the same in app/view/Page/home.ctp and in app/view/Posts/index.php ? Thanx -- 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Problem with paths to files
Yes, put it in the webroot, img folder or anywhere else in the webroot, and before displaying sometimes you need to empty the cache from your browser to display it instantly. 2012/9/25 Maliko V malikovinc...@gmail.com Hello, the way I did it was to create the img folder in the app/webroot folder. Then regardless of where you insert the image i call the image using the img tag like this img src=/img/name_of_the_file / or you can use the image function by doing this : ?php echo $this-Html-image('name_of_the_file'); ? . Just make sure that your image is stored in app/webroot/img/ Hope this helps VM Sent from iPhone smartphone On 2012-09-24, at 2:16 PM, ShipSank sitc...@yahoo.com wrote: I am having a similar problem. I just created the '/img' folder but no matter what I put for the path in the view file (index.ctp), I cannot get the images to display. They just come out blank (and show the 'alt' text instead). Super frustrating! :) Any ideas? -- Like Us on FacekBook 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FacekBook 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- *Ivan Rimac*** mail: ivn...@gmail.com *tel: +385 95 555 99 66* *http://ivanrimac.com* -- Like Us on FacekBook 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Problem with paths to files
As for troubleshooting ideas just look at the source of your resulting page. What is the path to the image that the browser is being given? How does that match to where you have your actual image stored? PW On 25 Sep 2012, at 09:16, Ivan Rimac ivn...@gmail.com wrote: Yes, put it in the webroot, img folder or anywhere else in the webroot, and before displaying sometimes you need to empty the cache from your browser to display it instantly. 2012/9/25 Maliko V malikovinc...@gmail.com Hello, the way I did it was to create the img folder in the app/webroot folder. Then regardless of where you insert the image i call the image using the img tag like this img src=/img/name_of_the_file / or you can use the image function by doing this : ?php echo $this-Html-image('name_of_the_file'); ? . Just make sure that your image is stored in app/webroot/img/ Hope this helps VM Sent from iPhone smartphone On 2012-09-24, at 2:16 PM, ShipSank sitc...@yahoo.com wrote: I am having a similar problem. I just created the '/img' folder but no matter what I put for the path in the view file (index.ctp), I cannot get the images to display. They just come out blank (and show the 'alt' text instead). Super frustrating! :) Any ideas? -- Like Us on FacekBook 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Problem with paths to files
I am having a similar problem. I just created the '/img' folder but no matter what I put for the path in the view file (index.ctp), I cannot get the images to display. They just come out blank (and show the 'alt' text instead). Super frustrating! :) Any ideas? -- Like Us on FacekBook 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Problem with paths to files
Hello, the way I did it was to create the img folder in the app/webroot folder. Then regardless of where you insert the image i call the image using the img tag like this img src=/img/name_of_the_file / or you can use the image function by doing this : ?php echo $this-Html-image('name_of_the_file'); ? . Just make sure that your image is stored in app/webroot/img/ Hope this helps VM Sent from iPhone smartphone On 2012-09-24, at 2:16 PM, ShipSank sitc...@yahoo.com wrote: I am having a similar problem. I just created the '/img' folder but no matter what I put for the path in the view file (index.ctp), I cannot get the images to display. They just come out blank (and show the 'alt' text instead). Super frustrating! :) Any ideas? -- Like Us on FacekBook 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FacekBook 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Problem with paths to files
Hi, Make sure the following line is commented in file app/Config/core.php the: //Configure::write('App.baseUrl', env('SCRIPT_NAME')); If is commented, make sure the Apache has enabled the rewrite module. -- Murgan, Alexis Germán Desarrollador Diseñador Web: german.murgan.com.ar Email: ger...@murgan.com.ar MSN: ger...@murgan.com.ar Móvil: +5493424663813 -- 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. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: Problem with paths to files
Yes! It works! Thank you :) I have another problem. When I type *www.domain.com*, browser adds */app/ webroot* to URL - *www.domain.com**/app/webroot*,* *but I type *domain.com* (without www), shows only *domain.com*. Do you know how to solve it? Dne úterý, 11. září 2012 12:51:11 UTC+2 Mancho Murgan napsal(a): Hi, Make sure the following line is commented in file app/Config/core.php the: //Configure::write('App.baseUrl', env('SCRIPT_NAME')); If is commented, make sure the Apache has enabled the rewrite module. -- Murgan, Alexis Germán Desarrollador Diseñador Web: german.murgan.com.ar Email: ger...@murgan.com.ar javascript: MSN: ger...@murgan.com.ar javascript: Móvil: +5493424663813 -- 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. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: A problem with paths
Thanks, a lot, after some chats with the hosting people, they deleted the .htaccess files specified in the blog tutorial and almost everything is working now. I have another problem though, and this time it's related to including javascript files. I use echo $javascript-link('prototype'); to include Prototype in the templates. I've already tried with some other methods listed in the API docs. I guess this should add something like script src=/demoav/app/webroot/js/prototype.js/script to the page, but it doesn't. PHP just halts execution of the script and the page returned to the browser is 7 lines long -- from the doctype declaration to a css link made with $html-link(). If instead of the cake code I write the HTML script src= tag, it works OK. Can anybody help me with this? Thanks in advance. -Igor Geoff Ford wrote: This page works - http://www.escaparatetactil.es/demoav/index.php/regions/ So it seems that it is still trying to use mod_rewrite - make sure you did not upload the .htaccess files. Then double check your path settings in index.php - the css files etc. are not making it through the routing process. Geoff -- http://lemoncake.wordpress.com On Aug 18, 6:09 pm, ifcanduela [EMAIL PROTECTED] wrote: C'mon guys, anyone knows what could be happening here? -Igor --~--~-~--~~~---~--~~ 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: A problem with paths
Have you included the javascript helper in AppController? Geoff On 8/21/07, ifcanduela [EMAIL PROTECTED] wrote: Thanks, a lot, after some chats with the hosting people, they deleted the .htaccess files specified in the blog tutorial and almost everything is working now. I have another problem though, and this time it's related to including javascript files. I use echo $javascript-link('prototype'); to include Prototype in the templates. I've already tried with some other methods listed in the API docs. I guess this should add something like script src=/demoav/app/webroot/js/prototype.js/script to the page, but it doesn't. PHP just halts execution of the script and the page returned to the browser is 7 lines long -- from the doctype declaration to a css link made with $html-link(). If instead of the cake code I write the HTML script src= tag, it works OK. Can anybody help me with this? Thanks in advance. -Igor Geoff Ford wrote: This page works - http://www.escaparatetactil.es/demoav/index.php/regions/ So it seems that it is still trying to use mod_rewrite - make sure you did not upload the .htaccess files. Then double check your path settings in index.php - the css files etc. are not making it through the routing process. Geoff -- http://lemoncake.wordpress.com On Aug 18, 6:09 pm, ifcanduela [EMAIL PROTECTED] wrote: C'mon guys, anyone knows what could be happening here? -Igor -- http://lemoncake.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?hl=en -~--~~~~--~~--~--~---
Re: A problem with paths
C'mon guys, anyone knows what could be happening here? -Igor --~--~-~--~~~---~--~~ 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: A problem with paths
This page works - http://www.escaparatetactil.es/demoav/index.php/regions/ So it seems that it is still trying to use mod_rewrite - make sure you did not upload the .htaccess files. Then double check your path settings in index.php - the css files etc. are not making it through the routing process. Geoff -- http://lemoncake.wordpress.com On Aug 18, 6:09 pm, ifcanduela [EMAIL PROTECTED] wrote: C'mon guys, anyone knows what could be happening here? -Igor --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
A problem with paths
Hello there, I have developed a fairly simple application, and it works flawlessly... on my local server. When it has come the time to upload the files to the client's host, only the 'home' page is displayed, without CSS styling, and the links lead to 404s. When I try to reach another model/action page, the same error (404) appears. There's no option to enable mod_rewrite in the server or modify their htaccess files, so I've enabled Cake's own routing, and I guess this is giving problems. The thing is, in my local server, it al works, wit mod_rewrite or without. Could it be that I haven't FTP'd a hidden file or something? The app is hosted at http://www.escaparatetactil.es/demoav/ and I've setup a phpinfo() script (http://www.escaparatetactil.es/demoav/ phpinfo.php) for anyone to check. Although I've discarded a problem with Apache or MySQL, I'm no expert whatsoever, so all options are plausible. Thanks a lot for any help. -Igor F. Canduela --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---