Internal server error on my browser

2011-04-16 Thread varai
Hi, I'm getting Internal Server Error on my browser when i try to access http://localhost/otherfolders. My localhost is only working when i try to access http://localhost/cakephp or http://localhost/merry_flowers (which is also a cakephp project). Does anyone know on what is the problem? thank

Re: Internal server error on my browser

2011-04-16 Thread Ryan Schmidt
On Apr 16, 2011, at 02:57, varai wrote: I'm getting Internal Server Error on my browser when i try to access http://localhost/otherfolders. My localhost is only working when i try to access http://localhost/cakephp or http://localhost/merry_flowers (which is also a cakephp project). Does

Re: what is $this-Html-meta('icon') and AppHelper not working

2011-04-16 Thread Ryan Schmidt
On Apr 15, 2011, at 10:42, varai wrote: Can someone tell me what is the use of? $this-Html-meta('icon'); Surely you could try it out yourself to discover what it does? :) You could also read the documentation: http://book.cakephp.org/view/1438/meta Putting this command:

Tr.lời: Re: Can't CakeLog use in CLI ?

2011-04-16 Thread Điển vũ
I can't use CakeLog::write('log','test'); in Shell -- 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

Tr.lời: Re: Can't CakeLog use in CLI ?

2011-04-16 Thread Điển vũ
I change use Ubuntu OS, CakeLog write direct in Terminal. May it can't write in Windows's cmd ? -- 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

Tr.lời: Re: Can't CakeLog use in CLI ?

2011-04-16 Thread Điển vũ
I change use Ubuntu OS, CakeLog write direct in Terminal. May it can't write in Windows's cmd ? Edit: I use as this: CakeLog::write('log',print_r($log)); . It print direct in Ubuntu's Terminal but sure it isn't in Windows's cmd. -- Our newest site for the community: CakePHP Video Tutorials

Looking for a cart

2011-04-16 Thread Alejo
Hi everybody I´m looking for a shopping cart (a catalogue is ok) but I can´t use this: https://github.com/mfriesen/kaching-php It looks very good, but I can´t try in my pc. I need some simple cart or shopping cart. Can you help me with some other plugin or other app in Cake? Thank you very

$this-html-image() vulnerabilities

2011-04-16 Thread goluhaque
If somebody submits a link to a javascript script rather than a pic/image, will the function($this-html-image() ) block it automatically, or do we have to build our own checker for that? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

RE: $this-html-image() vulnerabilities

2011-04-16 Thread Krissy Masters
As with anything from any user it should never be trusted. I would say whatever anyone submits you validate so if they are submitting a link, so submit an image I am guessing its being uploaded so make sure its an image thru validation of the field / data Is that what you mean? K

PHPIDS, CakePHP And Prepared Statements

2011-04-16 Thread goluhaque
Is CakePHP compatible with PHPIDS? If yes, where should I put the * phpids-0.x/lib* folder? Also, are SQL functions of CakePHP prepared statements? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: RE: $this-html-image() vulnerabilities

2011-04-16 Thread goluhaque
No, the image is not to be uploaded. Rather, it is to be linked. I mean, say the image is hosted at some other website at say, http://url.com/image/cheese.jpg . This link will be submitted but the user and will be stored in the db. On the profile page(assume it's a sig or an avatar), it is

Re: what is $this-Html-meta('icon') and AppHelper not working

2011-04-16 Thread AD7six
On Apr 15, 5:42 pm, varai vaanip...@gmail.com wrote: Hi, Can someone tell me what is the use of?                  $this-Html-meta('icon'); It magically converts you into an iconic developer. Referring to the cakephp cookbook, page 274, in order to get rid of the many ? ? and many echo()

Model associations and combobox.

2011-04-16 Thread Uriel Juliatti
Hey everybody I'd like to know how to display a list of Manufacturers (associated with Cars) in a combobox when I create cars. My Mysql query returns it: SELECT `Carro`.`id`, `Carro`.`fabricante_id`, `Carro`.`nome`, `Carro`.`modelo`, `Carro`.`blindado`, `Carro`.`cor`, `Carro`.`ano`,

Re: Cake não exibe minha view.

2011-04-16 Thread Uriel Juliatti
Forget about this post, fellas. On Apr 15, 3:36 am, Uriel Juliatti uriel.juliattiva...@gmail.com wrote: Fala pessoal, beleza? Estou iniciando com o Cake e estou passando por dificuldades. Instalei, tudo ocorre perfeitamente, mas na hora que construo meu primeiro teste com MVC ele dá erro.

How can I run cakephp in IIS server (windows)

2011-04-16 Thread Brij
Hi All, I just setup my window IIS server and I wanna install cakephp on it. Currenty it is not running as you know cake uses mod_wewrite. Help me. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Logging out from Admin/ that should point to App/Users Controller

