Re: R: adding extra fields when reading a model

2007-05-30 Thread laptop
seems kind of messy way for a simple task... oh wells i will soldier on On May 31, 3:51 pm, <[EMAIL PROTECTED]> wrote: > You Have 2 chance to accomplish this task > 1. You can build fake field in your model afterFind() function > function afterFind( $result ) { > $result = parent::afterFind( $r

Re: Help: Ajax ( Iframe ) Upload

2007-05-30 Thread 浪漫様
Thanks for your reply, I had been looking that post before wirting that question. I can't find the implemention of the IFRAME... nobody has an example code on how to use the IFRAME?? Thank you very much Best Regards, Rohman --~--~-~--~~~---~--~~ You received this

Re: how can a controller access another model

2007-05-30 Thread AD7six
On 31 mayo, 08:19, Ita <[EMAIL PROTECTED]> wrote: > Hi, > Thanks for the tip I\ll try and use it today and see if it works. > I actually do not use the object name it was just to simplify the > example... Yeah, that's often a bad idea ;). Tell it like it is and some ambiguity is eliminated. fo

Re: how can a controller access another model

2007-05-30 Thread Ita
Hi, Thanks for the tip I\ll try and use it today and see if it works. I actually do not use the object name it was just to simplify the example... Thanks again, Ita On May 30, 4:46 pm, AD7six <[EMAIL PROTECTED]> wrote: > Ita wrote: > > Hi, > > In my DB I have 3 tables > > objects, users & votes >

Re: Pretty URL's

2007-05-30 Thread Arndtinho
Thanks. I tried this configuration: define ('BASE_URL', env('SCRIPT_NAME') . '?'); -> old: define ('BASE_URL', env('SCRIPT_NAME') ); $uri = env('PHP_SELF') . env('QUERY_STRING'); -> old: $uri = setUri(); And this is the result now: http://www.mydomain.de/index.php?/main/index I checked the serv

Re: Change the Separator Character in the dateTimeOptionTag Output?

2007-05-30 Thread m.sbragi
Ok this is the most simple solution i can think. echo str_replace('-','/',$html->dateTimeOptionTag($field,'MDY','NONE',null,array( ),false)); OR Write your own helper that extends html and use your own char. See manual for reference and search on list :) > -Messaggio originale- > Da: cak

R: adding extra fields when reading a model

2007-05-30 Thread m.sbragi
You Have 2 chance to accomplish this task 1. You can build fake field in your model afterFind() function function afterFind( $result ) { $result = parent::afterFind( $result ); foreach( $result as $k => $v ) { $result[$k]['Table']['thumb_url'] = 'thumb_' . @$v['Table']['image']; } ret

Re: Using a Component in controller->beforeFilter in 1.2

2007-05-30 Thread gwoo
Components help out controllers with common business logic, so first intialize, then modify in beforeFilter, then startup some automagic. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to

adding extra fields when reading a model

2007-05-30 Thread laptop
Hi, Is there a way to add a field to a model which is the result of an SQL function. My scenario is that I have an image_url field, the thumb of the image_url is also stored in the same directory with '_thumb' appended before the index. ie bradcraig.jpg would become bradcraig_thumb.jpg Is there

using beforeSave() with the blog tutorial

2007-05-30 Thread [EMAIL PROTECTED]
I'm using the blog tutorial to learn everything about CakePHP. I finished the tutorial and am just adding bells and whistles to figure out what things do and I'm having a problem getting beforeSave() to function: I have a post controller, model and view and they're all working fine. What I want

HELP: CakePHP & vBulletin

2007-05-30 Thread Alcuadrado
Hi, I'm new here. I've been reading about cake and it es REALLY interesting for a project I'm starting... The problem is that I must do a website integrated with vBulltein users system. And I guess that I have to use the same session for the user in the forum and the web. But doesn't cake manage s

Re: cakePHP is slow!

2007-05-30 Thread Chris Hartjes
On 5/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > CakePHP is slow! Well not really... Cake is fine, but I'm a bit slow > some times. I have seen several people complain about cake speeds, but > I have never experienced a problem... Till now. Some of them/you may > have had a bad directo

Re: cakePHP is slow!

2007-05-30 Thread Samuel DeVore
you should make a ticket against the documentation to include the tmp folder layout as a 'required' thing that really should exist On 5/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > CakePHP is slow! Well not really... Cake is fine, but I'm a bit slow > some times. I have seen several p

Re: cakePHP's cache

2007-05-30 Thread Samuel DeVore
very often when you decompress files empty folders are not created, you should make sure that the folder layout for the tmp folder is complete and writable by the web server On 5/30/07, shifaz <[EMAIL PROTECTED]> wrote: > > > The views folder was not there under tmp/cache. After i created it, > n

cakePHP is slow!

2007-05-30 Thread [EMAIL PROTECTED]
CakePHP is slow! Well not really... Cake is fine, but I'm a bit slow some times. I have seen several people complain about cake speeds, but I have never experienced a problem... Till now. Some of them/you may have had a bad directory structure. If you are missing the sub folders in the app/tmp fol

Strange DB problem - savefield fails when field name changes

2007-05-30 Thread C. Ashcraft
Hi All, This is my first project with CakePHP, so I could be doing something really stupid, but I'm having a really bizarre DB issue. I can't seem to save to fields added to the database after I baked the scaffolding for my application. For instance, if WML is an original column, and ALRT is a ne

Re: cakePHP's cache

2007-05-30 Thread shifaz
The views folder was not there under tmp/cache. After i created it, now it works like a charm. thanks On May 31, 5:11 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > tmp/caches/view > > On 5/30/07, shifaz <[EMAIL PROTECTED]> wrote: > > > > > can anyone explain to me where cakePHP stores its view

Re: Change the Separator Character in the dateTimeOptionTag Output?

2007-05-30 Thread John David Anderson (_psychic_)
On May 30, 2007, at 6:18 PM, Chris Hartjes wrote: > > On 5/30/07, Wole <[EMAIL PROTECTED]> wrote: >> >> Bump =) >> > > Bumping posts is bad etiquette on this list. If someone had an answer > and read your message, they would've answered it. Though I don't personally mind a bump if you make an

Re: Help: Ajax ( Iframe ) Upload

2007-05-30 Thread Chris Hartjes
On 5/30/07, 浪漫様 <[EMAIL PROTECTED]> wrote: > > Can somebody place the code??... This is the code I use to Update the > user's profile... now I want to do the code to Upload the user's > picture with AJAX+Iframe. Thank you > http://groups.google.com/group/cake-php/browse_thread/thread/fca8c28837ae

Re: Change the Separator Character in the dateTimeOptionTag Output?

2007-05-30 Thread Chris Hartjes
On 5/30/07, Wole <[EMAIL PROTECTED]> wrote: > > Bump =) > Bumping posts is bad etiquette on this list. If someone had an answer and read your message, they would've answered it. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpa

Re: Change the Separator Character in the dateTimeOptionTag Output?

2007-05-30 Thread Wole
Bump =) On May 28, 4:28 pm, Wole <[EMAIL PROTECTED]> wrote: > Is there a way to change the separator character that appears between > the drop down lists in the dateTimeOptionTag output? The separator > character is currently '-' and I want to change it to '/'. Also, is > there a way to add a spa

Re: cakePHP's cache

2007-05-30 Thread Samuel DeVore
tmp/caches/view On 5/30/07, shifaz <[EMAIL PROTECTED]> wrote: > > > can anyone explain to me where cakePHP stores its view caches? > > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore

Re: Paginator and custom routes problem (latest 1.2 alpha)

2007-05-30 Thread Mirko
I have exactly the same problem. All I get is a link with nothing but controller name in it: Greets, Mirko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cak

Help: Ajax ( Iframe ) Upload

2007-05-30 Thread 浪漫様
Dear Bakers, I'm creating a personal blog with registered users. I want the users to be able to modify their profile anywhere in the site using Ajax... In the blog, there is a column showing the User's Profile on a By the moment I could succesfully do that they change their display information an

Re: Using a Component in controller->beforeFilter in 1.2

2007-05-30 Thread Sarek
Well that's what ticket #2667 is saying. It's just that to me it sounds like startup() is pretty important to get done before using the component. But that's just based on the function name. Who know it could be a leftover relic. Would like to understand a bit more about it before I do anything on

View this page "Cake Apps/Sites In The Wild"

2007-05-30 Thread shifaz
Jazeera Daily is a local news website created with cakePHP. Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message

cakePHP's cache

2007-05-30 Thread shifaz
can anyone explain to me where cakePHP stores its view caches? --~--~-~--~~~---~--~~ 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 thi

Re: Select database at the model level per request?

2007-05-30 Thread davo
Thanks for the suggestion francky06l - $useDbConfig was the most obvious solution i could see as well... the only problem is that we've got about 400 clients and they get added/deleted dynamically, so it's going to be a hell of a big config file. Also we'll probably have joins between the master &

Re: Upload a File with CakePHP 1.2.0.5137alpha

2007-05-30 Thread Andrea
Very good information! I see the two different links but I don't understand quite weel how I can use it. Can you give some instructions? Thanks a lot! bye Andrea P/D: I'm an Italian speaker... On 30 Mag, 15:51, dardosordi <[EMAIL PROTECTED]> wrote: > Hi Andrea, > > I'm using this for file up

Re: using uuid component to create id's into my model

2007-05-30 Thread Langdon Stevenson
Interesting solution. I have been generating UUIDs in PHP for one of my projects as my ISP only offers MySQL 4.x. Regards, Langdon Divagater wrote: > I use database triggers to handle writing UUID's for all of my id's. > This is not a PHP solution and may or may not be appropriate for > scala

Re: How to enable a CSV webservice?

2007-05-30 Thread kionae
It actually seems to work just fine either way in IE and FireFox. I only have them after the foreach because for some reason it wasn't playing nice with Safari when I had the header() calls first (and Safari is the browser of choice for a lot of people in my company, so it HAS to work there first

Re: Config CORE_PATH error?

2007-05-30 Thread gwoo
looks like your vendor library is using a function that does not exist on your other servers php install --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Re: Using a Component in controller->beforeFilter in 1.2

2007-05-30 Thread gwoo
Probably need to change startup to initialize --~--~-~--~~~---~--~~ 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 ema

Re: cakephp mssql_dbo.php not working properly

2007-05-30 Thread bingo
hi Joshua, $user_id = $this->params['form']['user_id']; $role = $this->params['form']['role']; if(empty($user_id)){ $this->set('failed', "Error: no user id found"); }else{ $criteria =

Re: SWFupload for cake1.2

2007-05-30 Thread msajpm
> > Hopefully someone finds it useful. > -- > Siegfried Thanks Siegfried. Just begining to use cakePHP and I was having a long time trying to modify it by myself to use with 1.2. I have two a questions. I`m able to upload files using normal file tags but not swf way. Could you use the swf way?

Re: data from model in a layout via pagescontroller

2007-05-30 Thread [EMAIL PROTECTED]
oops On 30 mei, 21:51, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Dear List, > > Very new to cake, but learning the API way :-) I am using v1.2 and am > creating a website for my girlfriend's ratshelter ;-) Well, rather > rebuilding from a previous site. > Can anyone tell me h

Using a Component in controller->beforeFilter in 1.2

2007-05-30 Thread Sarek
While this affects me trying to use the CookieComponent in the controller->beforeFilter function this appears to me to affect any component that needs to have it's startup function called before it's used and you need to access the component in beforeFilter. I am attempting to check for a cookie

Re: Documenting lessons learned...

2007-05-30 Thread Jon Bennett
> So I have been working on a installation of a client site that is in a low > budget shared hosting environment (dreamhost) and have been working to make > the app live a little better there, I am planning on writing up some of the > lessons that I have learned and some things that might help oth

Re: Pretty URL's

2007-05-30 Thread Nicolas Rimbeau
On 5/31/07, Arndtinho <[EMAIL PROTECTED]> wrote: > > Hello, > > I have some problems with pretty url's. Following the domain name you > can see "index.php" e.g. > > http://www.mydomain.de/index.php/main/index > > On my local machine (WinXP, Apache2, mod_rewrite is enabled) works the > app without

data from model in a layout via pagescontroller

2007-05-30 Thread [EMAIL PROTECTED]
Dear List, Very new to cake, but learning the API way :-) I am using v1.2 and am creating a website for my girlfriend's ratshelter ;-) Well, rather rebuilding from a previous site. Most of the static informational pages I serve via the pages controller /pages/blahblah. I use a simple 3 column la

Documenting lessons learned...

2007-05-30 Thread Samuel DeVore
So I have been working on a installation of a client site that is in a low budget shared hosting environment (dreamhost) and have been working to make the app live a little better there, I am planning on writing up some of the lessons that I have learned and some things that might help others down

Re: Does cake cache plugins

2007-05-30 Thread Davide
Samuel DeVore wrote: > request the page once... (see if it shows up in the caches/view folder > in temp I thought that too and no page in app/tmp/cache/views. It comes in my mind: "Luke, use the source"... But if someone else has an answer that can avoid me the source :) Thanks Davide sign

Re: debugging methods with cakePHP

2007-05-30 Thread Joshua Benner
Ita, I tried Zend, but couldn't get it to work properly on my server. I ended up using Xdebug ( http://xdebug.org ) and the experimental Xdebug integration plugin for PDT ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=169408 ). There are a couple excellent guides to getting it running: http

Re: cakephp mssql_dbo.php not working properly

2007-05-30 Thread Joshua Benner
We use MSSQL when working with CakePHP 1.2 here, and I've never seen Cake output any SQL like that. Can you send some details about your model(s), etc? We run PHP 5.1 on Linux and connect to MSSQL using ODBTP-overrided PHP mssql extension functions, so our database setup looks like this:

hasMany findAll alternatives

2007-05-30 Thread uolax
Thanks so much for any time with this: Forest->hasMany->Trees trees->belongsTo->Forest I want to: find the forests that only have trees that are brown, (each tree can only belong to one forest) list the other trees in those respective forest, and don't list forests that have no brown trees all f

Re: gmailer and CakePHP

2007-05-30 Thread DanielSun
so you think the whole thing should work with Cake autoSession TRUE? ad2. With such code I only get "1" returned. I'am not sure that the above usage of the class is correct. Can anyone confirm? --~--~-~--~~~---~--~~ You received this message because you are subsc

Pretty URL's

2007-05-30 Thread Arndtinho
Hello, I have some problems with pretty url's. Following the domain name you can see "index.php" e.g. http://www.mydomain.de/index.php/main/index On my local machine (WinXP, Apache2, mod_rewrite is enabled) works the app without any problems. But on the webserver I get this problems. I don't ha

Re: Does cake cache plugins

2007-05-30 Thread Samuel DeVore
request the page once... (see if it shows up in the caches/view folder in temp if yes then toss a superfluous die( "Woops no Cache used"); in that view or controller action and request the page again. If you get back the page fine they I bet you got the cached one, if you see your die statement

Re: Select database at the model level per request?

2007-05-30 Thread Samuel DeVore
and again make sure you are not using a persistant db connection On 5/30/07, francky06l <[EMAIL PROTECTED]> wrote: > > > You could setup different database into the config.php, and set the > $useDbConfig to point to the desired database into the model. After > login, if all models are use the same

Re: gmailer and CakePHP

2007-05-30 Thread gwoo
you probably have some extraneous whitspace in code. --~--~-~--~~~---~--~~ 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, s

gmailer and CakePHP

2007-05-30 Thread DanielSun
Has anyone ever tried to use Gmailer class in a CakePHP framework? It seems a very usable lib, but I just can't make it work inside Cake. I simply include it on the beginning of the controller like so: var $uses = array('Email','GMailer'); //Email being my standard cntrlr class just for the sak

cakephp mssql_dbo.php not working properly

2007-05-30 Thread bingo
hi, at my workplace, we are using MSSQL server. I have never used cakephp with MSSQL before and this the first time I am using. I am using CakePHP 1.2 on PHP 5.1. Although, I am able to connect to database, I am not able query the data. The search query created by the mssql_dbo.php looks funny an

Re: Login On Home Page

2007-05-30 Thread jjw
[EMAIL PROTECTED] wrote: > I made myself a fancy home.thtml and put it in /views/pages/ > home.thtml. I'm scratching my head trying to figure out what > controller goes to it. I tried to use > > function home() in pages_controller.php but it didn't work. Should I > make a custom controller and

Config CORE_PATH error?

2007-05-30 Thread joe
Hi, I am trying to move Cake and my app from one server to another on CentOS release 5 (RH). I think that mod_rewrite is working (moved from apache1.x to 2.x also) but get the following error when going to the host url, (Document Root has been set to /var/www/html//app/webroot) ... Date(2007-05

Re: HABTM and join attribute

2007-05-30 Thread Joshua Benner
I had a similar setup in an application -- my solution was to write a custom finderQuery. There are several posts on the message board about doing this, but I'll paste my code below. Bear in mind the query below is TSQL, so it might be a little unfamiliar if you're used to MySQL. Also, this co

Re: using uuid component to create id's into my model

2007-05-30 Thread Divagater
I use database triggers to handle writing UUID's for all of my id's. This is not a PHP solution and may or may not be appropriate for scalability across a wide range of databases. In MySQL a trigger to to add a UUID as the id of a particular table would look like this: CREATE TRIGGER `posts_id` B

Re: Does cake cache plugins

2007-05-30 Thread Chris Hartjes
On 5/30/07, Davide <[EMAIL PROTECTED]> wrote: > > Chris Hartjes wrote: > > As far as I know (I know I will be corrected if I am wrong) caching > > will only occur if you have debug set to 0. > > Maybe right but there's no mention of that in the manual. If true, how can > I check for cache working?

Re: cakephp doubt

2007-05-30 Thread Walker Hamilton
uhh..also, you could have misplaced the .htaccess files when you moved everything over mohan wrote: > i have installed and configured cake php successfully in xampp under > the folder htdocs\cake > i got the following message also > > Your database configuration file is present. > > Cake is

Re: Does cake cache plugins

2007-05-30 Thread Davide
Chris Hartjes wrote: > As far as I know (I know I will be corrected if I am wrong) caching > will only occur if you have debug set to 0. Maybe right but there's no mention of that in the manual. If true, how can I check for cache working? Thanks Davide --~--~-~--~~~---

Re: Debugging Cake app via DBG or Zend Debugger

2007-05-30 Thread Joshua Benner
I tried Zend Debugger but couldn't get it to load in my PHP environment properly, then I tried Xdebug (there's an Xdebug extension for PDT), and it worked beautifully! Only one workstation can debug per server, though. Still, it's wonderful to have access to debugger functionality. Chris Hartj

HABTM and join attribute

2007-05-30 Thread 3mind
Is possible have a join attribute in a findall result? I have 3 table: user(id,name)[var $hasAndBelongsToMany = array('Phone' => array('className' => 'Phone']))] user_phone(user_id,phone_id,myattribute) phone(id,number) [var $hasAndBelongsToMany = array('User' => array('classNa

Re: Does cake cache plugins

2007-05-30 Thread Chris Hartjes
On 5/30/07, Davide <[EMAIL PROTECTED]> wrote: > > Hello everybody. > > I'm trying the rss plugins[1] and it works great. However, in order to > save server resources, I'm trying to cache the view. I've toggled > debug to 3 in order to see if it's caching and I've putted > CACHE_CHECK=true in confi

Does cake cache plugins

2007-05-30 Thread Davide
Hello everybody. I'm trying the rss plugins[1] and it works great. However, in order to save server resources, I'm trying to cache the view. I've toggled debug to 3 in order to see if it's caching and I've putted CACHE_CHECK=true in config and then I tried to treat plugin controller as a normal c

Re: cakephp doubt

2007-05-30 Thread Chris Hartjes
On 5/30/07, mohan <[EMAIL PROTECTED]> wrote: > Kindly offer a solution as early as possible I hear that the manual offers a lot of solutions as early as you can read it. Do you have mod_rewrite enabled for your web server? -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBa

using uuid component to create id's into my model

2007-05-30 Thread [EMAIL PROTECTED]
Please if you have any working code snippet showing me how to integrate Daniel Hofstetter (http://cakebaker.42dh.com) Uuid component into my model, so the autoincrement id is not necesary in the future... Thanks ! --~--~-~--~~~---~--~~ You received this message

Re: cakephp doubt

2007-05-30 Thread John David Anderson (_psychic_)
On May 30, 2007, at 8:30 AM, mohan wrote: > > i have installed and configured cake php successfully in xampp under > the folder htdocs\cake ... > http://localhost/bookmarks/ Should this be http://localhost/cake/bookmarks if you've installed CakePHP in /htdocs/cake? -- John --~--~

cakephp doubt

2007-05-30 Thread mohan
i have installed and configured cake php successfully in xampp under the folder htdocs\cake i got the following message also Your database configuration file is present. Cake is able to connect to the database. i have created a database called project and with table name as bookmarks. I hav

Re: Complex SQL Conditions (multiple ORs)

2007-05-30 Thread squidliberty
I believe that is how I am currently structuring my $conditions. The following code doesn't work for me... $conditions['NOT'] = array(blah); $conditions[0]['OR'] = array(blah, blah); $conditions[1]['OR'] = array(blah, blah); Is it just me? On May 28, 6:46 pm, Grant Cox <[EMAIL PROTECTED]> wrote

Re: how can a controller access another model

2007-05-30 Thread AD7six
Ita wrote: > Hi, > In my DB I have 3 tables > objects, users & votes You are going to have problems with a model class named 'Object' since it already exists - you need to choose a different name. regarding the check, as I'm here, simply use your associations: if ($this->Vote->Thing->hasAny(a

Re: Date

2007-05-30 Thread m.sbragi
I suggest to use this approach: In your View: // The 2^ param 'MDY' for the sequence of selects echo $html->dateTimeOptionTag('Client/dob', 'MDY', 'NONE', $data['Client']['dob'], array(), false); In your controller $this->cleanupFields(); // automagically buld a single fields from the group of d

Re: how can a controller access another model

2007-05-30 Thread Repsah
In your controller: var $uses = array('Vote', 'Object'); Then access the object model like you do form your objects controller On 5/30/07, Ita <[EMAIL PROTECTED]> wrote: > > > Hi, > In my DB I have 3 tables > objects, users & votes > > as you probably guessed a user can vote for an object. > I'v

how can a controller access another model

2007-05-30 Thread Ita
Hi, In my DB I have 3 tables objects, users & votes as you probably guessed a user can vote for an object. I've created models, controllers and views for all 3. I've also made a user login and saved him on the session object. Now I want him to be able to vote. so on the objects view I created a

Re: Upload a File with CakePHP 1.2.0.5137alpha

2007-05-30 Thread dardosordi
Hi Andrea, I'm using this for file uploading in 1.2 an works like a charm http://bin.cakephp.org/saved/17539 Here is how it works: http://blog.chris-partridge.info/2007/03/16/uploadbehavior-is-here/ Hope it helps. P/D: Are you spanish speaker? On May 29, 1:48 pm, Andrea <[EMAIL PROTECTED]>

Re: Sessions Issue

2007-05-30 Thread djiize
I had an issue like that with WAMP, it was due to an "underscore" in the subdomains and the session didn't "fix". Maybe not your case, but I must told you in case of ;) On 30 mai, 14:51, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 5/29/07, Ketan Patel <[EMAIL PROTECTED]> wrote: > > > > > Hi C

Date

2007-05-30 Thread cake_learner
I am trying to insert date into database. fieldname: dob type: date (y:m:d) views code: dayOptionTag('Client/d', $value = null, $selected = null, $selectAttr = null, $optionAttr = null, $showEmpty = true);?> monthOptionTag('Client/m', $value = null, $selected = null, $selectAt

Re: Sessions Issue

2007-05-30 Thread Chris Hartjes
On 5/29/07, Ketan Patel <[EMAIL PROTECTED]> wrote: > > Hi Chris, > > The debug is set to 2. The set up is WAMP where I experience this > issue. However, just to make sure that this happens on Linux box or > not, I booted into Linux and it works fine in linux. So I don't know > if its CakePHP issue

Re: Question: Join two tables, count and sort result

2007-05-30 Thread Alexey Kuimov
Sorry for my urgency, but I still have a problem with grouping of query results. With single word name (`count`) for COUNT result I get additional array key [0]: [0] => Array ( [count] => 10 ) If I add table name (`Vendor`.`count` for exampe), I get SQL error #1064: You have an error in your

Re: The Slimfast Challange (or help me slim down my controller)

2007-05-30 Thread Tane Piper
Yep - thats the way there, works great :) Tane On 5/30/07, Jon Bennett <[EMAIL PROTECTED]> wrote: > > > you don't want to 'set' the variable to the view, or return it, simply do: > > > > > > function beforeFilter() > > { > > $level_check = $this->othAuth->group('level'); > >

Re: GoDaddy Subdomain Woes

2007-05-30 Thread unimatrixZxero
That all sounds pretty much correct to me. Where is your problem? If you are confused where that url is created take a look at your '.htaccess' files On May 30, 12:12 am, "Ronald Chaplin" <[EMAIL PROTECTED]> wrote: > OK. Here's my issue if anyone can help. > I have created a subdomain, adcamp tha

Re: acl.php fatal error

2007-05-30 Thread KoD
Ok, I solve it. I use the SQL query in the acl.sql file. On 30 Mag, 12:20, KoD <[EMAIL PROTECTED]> wrote: > Hi, > when I run "php acl.php initdb" php return the error: > > "PHP Fatal error: Allowed memory size of 1342177228 bytes exhausted > (tried to allocate 786432 bytes) in C:\web\cake\libs\se

Re: The Slimfast Challange (or help me slim down my controller)

2007-05-30 Thread Jon Bennett
> you don't want to 'set' the variable to the view, or return it, simply do: > > > function beforeFilter() > { > $level_check = $this->othAuth->group('level'); >if (!empty($level_check)) >{ >$this->level = $level_check; >

Re: The Slimfast Challange (or help me slim down my controller)

2007-05-30 Thread Jon Bennett
> I did do as suggested below and it didn't work, I tried both return > $level and $this->set('level', $level), both failing to return the > value to the controller. Writing my own function and calling it > $this->levelcheck() was the only way it seemed to work. you don't want to 'set' the varia

Re: The Slimfast Challange (or help me slim down my controller)

2007-05-30 Thread Tane Piper
I did do as suggested below and it didn't work, I tried both return $level and $this->set('level', $level), both failing to return the value to the controller. Writing my own function and calling it $this->levelcheck() was the only way it seemed to work. Tane > > will you not likely need to kn

i18n translation in db tables - how to do this like Symfony?

2007-05-30 Thread oleonav
Hi there, For an upcomming project, a mutilangual site, I need the ability to store different versions of the same content in a database. I've been evaluating both Cake & Symfony as basis for this site. Although I do like Cake for it's low footprint and simplicity to make things work I need some

acl.php fatal error

2007-05-30 Thread KoD
Hi, when I run "php acl.php initdb" php return the error: "PHP Fatal error: Allowed memory size of 1342177228 bytes exhausted (tried to allocate 786432 bytes) in C:\web\cake\libs\session.php on line 597" Someone know why? --~--~-~--~~~---~--~~ You received this

javascript helper, "defer" problem

2007-05-30 Thread Dia
hi I didn't find if it's possible (I use cake 1.1) to use a second argument with JavascriptHelper::link() I wanted to use this to specify "defer", like this : the only way I found to emulate that is to transform my JS file : // code into window.onload = function() { // code } and to call this

Re: The Slimfast Challange (or help me slim down my controller)

2007-05-30 Thread Jon Bennett
> Eventually solved it: > > In my app_controller: > > function levelcheck() > { > $level_check = $this->othAuth->group('level'); > if (!empty($level_check)) > { > $level = $level_check; > } else { >

Re: The Slimfast Challange (or help me slim down my controller)

2007-05-30 Thread Tane Piper
Eventually solved it: In my app_controller: function levelcheck() { $level_check = $this->othAuth->group('level'); if (!empty($level_check)) { $level = $level_check; } else { $

Re: Select database at the model level per request?

2007-05-30 Thread francky06l
You could setup different database into the config.php, and set the $useDbConfig to point to the desired database into the model. After login, if all models are use the same DB you can put this into the app_model.php. On May 30, 11:07 am, davo <[EMAIL PROTECTED]> wrote: > Hi Guys, > > We're tryin

Re: cake not running on production server

2007-05-30 Thread francky06l
Seems to be a story of rights on directory or files. Be sure your .htaccess in webroot does not contain any Deny All (also the Allow, Deny order), these can also be into the httpd.conf. On May 30, 10:33 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to run my cake applica

Select database at the model level per request?

2007-05-30 Thread davo
Hi Guys, We're trying to introduce cake into an existing php app, with the aim of gradually porting the old legacy spaghetti code into cake. We have to add some new features so this seems like a good time to start migrating. A bit of background - the application has a single 'master' database th

Re: How to enable a CSV webservice?

2007-05-30 Thread m.sbragi
What about a view like this. I have not tested but extracted from a view in one project that is a little more complex but it is just as an example. hth Da: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Per conto di Gonzalo Servat Inviato:

Re: navigation

2007-05-30 Thread luke BAKING barker
oh try this - could be useful, I just saw it :) -- Andy Dawsons whole blog is a nice resource for Cake, also. http://www.noswad.me.uk/MiBlog/Blogs/view/ACLPart1 On May 30, 10:00 am, luke BAKING barker <[EMAIL PROTECTED]> wrote: > Hi > > Sounds to me like you have just that - 3 groups - here: I w

Re: navigation

2007-05-30 Thread luke BAKING barker
Hi Sounds to me like you have just that - 3 groups - here: I would think you should use othAuth (for example) as a nice (theres an article) simple implementation. Why reinvent the wheel, and not do something that will scale later , or be useful in another app? Otherwise, try figuring out the bui

cake not running on production server

2007-05-30 Thread [EMAIL PROTECTED]
Hi, I'm trying to run my cake application on my production server but all I get is a 403 message. I've got three machines with the following result: - my windows machine: works well - a friends linux server: works well - production server, VPS with linux: 403 forbidden access I haven't got a cl

debugging methods with cakePHP

2007-05-30 Thread Ita
Hi, I'm trying to find my way around cake and having trouble as I'm new to it. I'm trying to find debug methods to debug the application I'm building. So far I installed xampp and the zend debugger so the phpinfo show: Expose Zend Debuggeralways Passive Mode Timeout20 seconds Directive