Re: can i cache descripe query ?

2008-10-26 Thread Adrianifero
Can you post documentation?? This is a popular one nowadays for people on the group.. On Oct 12, 7:11 pm, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: Can you read the documentation ? On Sun, Oct 12, 2008 at 7:37 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: can i cache it ? Nr      

Dynamic Routing

2008-10-26 Thread deedod
What's the best way to go about setting up dynamic routing so that I can redirect all my 'missing controller' errors to another defined controller to perform operations on? I basically want any error page to filter through the pages controller (or any other controller I choose) so I can check

Re: can i cache descripe query ?

2008-10-26 Thread AD7six
On Oct 26, 7:03 am, Adrianifero [EMAIL PROTECTED] wrote: Can you post documentation??  This is a popular one nowadays for people on the group.. Be your own best friend: http://groups.google.com/group/cake-php/search?group=cake-phpq=%22describe+query%22qt_g=Search+this+group

Re: Filter HABTM associations

2008-10-26 Thread AD7six
On Oct 26, 1:45 am, lazyeye [EMAIL PROTECTED] wrote: Here is my table setup: posts id name ... tags id parent_id name ... posts_tags id post_id tag_id I want to be able to filter posts by their associated parent tag. So for example I want to be able to request all posts with

Re: Model-cacheQueries should clear cache after updates.

2008-10-26 Thread AD7six
On Oct 24, 11:17 pm, Mathew [EMAIL PROTECTED] wrote: Hi, I am thinking that there should be an improvement in Cake so that Model caches are cleared when ever an update or insert is performed. Anyone see any problems with that? Probably. what cache are you talking about.

Re: error message on select box validation

2008-10-26 Thread ilozka
Don't use $form-select, use $form-input with type=select: echo $form-input('answer', array('type' = 'select', 'options' = array('0'='No', '1' = 'Yes'))); On Oct 20, 4:35 pm, clrockwell [EMAIL PROTECTED] wrote: Thank you David, I was hoping to avoid that and simply thought I was doing

Re: How to use Components in Views?

2008-10-26 Thread hanibaal
you practically would be violating the MVC design pattern why don't use simply assign the value in the controller e.g. $this-set('status', $component-settings['status']) when then you can access the $status in the view. --~--~-~--~~~---~--~~ You received this

Re: Resetting Lost Passwords

2008-10-26 Thread [EMAIL PROTECTED]
Unfortunately your post got me thinking (after I had replied). My component is utter garbage, sorry. When I looked at it, I saw that all it was, really, was a wrapper to the Ticket model. I moved all code into the model yesterday and I have the same functionality without a component. The reason

Building an online shop in CakePhp

2008-10-26 Thread Marcus Silva
Hi guys, I hope that some of you may be able to help me with this. I am trying to build an online shopping application in Cakephp to be used as a module for a bigger application. I was just wondering if any of you would have any recommendation as to how I could approach this and the sort of

Re: A case study of a real-world migration to CakePHP 1.2

2008-10-26 Thread [EMAIL PROTECTED]
Thanks for your suggestions. I will flesh out the parts about converting configurations and the form/html changes. I will also try to look at the other things suggested... validation is next on my list of things to look at. Something I left out of the original application to a large extent. The

Re: Model-cacheQueries should clear cache after updates.

2008-10-26 Thread Mathew
The caching that is controlled by the AppModel-cacheQueries setting. If you perform a find, and then update or insert records, and perform the same find again. You get the old outdated results. I think all the cached queries for a model should be cleared if the model is updated.

Re: Simple Addition to Time Helper

2008-10-26 Thread rgreenphotodesign
D'OH! I knew there was something simple I wasn't seeing! Thanks for sharing! On Oct 24, 4:12 pm, teknoid [EMAIL PROTECTED] wrote: $time-format(); handles all that quite nicely On Oct 23, 1:10 pm, rgreenphotodesign [EMAIL PROTECTED] wrote: Forgive me if I've duplicated something that has

Reset Auto Increment of SQL database command in Cakephp

2008-10-26 Thread mario
Hello Everyone, I have a problem with the Auto Increment functionality of my SQL Server (MySQL). Every time I delete a record of a specific table, the reference for my auto increment still stays at the id of the deleted record. Shouldn't it suppose to move right after the largest id of the

concatenation in find('list')

2008-10-26 Thread mario
Hi guys, I have this following code snippet from my controller: $salespeople = $this-Campaign-Salesperson-find('list', array('order' = 'Salesperson.firstname ASC', 'fields' = array('Salesperson.id',

Re: css menu helper mouseover broken

2008-10-26 Thread rogwei
Did you notice that it also happens in Opera, which from what I can tell is somewhat rigorous when it comes to starndards compliance. On Oct 25, 4:15 pm, Dardo Sordi Bogado [EMAIL PROTECTED] wrote: It's a well known IE rendering bug (also the solution is well known), just google it... On

Re: css menu helper mouseover broken

2008-10-26 Thread rogwei
Here is what I get when I google it -- which result should I look at? # Information technology - Wikipedia, the free encyclopedia This article includes a list of references or external links, but its sources remain unclear because it lacks inline citations. ...

Re: css menu helper mouseover broken

2008-10-26 Thread rogwei
Adam, thanks for your suggestion. Just to be clear, this code is in your ctp/html? And you are defining 'IE' somewhere, or is that pseudo- code? Also, as I said in the problem statement, this happens in Opera, too. On Oct 25, 10:14 am, Adam Royle [EMAIL PROTECTED] wrote: I workaround this

Re: Set::extract issue - array must start with [0] index

2008-10-26 Thread francky06l
I have noticed this to. Forget to post a ticket for enhancements, my solution for now was to re-index the array. On Oct 25, 7:33 pm, senser [EMAIL PROTECTED] wrote: Hello, I have problem using Set::extract class. Here is an example array $test: Array ( [3181] = Array (

user name on default.ctp

2008-10-26 Thread carlos ferrandis
Haya everybody. I am kind of new on cake. I managed to put auth. to work on my project but now I am trying to show the user name in the default.ctp. I created a variable like this $nomeUsuarioLogado = $this-Auth- user('name'); in my appController but I cannot see the variable in my default.ctp.

Re: user name on default.ctp

2008-10-26 Thread carlos ferrandis
btw, I've done that on my appcontroller echo div id='dataesaudacao'; echo $this-Auth-user('name'); echo /div; and it works. But, I don't know why I don't think is the correct approach. thanks for any help carlos --~--~-~--~~~---~--~~ You

Re: File Download Problem

2008-10-26 Thread Smelly_Eddie
I just discovered that the default value on mysql server is 1MB. You can increase the value by adding the following lines to /etc/my.cnf. [mysqld] max_allowed_packet=8M On Oct 23, 1:49 pm, Smelly_Eddie [EMAIL PROTECTED] wrote: I know your uploading to MySQL, but it might be the php engine that

Re: Dynamic Routing

2008-10-26 Thread majna
You should just r3ad manual. It is all there! http://book.cakephp.org/ On Oct 26, 7:18 am, deedod [EMAIL PROTECTED] wrote: What's the best way to go about setting up dynamic routing so that I can redirect all my 'missing controller' errors to another defined controller to perform operations

Re: Building an online shop in CakePhp

2008-10-26 Thread keymaster
Have a look at the bakesale project on cakeforge. Also, just be aware that phpshop is being re-developed on cakephp. On Oct 26, 2:27 pm, Marcus Silva [EMAIL PROTECTED] wrote: Hi guys, I hope that some of you may be able to help me with this. I am trying to build an online shopping

BakeSale ... website gone?

2008-10-26 Thread Brenda
I'm starting to explore some e-commerce apps to use with Cake. Bakesale is frequently mentioned, but it seems their website has disappeared, http://www.bakesalehq.com. Do you think that is temporary, or is BakeSale going away? Would you consider BakeSale a robust project that you could count on

Re: css menu helper mouseover broken

2008-10-26 Thread Adam Royle
Yes, chuck it in your layout. Search for ie conditional stylesheet and you'll see reference to my code above. When Opera gains marketshare I'll give two hoots. On Oct 27, 4:02 am, rogwei [EMAIL PROTECTED] wrote: Adam, thanks for your suggestion. Just to be clear, this code is in your ctp/html?

Re: not understanding simple HABTM save/delete

2008-10-26 Thread RyOnLife
After hours and hours of frustration, I've figured it out. It wasn't fun, but maybe not having my questions answered makes me a better programmer. For future reference, it's actually pretty simple. I started with a new app with my existing models and by baking new controllers/views I was able to

Re: BakeSale ... website gone?

2008-10-26 Thread cyberscorp
Hello, Take a look at http://cakeforge.org/ On Oct 26, 9:35 pm, Brenda [EMAIL PROTECTED] wrote: I'm starting to explore some e-commerce apps to use with Cake. Bakesale is frequently mentioned, but it seems their website has disappeared,http://www.bakesalehq.com. Do you think that is

Re: BakeSale ... website gone?

2008-10-26 Thread gravyface
On Oct 26, 9:35 pm, Brenda [EMAIL PROTECTED] wrote: I'm starting to explore some e-commerce apps to use with Cake. Bakesale is frequently mentioned, but it seems their website has disappeared,http://www.bakesalehq.com. Do you think that is temporary, or is BakeSale going away? PHPShop uses

Re: BakeSale ... website gone?

2008-10-26 Thread Matti Putkonen
It is temporary. Small problem with the hsting name renewal. On 26 loka, 21:35, Brenda [EMAIL PROTECTED] wrote: I'm starting to explore some e-commerce apps to use with Cake. Bakesale is frequently mentioned, but it seems their website has disappeared,http://www.bakesalehq.com. Do you think

Does Cake issue a HTTP 404 status code for missing pages.

2008-10-26 Thread Mathew
Hi, When Cake produces the 404 error page for missing pages. Does it send a http/1.1 404 Not Found response code or does it send a http/1.1 200 OK response code? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

CakePHP conference in Tokyo 2008 - report

2008-10-26 Thread sdozono
Hello, CakePHP users. Last Satureday, we had a CakePHP conference in Tokyo, Japan. (In Japan.) This was a fourth CakePHP study meeting (in Japanese language). More than 140 + (at ustream 70) people attended. Conference page: http://conference.cakephp.jp Photos:

Re: BakeSale ... website gone?

2008-10-26 Thread Brenda
Thank you, all. I will look at phpShop as well. --~--~-~--~~~---~--~~ 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

Re: Does Cake issue a HTTP 404 status code for missing pages.

2008-10-26 Thread Mathew
Great, thanks. I've seen some websites issue a 200 for missing pages, but say 404 in the HTML text. So I thought I would just check if Cake was working correctly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Model design question

2008-10-26 Thread Brenda
I'm working on designing a shop of sorts. It sells widgets and gadgets. Widgets have different sizes and colors; gadgets have different weights. The price varies on the attributes. There may be many, many different widgets and gadgets, but the only thing that affects price is size/color or

Model design question

2008-10-26 Thread Brenda
I'm working on designing a shop of sorts. It sells widgets and gadgets. Widgets have different sizes and colors; gadgets have different weights. The price varies on the attributes. There may be many, many different widgets and gadgets, that are uploaded by a variety of sellers, but the only thing

Re: user name on default.ctp

2008-10-26 Thread David C. Zentgraf
You can use $session-read('Auth.User') and/or $session- read('Auth.User.username') in the view. Also, do NOT echo any HTML from the controller. It violates the MVC pattern and the echo'd HTML will always come before anything else, i.e. even before html, which is even wronger. Chrs, Dav On

Re: concatenation in find('list')

2008-10-26 Thread chad
oops. add {n}. before Salesperson.lastname in the Set::combine --~--~-~--~~~---~--~~ 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

Re: Does Cake issue a HTTP 404 status code for missing pages.

2008-10-26 Thread Samuel DeVore
Just make sure when you are checking this that your side has debug level at 0, one and up gives other types of error pages Sam D On Sun, Oct 26, 2008 at 6:56 PM, Mathew [EMAIL PROTECTED] wrote: Great, thanks. I've seen some websites issue a 200 for missing pages, but say 404 in the HTML

Re: concatenation in find('list')

2008-10-26 Thread chad
This is probably what your looking for... [controller] $salespeople = $this-Campaign-Salesperson-find('all', array('order'='Salesperson.firstname ASC', 'fields' = 'Salesperson.id, Salesperson.firstname, Salesperson.lastname')); $salespeople = Set::combine($salespeople, '{n}.Salesperson.id',

Re: Does Cake issue a HTTP 404 status code for missing pages.

2008-10-26 Thread MikeB
It does indeed respond with a 404 Not Found header. On Oct 26, 7:44 pm, Mathew [EMAIL PROTECTED] wrote: Hi, When Cake produces the 404 error page for missing pages. Does it send a http/1.1 404 Not Found response code or does it send a http/1.1 200 OK response code? Thanks,

Re: Need help getting site to work

2008-10-26 Thread Ozzy OG Kush
Nevermind, I figured it out, it was a simple permissions problem. As for telling cake to never display SQL connection errors, anyone have any suggestions? My hosting service's database server goes down more frequently than I'd like, and even with debug on 0 my site will display SQL connection