2011-04-16 Thread Sergio
Thanks for the response, although I have to say that it help only partially. Maybe my fault since I forgot to mention also that I'm using the ACL Plugin and that the URL in the admin reads: [www.example.com/admin/acl/acos] at the time I attempt to logout. BTW, adding the ['router'='0'] takes

Re: Cake não exibe minha view.

2011-04-16 Thread Uriel Juliatti Valle
Fala Lipe, beleza sim! Eu resolvi, era no httpd.conf, agora funciona perfeitamente. Estou com outro problema referente a Models. Se vocês puderem me ajudar, no Rails eu sei resolver perfeitamente com a sintaxe do Ruby, minha lógia é perfeita. O problema é na hora de jogar na combobox. Fiz toda

Re: How can I run cakephp in IIS server (windows)

2011-04-16 Thread AD7six
On Apr 15, 6:03 pm, Brij brijbhushan@gmail.com wrote: Hi All, I just setup my window IIS server and I wanna install cakephp on it. Currenty it is not running as you know cake uses mod_wewrite. Help me. Sure - did you try turning it on and off? -- Our newest site for the community:

Re: Cake não exibe minha view.

2011-04-16 Thread AD7six
Please keep to English on this group. http://groups.google.com/group/cakephp-pt -- 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

Re: $this-html-image() vulnerabilities

2011-04-16 Thread thatsgreat2345
No it does not, if you look at the html helper in the cake library it does no validation for this. Primarily it assumes you already have done the proper checking when saving the url into the database and confirmed that it is an image The proper location for this would be to write your own

Re: $this-html-image() vulnerabilities

2011-04-16 Thread goluhaque
Thanks. -- 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

Re: nocache breaks when used in loop

2011-04-16 Thread cricket
On Fri, Apr 15, 2011 at 3:37 PM, Brian Sweeney eclecticg...@gmail.com wrote: On Fri, Apr 15, 2011 at 2:47 PM, cricket zijn.digi...@gmail.com wrote: What the heck is this?! echo ?php $product_id = $product_id; ?; ? Oh, and I just wanted to say that I was pretty sure this little snippet would

Re: Logging out from Admin/ that should point to App/Users Controller

2011-04-16 Thread cricket
On Fri, Apr 15, 2011 at 1:48 PM, Sergio sergc...@gmail.com wrote: Thanks for the response, although I have to say that it help only partially. Maybe my fault since I forgot to mention also that I'm using the ACL Plugin and that the URL in the admin reads:  [www.example.com/admin/acl/acos] at

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread cricket
On Fri, Apr 15, 2011 at 8:07 PM, Carlos Eduardo Sotelo Pinto carlos.sotelo.pi...@gmail.com wrote: Hi people. I have read this article and thinking on a new challenge ( if it coudl be called a challenge ). What about having a cakephp installed on a server.. like a dedicated server, optimized

Re: PHPIDS, CakePHP And Prepared Statements

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 11:01 AM, goluhaque afzal...@gmail.com wrote: Is CakePHP compatible with PHPIDS? If yes, where should I put the  phpids-0.x/lib folder? Probably. Use App::import('vendor', '...'); Not sure what to put for the 2nd param as I'm unfamiliar with PHPIDS. Should be the class

Re: Model associations and combobox.

2011-04-16 Thread cricket
On Fri, Apr 15, 2011 at 10:45 AM, Uriel Juliatti uriel.juliattiva...@gmail.com wrote: Hey everybody I'd like to know how to display a list of Manufacturers (associated with Cars) in a combobox when I create cars. My Mysql query returns it: SELECT `Carro`.`id`, `Carro`.`fabricante_id`,

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread Carlos Eduardo Sotelo Pinto
Thanks Cricket Well that is not the point or target that I am looking for, I am looking for share the complete app, and having diferents webroot, I mean shareing the app and having one approot foreach domain with its own database. I am think on a server with a cakelib and app installed, and the

