Unit Testing of cakephp 1.1 (not cakephp 1.2)

2008-03-26 Thread bhushan A
Can anybody help me how to do unit testing of cakephp 1.1.. i ahve gone though this link - http://cakebaker.42dh.com/2006/12/18/testing-with-cakephp-12-a-preview/ . But its only for 1.2 version. how can i achieve this.? --~--~-~--~~~---~--~~ You received this messa

Re: looking for a hosting company

2008-03-26 Thread Stephen Orr
Avoid 1and1 for Cake like the plague. It's a bloody nightmare. I had to change the .htaccess files, the databases were slow as hell... and their helpdesk support is pathetic. We're migrating all our sites away from them now. Steve On Mar 26, 5:59 pm, Rob Russell <[EMAIL PROTECTED]> wrote: > Any

Re: RSS feeds in cake

2008-03-26 Thread Novice Programmer
Hello Tarique, its the error that cake throws when it is not able to find layout and tries to use default layout. Thanks. On 3/27/08, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote: > > > On Thu, Mar 27, 2008 at 9:26 AM, Novice Programmer > <[EMAIL PROTECTED]> wrote: > > > > but i get cake parser e

AJAX logic question

2008-03-26 Thread John R
I am trying to setup something similar (but not identical) to Digg Spy (http://www.digg.com/spy). Basically, I want a "latest activity" on my front page, and then call some sort of function to load new events in real time from various controllers to this div. From the Spy tutorials I have seen, t

Re: selecting extra info from related fields for an association

2008-03-26 Thread jaypee
For anyone who found themselves understanding what I needed, this is what I came up with that delivered a result. My issue was that I had a field for first_name and a field for last_name of people who referred the contact I was entering and I could not get the auto-cake-magic to render the comple

Re: Customize setFlash() ?

2008-03-26 Thread b logica
Create 2 flash layouts, flash_ok.ctp & flash_not_ok.ctp like so(ish): Then style them in your CSS. Pass the id as the 2nd param to setFlash(). On Wed, Mar 26, 2008 at 11:57 PM, John R <[EMAIL PROTECTED]> wrote: > > So .. according to the API, you can send params with setF

Re: RSS feeds in cake

2008-03-26 Thread Dr. Tarique Sani
On Thu, Mar 27, 2008 at 9:26 AM, Novice Programmer <[EMAIL PROTECTED]> wrote: > > but i get cake parser error. > What is the parse error? Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisof

Re: My Component try to use RequsetHandler component. Problem.

2008-03-26 Thread wDevil
> If you are using it: > > class OrderComponent extends Object { > var $components = array('RequestHandler'); > > } Thanks. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

Customize setFlash() ?

2008-03-26 Thread John R
So .. according to the API, you can send params with setFlash() to be used in the view. That is fine and dandy .. however, is it possible to use those params to set the class of the div? The only parameter flash() allows is the key. What I am trying to do is pass a parameter called "class" so I c

RSS feeds in cake

2008-03-26 Thread Novice Programmer
i know that i would be doing a silly mistake. i am using rss helper to transform feeds. Same controller feeds rss as well as normal HTML. The controller is http://localhost/entities/view/ I was thinking that rss should be visible using http://localhost/entities/view/.rss but i get cake parser er

Re: Editing paginator URL

2008-03-26 Thread Dardo Sordi Bogado
Easy, just search in this group, found one of the many threads discussing this issue, then apply the solution proposed. On Wed, Mar 26, 2008 at 3:38 PM, Haris <[EMAIL PROTECTED]> wrote: > > I have a search query that I want to append to the paginator returned > URL. How can I append parameters

Re: Sanitize binary data

2008-03-26 Thread b logica
The Sanitize methods are for operating on text only and won't do your binary data any good at all. Binary data should be safe to insert into your database because it won't be interpreted as instructions (which are text only). I won't discount it completely, as I've seen some pretty amazingly clev

Re: Best practice for SQL data sanitation

2008-03-26 Thread b logica
For the record, HTML entities are harmless WRT SQL injection. On Wed, Mar 26, 2008 at 6:00 PM, Adam Royle <[EMAIL PROTECTED]> wrote: > > Cake automatically handles quoting strings etc when saving to the > database. Sanitize is more for disallowing certain data into your > database, such as

Re: .po files not being read suddenly

2008-03-26 Thread [EMAIL PROTECTED]
Solved! When I added the Auth stuff yesterday, I included some settings in AppController::beforeFilter(), including: $this->Auth->loginError = __('Invalid e-mail / password combination. Please try again', true); Once I commented that out everything worked as before. So this call to translate() w

Sanitize binary data

2008-03-26 Thread [EMAIL PROTECTED]
Iam creating a system that stores files in a database, I would like to know if there is no problem in not sanitizing bynary data, I exclude some type of extensions like .exe .zip and others in the upload process. Can someone make a SQL injection or some kind of attack uploading binary data that it

Re: .po files not being read suddenly

2008-03-26 Thread [EMAIL PROTECTED]
Stranger and stranger. I decided to disable Auth because it was that that I'd added to the site before i18n stopped working. As soon as I did that, my Configure::read('Config.language') now shows the new language setting. Why would Auth be screwing around with Config.language? Unfortunately, I'm

Re: .po files not being read suddenly

2008-03-26 Thread [EMAIL PROTECTED]
I think I've narrowed down the problem if not the solution. Looking through i18n.php I noticed that the getInstance() method checks the session, but only if the language is not found in the core config. function &getInstance() { static $instance = array(); if (!$instance) {

Re: Run query in background while showing "Please wait"

2008-03-26 Thread jonknee
> The reason I can't have the database do the searching for me is > because the criteria I want to search against to find potential > duplicates doesn't have a direct one-to-one correlation to the > database table fields. Hmm. Is there a way you could make them directly correlate? It's a pretty f

Re: Localizate month names

2008-03-26 Thread Dardo Sordi Bogado
> Be careful though with LC_ALL, because it has a wider effect than just > localizing month names... eg. for French, setting the separator for > float to the comma instead of the dot, which brings trouble when > inserting to a MySQL database not configured the same. Yes, I know, but that was

Re: Run query in background while showing "Please wait"

2008-03-26 Thread kdecapite
What I have is an ImportContact model which is simply a table containing basic information about a person (name, email, address, etc). This table gets populated either from a standard website "Contact Us" form or by my client manually importing a CSV file. Now, once this ImportContact model has ne

Re: Advice about a Calendar

2008-03-26 Thread jonknee
> I was wondering if anyone has used a cake calendar in their apps - > what they used and how well it worked, what sort of integration > problems they encountered, etc. Not sure exactly what you need, but Yahoo has a really nice calendar solution inside its YUI platform. You'll recognize it from

Re: looking for a hosting company

2008-03-26 Thread jonknee
I have been enjoying LiquidWeb. I don't host any Cake stuff there at the moment, but have had no problems with a shared account and have been really impressed with a VPS (which hosts a fairly busy vBulletin forum). They don't do crazy overselling like Dreamhost . --~--~-~--~~--

Re: Run query in background while showing "Please wait"

2008-03-26 Thread jonknee
> I have a CakePHP CRM application with 30,000+ contact records. Each > Contact hasMany Address records. One feature of my app is to allow my > client to search for duplicate entries within the contacts table > before importing new contacts. In short, I am querying the entire > Contact table and L

Re: Include PHP code in view

2008-03-26 Thread jonknee
> Okay, sounds good. So where do I find this information on building my > own helper? Please provide a link to some instructions if you can. A helper is definitely what you want here. They are really easy: http://manual.cakephp.org/chapter/helpers (Section 2, all the way at the bottom) Basicall

Re: Include PHP code in view

2008-03-26 Thread CodeHooligans
Okay, sounds good. So where do I find this information on building my own helper? Please provide a link to some instructions if you can. Thanks. P- On Mar 26, 5:24 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > On Wed, Mar 26, 2008 at 3:15 PM, CodeHooligans <[EMAIL PROTECTED]> wrote: > >  As f

Re: Run query in background while showing "Please wait"

2008-03-26 Thread bingo
you will need to use Ajax search on ajax + cakePHP On Mar 26, 6:04 pm, kdecapite <[EMAIL PROTECTED]> wrote: > I have a CakePHP CRM application with 30,000+ contact records. Each > Contact hasMany Address records. One feature of my app is to allow my > client to search for duplicate entries

Re: Include PHP code in view

2008-03-26 Thread Samuel DeVore
On Wed, Mar 26, 2008 at 3:15 PM, CodeHooligans <[EMAIL PROTECTED]> wrote: > As for the comment on the no business logic in the View I agree. But > then again I never actually stated what this function I'm including > does. It's not business logic. It's just code to help build the radio > butt

Re: Include PHP code in view

2008-03-26 Thread CodeHooligans
Thanks for the reply Joel. As usual just after I posted this tried something else and got this working. I was placing the 'vendor();' call at the bottom of the index.thtml file. As I replaced the original function with it. I've found if I place the vendor() call before the function is needed it wo

Re: Changing action on the fly - by user type

2008-03-26 Thread Joel
The action you specify initially is parsed at the Dispatcher level, before anything is asked of the controller. As a result, by prepending your new action name in the before filter, all you're really changing is the value of $this->params['action'], and not the actual action that is being called b

Run query in background while showing "Please wait"

2008-03-26 Thread kdecapite
I have a CakePHP CRM application with 30,000+ contact records. Each Contact hasMany Address records. One feature of my app is to allow my client to search for duplicate entries within the contacts table before importing new contacts. In short, I am querying the entire Contact table and LEFT JOINin

Re: Best practice for SQL data sanitation

2008-03-26 Thread Adam Royle
Cake automatically handles quoting strings etc when saving to the database. Sanitize is more for disallowing certain data into your database, such as

Re: Include PHP code in view

2008-03-26 Thread Joel
You can paste some code into bootstrap.php, which then makes your function available everywhere. You should never include business/ controller logic into a view; that's just bad practice. Well, putting code in the bootstrap.php file is also not very MVC- pattern compliant, but sometimes you gott

Non Numeric index issues.

2008-03-26 Thread Defranco
Hi all, I'm having multiple problems using non numeric index with Mysql and CakePHP 1.2, specifically when it reaches a index that is a pure number -- AFAIK, cakephp supports non numeric index. Example: I have this table using a non numeric index: id* (varchar) | foo (varchar) xpt

Re: Define the GMT ?

2008-03-26 Thread aranworld
Go to PHP.net and search timezone. http://php.net/manual/en/ref.datetime.php#ini.date.timezone If you don't have access to php.ini, you can also set this value in an .htaccess file. On Mar 26, 2:05 pm, Neveldo <[EMAIL PROTECTED]> wrote: > Hi all, > > How we can take account of the timezone GMT

Re: looking for a hosting company

2008-03-26 Thread aranworld
Wow, KnownHost has some really low cost VPS plans. Brian, what level plan are you on? I have been happy with Textdrive for the last 2+ years now. They are now called Joyent, and offer shared hosting with their Connector package: http://joyent.com/connector/web-hosting/ For a shared hosting en

Include PHP code in view

2008-03-26 Thread CodeHooligans
Hello all, I'm having a but of an issue. I have two forms. But are simple and submit to discrete backend controllers. Both have their own set of views (add, edit, index). Each submit into respective tables in the database. I'm running cake 1.1.xxx (The current stable release). So here is my issu

Best practice for SQL data sanitation

2008-03-26 Thread Travis
Hi, I'm trying to figure out the best way to sanitize a text field of data that is to be saved to a mysql database. I have tried the Sanitize->sql() function which adds slashes to any characters that might be interpreted as sql. But then when displaying this data I'm not quite sure how to strip ou

generateList combining fields in valuePath

2008-03-26 Thread Steve
I have two fields in my table that I want to display as one field in my add form. ie: dorm_building, dorm_room = dorm_assignment (field names) ie: South, 203 = South 203 (field values) I have the following code in my controller: $available_rooms = $this->Dorm->generateList(array('available' => '

Define the GMT ?

2008-03-26 Thread Neveldo
Hi all, How we can take account of the timezone GMT ? For example, the fieds created and updated are based on the PHP function time() or the sql function NOW() ? What is the best way to define the timezone in a cakePHP application ? thank ! Cordially, Neveldo : http://www.neveldo.fr --~--~---

default column values overwrite pre-existing values in Model::save()

2008-03-26 Thread aranworld
I am working on this ticket: https://trac.cakephp.org/ticket/4190 Up to now I have been operating under the idea that if I am updating a record, that it is not necessary to explicitly declare the values for every column in the database row. I figured that in the logic for Model::save() that it w

saving records to polymorphic models

2008-03-26 Thread davidpersson
A "File" model which uses the Polymorphic behavior (which is by the way great). It has a "model" and a "foreign_key" field to bind associated models on find operations. An "Ufo" model which has following association set: var $hasMany = array( 'Attachment' => array( 'foreignKey' => 'foreign

Re: Advice about a Calendar

2008-03-26 Thread Gráinne O'Neill
thanks you guys - any other suggestions would be much appreciated! Grainne On Wed, Mar 26, 2008 at 1:08 PM, Rob Russell <[EMAIL PROTECTED]> wrote: > > I don't have a lot of info but someone on #cakephp last week > recommended this one for mootools > http://www.electricprism.com/aeron/calendar/.

Re: Localizate month names

2008-03-26 Thread Guillaume
Yes., it works for me with French. Be careful though with LC_ALL, because it has a wider effect than just localizing month names... eg. for French, setting the separator for float to the comma instead of the dot, which brings trouble when inserting to a MySQL database not configured the same. As

Re: Changing action on the fly - by user type

2008-03-26 Thread Dan
Many thanks Rob, Am doing pretty much what you've outlined in your second paragraph but some extra debug should hopefully point out where cake is wandering off ;o) cheers, D On Mar 26, 6:20 pm, Rob Russell <[EMAIL PROTECTED]> wrote: > "I don't want to use the ACL at the moment" > > If you int

Re: looking for a hosting company

2008-03-26 Thread Haris
In your own case, I would recommend you to stay away from dreamhost aka nightmarehost. On Mar 26, 11:16 pm, Zoltan <[EMAIL PROTECTED]> wrote: > Thanks for all the recommendations, looks like the company I'm doing > this for decided DreamHost was fine for now. > > Zoltanwww.nachogrid.ca > > On Mar

Editing paginator URL

2008-03-26 Thread Haris
I have a search query that I want to append to the paginator returned URL. How can I append parameters to the URL? Example: http://isharis.dnsalias.com/songs/search/page:2/relevance/?search=Red%20Jumpsuit http://bin.cakephp.org/view/1344185837 --~--~-~--~~~---~--~--

Re: Localizate month names

2008-03-26 Thread Dardo Sordi Bogado
setlocale does work for me, I have this in app/config/bootstrap.php : setlocale(LC_ALL, 'es_AR.utf8'); On Wed, Mar 26, 2008 at 8:29 AM, ygneo <[EMAIL PROTECTED]> wrote: > > Hi everybody! > > Anyone knows a good method to localizate month names when using $form- > >input with a date field? >

Re: Changing action on the fly - by user type

2008-03-26 Thread Rob Russell
"I don't want to use the ACL at the moment" If you intend to add it later then I'd recommend just biting the bullet and putting ACL in now. It'll only get harder later. I found it pretty easy to copy my User code from an older app into my current one even though they're now based on 1.2 beta and

Re: looking for a hosting company

2008-03-26 Thread Zoltan
Thanks for all the recommendations, looks like the company I'm doing this for decided DreamHost was fine for now. Zoltan www.nachogrid.ca On Mar 26, 1:59 pm, Rob Russell <[EMAIL PROTECTED]> wrote: > Anybody hosted Cake on 1and1? I've really liked them so far but I > haven't pushed any Cake apps

Re: Advice about a Calendar

2008-03-26 Thread Rob Russell
I don't have a lot of info but someone on #cakephp last week recommended this one for mootools http://www.electricprism.com/aeron/calendar/. I thought it looked pretty slick but I haven't even tried integrating mootools in place of Prototype.js. There's also this one http://www.rubyinside.com/cal

Re: Advice about a Calendar

2008-03-26 Thread Chris Hartjes
On Wed, Mar 26, 2008 at 1:50 PM, Grainne <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I was wondering if anyone has used a cake calendar in their apps - > what they used and how well it worked, what sort of integration > problems they encountered, etc. I've used QCalendar on other projects

Re: looking for a hosting company

2008-03-26 Thread Rob Russell
Anybody hosted Cake on 1and1? I've really liked them so far but I haven't pushed any Cake apps on to that server yet. I had a VPS (somewhere else) and ran in to trouble locking it down so I've been relegated to managed virtual hosting for now (though 1and1 has met my needs completely so far). On

Advice about a Calendar

2008-03-26 Thread Grainne
Hi everyone, I was wondering if anyone has used a cake calendar in their apps - what they used and how well it worked, what sort of integration problems they encountered, etc. Thanks in advance! Grainne --~--~-~--~~~---~--~~ You received this message because you

Re: looking for a hosting company

2008-03-26 Thread interactive
I agree with Chris on the VPS. I use KnownHost and LiquidWeb and both have been terrific. brian fidler http://www.brianfidler.com Follow me on Twitter: http://www.twitter.com/brianfidler Quoting Chris Hartjes <[EMAIL PROTECTED]>: > > On Wed, Mar 26, 2008 at 12:20 PM, jelm

Re: FinderQuery and findAll

2008-03-26 Thread grigri
`finderQuery` is there for when cake's automagic doesn't suit your needs, and you want to do everything yourself. So you can't just 'set $conditions in findAll' because you're explicitly telling cake that you don't want that to happen. If you want help with a solution for your specific problem, t

Re: looking for a hosting company

2008-03-26 Thread Chris Hartjes
On Wed, Mar 26, 2008 at 12:20 PM, jelmer <[EMAIL PROTECTED]> wrote: > > I can't recommend bluehost, you'll run into performance problems quite > quickly I think, unless you have a very simple app. I used to have a > (vbulletin) forum there and I was suspended a few times because of > performan

Re: looking for a hosting company

2008-03-26 Thread jelmer
I can't recommend bluehost, you'll run into performance problems quite quickly I think, unless you have a very simple app. I used to have a (vbulletin) forum there and I was suspended a few times because of performance issues. I've heard good things about mediatemple but am using a futurehosting.b

Re: Using crumbs in cake 1.2

2008-03-26 Thread grigri
Just leave the url parameter blank and you won't get a link: addCrumb('Gestión de usuarios'); ?> Note that if you do this, html is allowed [the input is not h()-ed], so if you have any < or > characters you'll have to escape them manually. On Mar 26, 9:55 am, ygneo <[EMAIL PROTECTED]> wrote: >

Re: FinderQuery and findAll

2008-03-26 Thread [EMAIL PROTECTED]
Has anyone some idea for this? On 25 Mar, 11:06, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have a HABTM relation in my model based on a finderQuery. > How have I to set $conditions in findAll to filtering the model on > fields of this HABTM relation? --~--~-~--~~~

Localizate month names

2008-03-26 Thread ygneo
Hi everybody! Anyone knows a good method to localizate month names when using $form- >input with a date field? I mean, setlocale doesn't works for me, and I think it would works with L10n, with I haven't find out how... Thanks! --~--~-~--~~~---~--~~ You received

Changing action on the fly - by user type

2008-03-26 Thread Dan
Hi, I'd like to change the action on the fly on a per user type basis - I don't want to use the ACL at the moment ;) Is anyone else doing this successfully? I've modified my app_controller->beforeFilter to prepend the userype to the action so... controller->index would become controller->use

Using crumbs in cake 1.2

2008-03-26 Thread ygneo
Hi everybody! I'm learning to use crumbs with cake 1.2, but I don't find out how to show the first crumb out of an anchor link (a) to avoid the user clicks and reload of the page. This is my code: addCrumb('Gestión de usuarios', '/usuarios/nuevo/', array('id'=>'seleccionada')); ?> getCrumbs();

Re: Friendly-url for multi-language site

2008-03-26 Thread JuniorCMS
This is my solution. http://www.consulenza-web.com/gestine-multilingua-su-cakephp.dc-52.html I wrote in my italian blog but code is universal. My solution provide a simple way to implemente a root lang path for every controller in app. This solution il extremely simple but it comes without strong

Re: paginator conflicts with Security->requireLogin ?

2008-03-26 Thread gbk *
i have to correct myself. in basic mode the application works fine. the problem in digest mode is the ':', page:2. the ':' is missing from the regexp in function parseDigestAuthData($digest) ; preg_match_all('@(\w+)=([\'"]?)([a-zA-Z0-9=./\_-]+)\2@', $digest, $match, PREG_SET_ORDER); gbk On már

Re: looking for a hosting company

2008-03-26 Thread Penfold
Hi, You can try www.mosso.com which runs on rackspace heardware and is a scaliable solution Ian On 26 Mar, 12:53, Zoltan <[EMAIL PROTECTED]> wrote: > Just wondering if anyone has a hosting company they'd recommend. > I've personally hosted a few sites on DreamHost, speed is ok, but > getting Ca

Re: looking for a hosting company

2008-03-26 Thread dr. Hannibal Lecter
I've heard many good things about BlueHost, and got myself a subdomain from a friend. Running Cake with no problems at all. http://www.bluehost.com/ On Mar 26, 1:53 pm, Zoltan <[EMAIL PROTECTED]> wrote: > Just wondering if anyone has a hosting company they'd recommend. > I've personally hosted a

looking for a hosting company

2008-03-26 Thread Zoltan
Just wondering if anyone has a hosting company they'd recommend. I've personally hosted a few sites on DreamHost, speed is ok, but getting Cake sites up and running is problem-free. On the other hand, I've used Rackspace, which is faster, but keep on running into problems. If anybody has a hostin

Re: paginator conflicts with Security->requireLogin ?

2008-03-26 Thread gbk *
hi, some new information about this problem: if i change the type from 'digest' to 'basic', the server accepts the admin/password, but i have to enter it at every page request. gbk On márc. 26, 12:33, "gbk *" <[EMAIL PROTECTED]> wrote: > hi, > > i need some help in the following problem: > > m

Re: behaviour update query

2008-03-26 Thread dr. Hannibal Lecter
Got it! On the latest nightly: $Model->updateAll ( array ($_settings['hitField'] => $Model->alias.'.'. $_settings['hitField'].' +1'), array ($Model->alias.'.'.$_settings['keyField'] => $key) ); Apparently, in the fields array, the column is prefix

Re: behaviour update query

2008-03-26 Thread dr. Hannibal Lecter
Thanks grigri! But, it seems like I shouldn't be using the Model.field format, neither cakebaker nor nate are using it in their working examples (see the last comment on the ticked you posted). I'm using the latest nightly, if that matters at all. On Mar 26, 12:14 pm, grigri <[EMAIL PROTECTED]>

paginator conflicts with Security->requireLogin ?

2008-03-26 Thread gbk *
hi, i need some help in the following problem: my cakephp version: 1.2.0.6311. i have configured digest auth for my admin actions in the app_controller: function beforeFilter() { if(isset($this->params[Configure::read('Routing.admin')])){ $this->Security->requireLogin('

Re: findAll and model on different database in association

2008-03-26 Thread [EMAIL PROTECTED]
I have analizated the code of dbo_source.php . I have found during the generation of SQL query that the code controls if the useDbConfig of the models are the same. If I set useDbConfig of the belongTo's Model like the useDbConfig of the principal model can I have problem in other operations? O

Re: behaviour update query

2008-03-26 Thread grigri
It's as easy as : $Model->updateAll(array('Model.hitfield' => 'Model.hitfield +1'), array('Model.keyfield' => '= ' . $key)); Note that in some versions the updateAll does a join on hasOne/ belongsTo so you have to specify the fields in Model.field format, not just the field name. See: http://c

Re: behaviour update query

2008-03-26 Thread dr. Hannibal Lecter
I've searched and I've searched, I see people mentioning it, but I'm not really sure how to increment the value of 'hitField'? How do I tell updateAll to add one to the existing value? Thanks in advance! On Mar 26, 11:35 am, Adam Royle <[EMAIL PROTECTED]> wrote: > $Model->updateAll(); > > Cheers

Re: My Component try to use RequsetHandler component. Problem.

2008-03-26 Thread Dardo Sordi Bogado
Also note that the class name is RequestHandlerComponent. On Wed, Mar 26, 2008 at 7:37 AM, dr. Hannibal Lecter <[EMAIL PROTECTED]> wrote: > > Are you using 1.2? > > If you are using it: > > class OrderComponent extends Object { > var $components = array('RequestHandler'); > > > } > >

Re: My Component try to use RequsetHandler component. Problem.

2008-03-26 Thread dr. Hannibal Lecter
Are you using 1.2? If you are using it: class OrderComponent extends Object { var $components = array('RequestHandler'); } On Mar 26, 5:11 am, wDevil <[EMAIL PROTECTED]> wrote: > class OrderComponent extends Object { > private $Orders; > private $OrderComponents; > >

Re: behaviour update query

2008-03-26 Thread Adam Royle
$Model->updateAll(); Cheers, Adam On Mar 26, 8:17 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm working on a behaviour, and I'm currently running my query like > this: > > $Model->query( > 'UPDATE '.$Model->table.' > S

Re: findAll and model on different database in association

2008-03-26 Thread [EMAIL PROTECTED]
If I use a model inside the same database instead a model in an other database all works fine. For me the problem is in dbo_source.php function generateAssociationQuery(...) where the query is generated. On 26 Mar, 10:52, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have found this post t

parseextensions problem -> wrong content type

2008-03-26 Thread MarcS
Hi, I have parseExtensions enabled in my routers.php file I'm requesting a URL like this: controller/action.js and I expect the response content type to be javascript. However, cake sets the content type to text/html and wraps the javascript output in tags. I have no idea where these are commin

behaviour update query

2008-03-26 Thread dr. Hannibal Lecter
Hi everyone, I'm working on a behaviour, and I'm currently running my query like this: $Model->query( 'UPDATE '.$Model->table.' SET '.$_settings['hitField'].' = '.$_settings['hitField'].'

Re: upload an image to a directory

2008-03-26 Thread djiize
search for Upload behavior in Group and Bakery On 26 mar, 05:46, damo <[EMAIL PROTECTED]> wrote: > I'm sure this is super easy also, but can't find how to do it in the > cookbook for 1.2. > > So what I want to do is using the form helper upload a file (jpeg or > jpg) and then save it to the direc

Re: findAll and model on different database in association

2008-03-26 Thread [EMAIL PROTECTED]
I have found this post that I think it's right for my case: http://groups.google.com/group/cake-php/browse_thread/thread/b542cf436cc8622f/da154103ba2a3af3?lnk=gst&q=Multiple+DB+HasMany I have used the solution of Grant but I get the same error ("in the Sql query of find all miss the LEFT JOIN r

Re: HABTM Relation with foreign key

2008-03-26 Thread Guillaume Chomat
Hi boyracerr, Thanks for your help. Cake is effectively amazing!!! Kind Regards. On Mar 26, 4:10 am, boyracerr <[EMAIL PROTECTED]> wrote: > Me again, > > As so often, I knew I wanted to use it but needed a helpful post > laying it out for me in simple terms. Mariano to the rescue! > > http://w

Re: acl.php : Call to undefined function uses()

2008-03-26 Thread stonez
I forgot to mention, you have to change this code below, before you issue the command: >cake acl create aro 0 null Dealers \cake\cake\libs\model\datasources\db_source.php in line 29 change uses('set') into uses('set','string') --~--~-~--~~~---~--~~ You received th

Re: acl.php : Call to undefined function uses()

2008-03-26 Thread stonez
Try: cake acl create aro 0 null Users it's not acl.php. it's acl Stonez --~--~-~--~~~---~--~~ 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

My Component try to use RequsetHandler component. Problem.

2008-03-26 Thread wDevil
class OrderComponent extends Object { private $Orders; private $OrderComponents; private $RequestHandler; function initialize() { App::import('Model','Orders'); App::import('Model','OrderComponents'); $this->Orders=&