Re: Model associations and combobox.

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 2:34 PM, cricket zijn.digi...@gmail.com wrote: public function add() {        if (!empty($this-data))        {                // attempt to save        }        $this-set(                'fabricantes',                $this-Carro-Fabricante-find('list')        );

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 2:37 PM, Carlos Eduardo Sotelo Pinto carlos.sotelo.pi...@gmail.com wrote: Thanks Cricket Well that is not the point or target that I am looking for, I am looking for share the complete app, and having diferents webroot, I mean shareing the app and having one approot

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 2:40 PM, cricket zijn.digi...@gmail.com wrote: On Sat, Apr 16, 2011 at 2:37 PM, Carlos Eduardo Sotelo Pinto carlos.sotelo.pi...@gmail.com wrote: Thanks Cricket Well that is not the point or target that I am looking for, I am looking for share the complete app, and

Re: How can I run cakephp in IIS server (windows)

2011-04-16 Thread ShadowCross
The Cookbook has a section on setting up the URL rewrites on IIS for CakePHP: http://book.cakephp.org/view/1636/URL-Rewrites-on-IIS7-Windows-hosts On Apr 16, 9:13 am, AD7six andydawso...@gmail.com wrote: On Apr 15, 6:03 pm, Brij brijbhushan@gmail.com wrote: Hi All, I just setup my

Re: RE: $this-html-image() vulnerabilities

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 11:06 AM, goluhaque afzal...@gmail.com wrote: No, the image is not to be uploaded. Rather, it is to be linked. I mean, say the image is hosted at some other website at say, http://url.com/image/cheese.jpg . This link will be submitted but the user and will be stored in

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread Vitor Pacheco
you can configure additional folders for your classes in bootstrap.php http://book.cakephp.org/view/916/Additional-Class-Paths 2011/4/16 cricket zijn.digi...@gmail.com On Sat, Apr 16, 2011 at 2:40 PM, cricket zijn.digi...@gmail.com wrote: On Sat, Apr 16, 2011 at 2:37 PM, Carlos Eduardo Sotelo

Anyway to change the default.ctp to another header.ctp ?

2011-04-16 Thread Chuck
I know this might sound kinda noob. As I observed, cakephp uses view/ layout/default.ctp as the header and footer. If I click go to another page, is there anyway I could use another header instead of default.ctp? For example, say I want to change the header completely after logging in. Anyone

RE: Anyway to change the default.ctp to another header.ctp ?

2011-04-16 Thread Krissy Masters
You could have an if or switch block in the layout to echo an element if($logged_in){ echo $this-Element('private_header, array()); //1 element header } else { //other header element echo $this-Element('public_header, array()); } K -Original Message- From: cake-php@googlegroups.com

Any Solution to Order a generatetreelist output

2011-04-16 Thread Mr.Jayesh
Hi Mates, First off all, I would like to thank this group for being of great support. Guys, as in my project I was trying to display category list inside select box. I am using Tree List, so what I have in my table is: | id | category | parent_id | Currently I am using generatetreelist()

Re: Any Solution to Order a generatetreelist output

2011-04-16 Thread Tilen Majerle
if you are using Tree Behaviour the you need to use lft and rght field and it will create an array based on this values...:) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/4/16 Mr.Jayesh jayeshach...@gmail.com Hi Mates, First off all, I would like to thank this group for being of

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 3:28 PM, Vitor Pacheco vitorpc...@gmail.com wrote: you can configure additional folders for your classes in bootstrap.php http://book.cakephp.org/view/916/Additional-Class-Paths Good point. That would be better. Whether the original idea is a good one, though ... --

RE: Cake PHP as Multisite / Multidomain

2011-04-16 Thread Krissy Masters
If I understand the idea correct, it makes sense to me. Example I build a real-estate app for 1 agent, next week 2nd agent wants same thing just different look, I could then have 100 agents all having their own site (conditionally all sites are on 1 server) which is basically the 1 app serving up

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread Yuka Poppe
The location of document root (app/webroot/ in CakePHP land) is variable. One can put the entire app in a directory accessible by each vhost/webserver/what-have-you, and also make sure its somewhere that can be seen by php. Have the webserver serve up any request that isnt a static file by the

Re: Any Solution to Order a generatetreelist output

2011-04-16 Thread Yuka Poppe
Hi Jayesh, In the case of a Tree behaviour, the algorithm used to generate the tree is based on ordering, its not very trivial to use ordering on the regular sense on the tree, and maintain its structure at the same time. CakePHP's specific implemtation of this algorithm aside, one would

Re: How can I run cakephp in IIS server (windows)

2011-04-16 Thread Yuka Poppe
If you want pretty urls (mod_rewrite), take a look at and install isapi_rewrite, its not opensource nor freeware, but i think theres a 'light' version around, but im not sure, it was already installed at our windows based -- ugh -- hosting provider. The later versions are supposed to be compatible

Re: Looking for a cart

2011-04-16 Thread Ryan Schmidt
On Apr 16, 2011, at 07:47, Alejo wrote: I´m looking for a shopping cart (a catalogue is ok) but I can´t use this: https://github.com/mfriesen/kaching-php It looks very good, but I can´t try in my pc. Why not? Help us help you: tell us what you tried, why it didn't work, etc. -- Our

Re: Internal server error on my browser

2011-04-16 Thread Ryan Schmidt
On Apr 16, 2011, at 11:24, varai wrote: On Apr 16, 4:20 pm, Ryan Schmidt wrote: On Apr 16, 2011, at 02:57, varai wrote: I'm getting InternalServerError on my browser when i try to access http://localhost/otherfolders. My localhost is only working when i try to accesshttp://localhost/cakephp

Re: what is $this-Html-meta('icon') and AppHelper not working

2011-04-16 Thread Ryan Schmidt
On Apr 16, 2011, at 11:15, varai wrote: Hi, thanks a lot for you reply. Yes, I did read the cakephp cookbook and tried $this-Html- meta('icon') in IE-8. I also didn't understand what favicon was. Now, after reading ur reply, i tried it out in Mozilla Firefox and I saw the favicon icon.

Re: Internal server error on my browser

2011-04-16 Thread Yuka Poppe
On Sun, Apr 17, 2011 at 2:04 AM, Ryan Schmidt google-2...@ryandesign.com wrote: On Apr 16, 2011, at 11:24, varai wrote: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug'

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 7:02 PM, Yuka Poppe y...@xs4all.nl wrote: The location of document root (app/webroot/ in CakePHP land) is variable. One can put the entire app in a directory accessible by each vhost/webserver/what-have-you, and also make sure its somewhere that can be seen by php.

Re: URL Case

2011-04-16 Thread Ryan Schmidt
On Apr 15, 2011, at 08:57, AD7six wrote: On Apr 15, 9:25 am, Ryan Schmidt google-2...@ryandesign.com wrote: On Apr 14, 2011, at 14:49, stas kim wrote: This might help http://www.pseudocoder.com/Super_Awesome_Advanced_CakePHP_Tips.pdf search 'Case Insensitive' I haven't read the rest

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread Yuka Poppe
On Sun, Apr 17, 2011 at 3:38 AM, cricket zijn.digi...@gmail.com wrote: What you and Krissy said makes sense, and is what I had in mind. But it seems to me that there would be issues surrounding AppController ad sessions. Maybe not. I haven't put too much thought into it. Hmm, I hadn't even

Re: Cake não exibe minha view.

2011-04-16 Thread Uriel Juliatti Valle
Sorry about that. I was wondering this forum was PT-br. Since I realized that it was not I have said to forget about this post. My apollogies, Uriel. Em 16 de abril de 2011 13:14, AD7six andydawso...@gmail.com escreveu: Please keep to English on this group.

Enums and Select tags (newb warning)

2011-04-16 Thread turbo2ltr
So I'm brand new to cakePHP, but I consider myself a pretty decent php developer. I'm trying to give it time to soak in, but at this point it would have been faster to write php. Hopefully someone can shove me in the right direction as I'd really like to learn this framework. I got my start by

Re: Cake PHP as Multisite / Multidomain

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 10:32 PM, Yuka Poppe y...@xs4all.nl wrote: Yep, you're absolutely right about automation, that wasnt a very solid point. Symlinks are nasty though -- if ony from your customers perspective -- they dont understand what it is and how it works. You cant serve those things

saving data from sortable ul li

2011-04-16 Thread Nic
i have a ul with js-sortable. the li's have id to save. how do i submit this data to the controller? am i going about this the wrong way? any tips considering it's nested ul's? -- View this message in context:

Re: Enums and Select tags (newb warning)

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 5:34 PM, turbo2ltr turbo2...@gmail.com wrote: So I'm brand new to cakePHP, but I consider myself a pretty decent php developer.  I'm trying to give it time to soak in, but at this point it would have been faster to write php.  Hopefully someone can shove me in the right

Re: Enums and Select tags (newb warning)

2011-04-16 Thread Sergio
I'm new to baking too … I believe you need a couple of lines like: $part_types = $this-Part-PartType-find('list'); $this-set(compact('part_types')); At the end of your baked Edit and Add methods. Hope that helps, cheers -- Our newest site for the community:

Re: saving data from sortable ul li

2011-04-16 Thread cricket
On Sat, Apr 16, 2011 at 11:45 PM, Nic crustysn...@gmail.com wrote: i have a ul with js-sortable. the li's have id to save. Sortable in what sense? Is this a JSHelper thing? I don't use it myself but I do use jquery.ui.sortable. Here's the synopsis: http://pastebin.com/mAppQ789 how do i submit

Re: saving data from sortable ul li

2011-04-16 Thread Nic
trying to use jshelper. so.. ?php $this-Js-get('sortlist')-sortable(); ? lets me move the lis all around but how do i save that? with the other form data on the page? trying to do it as cake-like as possible. -- View this message in context:

Re: Any Solution to Order a generatetreelist output

2011-04-16 Thread Nic
like stated above, you need 'lft' and 'rght' fields in your table. check out this: http://en.wikipedia.org/wiki/Nested_set_model nested set model: wikipedia and you can figure out what to populate your fields with to start off. -- View this message in context: