Re: how to set the root folder

2008-07-15 Thread RJ
can't do it coz subversioning data resides in 'xyz' folder. The directory structure has remain that way... Ne way out? On Jul 16, 11:18 am, Duncan <[EMAIL PROTECTED]> wrote: > If you don't need the xyz dir, then why not move the whole cake > install one directory up? /htdocs/appName/app > > O

Re: how to set the root folder

2008-07-15 Thread Duncan
If you don't need the xyz dir, then why not move the whole cake install one directory up? /htdocs/appName/app On Jul 15, 11:15 pm, RJ <[EMAIL PROTECTED]> wrote: > The directory structure is as follows: > /htdocs/appName/xyz/app > > app is the folder that contains all the cakephp files. Now when i

how to set the root folder

2008-07-15 Thread RJ
The directory structure is as follows: /htdocs/appName/xyz/app app is the folder that contains all the cakephp files. Now when i hit any url , it appears as: http://localhost/apName/xyz/users/login, but the requirement is such that 'xyz' should not appear in the url. How to achieve the same ,

Re: Global data

2008-07-15 Thread Sudhir Porwal
Hey, You can use the Configure class of cakephp to store your settings in configuration files like cake do for storing its configurations('config/database.php' , 'config/core.php' etc..). See the api for the class (located at 'cake/libs/configure.php')for more details regards, Sudhir RJ wro

Re: Global data

2008-07-15 Thread Joe
Your best bet is to probably set a constant in the bootstrap.php file. On Jul 15, 11:39 pm, RJ <[EMAIL PROTECTED]> wrote: > In my project , i want some data to be available globally i.e > informations like smtp-host,application name and several configuration > settings so that i don't have to har

Re: Incorrect integer value ''

2008-07-15 Thread Preloader
Hello Bakers, this problem was issued in another post: http://tinyurl.com/6oeb9z But it's not possible to answer anymore. This issue still seems not be resolved. Could anyone find the corresponding ticket on trac? Regards, Christoph :-) --~--~-~--~~~---~--~~ Yo

Global data

2008-07-15 Thread RJ
In my project , i want some data to be available globally i.e informations like smtp-host,application name and several configuration settings so that i don't have to hard-code it in my program but directly read from the global variable.This would help me when i deploy it on client side, i'll just

Re: Onkeypress event

2008-07-15 Thread RJ
yes onblur wld be a good option..but m not able to find how to do that in cakephp. could any one help in this as to how to make an ajax call on any event(onBlur.onclick,etc) -RJ On Jul 15, 10:37 pm, Joel Perras <[EMAIL PROTECTED]> wrote: > Problem with using onkeydown for this is that the #

Re: Echo Fields of Article Ceator/Modifer in View

2008-07-15 Thread double07
Got this sorted if anybody was interested, my use of foreignKey was wrong... News Model: var $belongsTo = array ('Creator' => array( 'className' => 'User', 'foreignKey' => 'creator_id', ),

Re: Test Suite: parsing a CSV file, where to store file?

2008-07-15 Thread aranworld
Thanks. I just knew there had to be some conflicting opinions on this. A webroot/files/tests directory maybe makes some sense? tmp seems wierd, because the file shouldn't get deleted. -Aran On Jul 15, 2:47 pm, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote: > Fixtures are for Model tests. > I th

Re: Test Suite: parsing a CSV file, where to store file?

2008-07-15 Thread Renan Gonçalves
Fixtures are for Model tests. I think a "more standard place" to put the CSV file is on temporary directory (/tmp) or on a webroot/files directory. []'s On Mon, Jul 14, 2008 at 10:35 PM, Grant Cox <[EMAIL PROTECTED]> wrote: > > I do the same, and keep the file in fixtures. Makes sense to me :)

Re: Cake bake does not recognize relationships?

2008-07-15 Thread Renan Gonçalves
Recognize relationships based on InnoDB relationships is planned to CakePHP 2.0. https://trac.cakephp.org/wiki/Proposals/2.0ToDoList []'s On Tue, Jul 15, 2008 at 4:07 PM, Mech7 <[EMAIL PROTECTED]> wrote: > > Does anybody know what could be wrong.. if I would bake my model / > controllers / view

Re: Configure::write

2008-07-15 Thread Renan Gonçalves
And... if you wanna store this data "permanently" you must save on a local file. To do it, use Configure::store and Configure::load []'s On Tue, Jul 15, 2008 at 4:36 PM, Gonzalo Servat <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2008 at 4:02 PM, kik <[EMAIL PROTECTED]> wrote: > >> >> [..snip..

Re: Embed images to HTML-mails

2008-07-15 Thread Renan Gonçalves
If you want put the full url, you can do this: image()) ?> I think its more simple and less "weight" than embed image on a email. []'s On Tue, Jul 15, 2008 at 5:34 PM, Lance Willett <[EMAIL PROTECTED]> wrote: > > > Let me clarify since I think you missed what I was trying to say. > > This is d

Re: Embed images to HTML-mails

2008-07-15 Thread Lance Willett
> Let me clarify since I think you missed what I was trying to say. > This is different than what you are suggesting. Sorry for hijacking the thread—I did indeed misunderstand Meloy's question. And yes, you are right in saying that the Email component is not designed to embed images in emails. >

Re: Authentication: logged user data

2008-07-15 Thread Janoma
Thanks! I wasn't using Auth in a proper way, though it's quite straightforward actually. On 14 jul, 18:03, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > http://book.cakephp.org/view/172/authentication > > 2008/7/14 Janoma <[EMAIL PROTECTED]>: > > > > > Hello, > > > I have two models: User and News

Re: ACL with multi-group membership?

2008-07-15 Thread Stinkbug
Not sure if this will help you out or not, but I can explain what I've done in our application. I thought about a way to have the same user under two different departments. What I really starting thinking about it though, I found it wasn't necessary (at least in my case). I have something like

Re: Configure::write

2008-07-15 Thread Gonzalo Servat
On Tue, Jul 15, 2008 at 4:02 PM, kik <[EMAIL PROTECTED]> wrote: > > [..snip..] > ... As far as I understand when you > use Configure::write it's storing a data in the config file and the > data is permanently stored. Nope. As far as I know, Configure::write() 'writes' the variable into the Confi

Configure::write

2008-07-15 Thread kik
Hi, I'm new to cakephp and I was reading the tutorial about Configure::write and Configure::read. As far as I understand when you use Configure::write it's storing a data in the config file and the data is permanently stored. But when I try to get the data from another controller or even another

CakePHP and JW FLV player problem

2008-07-15 Thread thegoodbyte
I have this issue with cake.First let me explain how it works : JLW player embedded into the page.As you load the page, the player shows up.Then I have custom links that pass the movie url to the player. it all works fine as long as the debug mode is more then zero (0).As soon as I switch to the

Cake bake does not recognize relationships?

2008-07-15 Thread Mech7
Does anybody know what could be wrong.. if I would bake my model / controllers / views for users it will just put a input text box for usergroup_id and in the model it just says: Here is the table setup.. --- CREAT

Call JavaScript function in Ajax view

2008-07-15 Thread Pierre MARCOURT
Hello, I am using CakePHP v1.1 and it seems that for some reason, I am not able to call JavaScript function in an Ajax View. Is there something I have to do for that ? Thanks. -- *Pierre MARCOURT* *IT Department* *CableOrganizer.com* 5610 NW 12th Ave, suite 21

Re: ACL

2008-07-15 Thread Stinkbug
> Can anyone let me know, the use of ACL in cakephp, and howz we can > implement that ? It's not an easy thing to wrap your head around. However, it's really powerful. If you read the "Understanding How ACL Works" you should get a pretty good idea how powerful, flexible, and maintainable it is.

Re: MSSQL ntext problem

2008-07-15 Thread Nate
If the code above is the same as the method you patched in the core, then it should work fine. Try examining the query output, and/or running the query in Enterprise Manager to get to a more informative error message. On Jul 15, 8:22 am, bitkidoku <[EMAIL PROTECTED]> wrote: > When I change the s

Re: Embed images to HTML-mails

2008-07-15 Thread Jonathan Snook
On Tue, Jul 15, 2008 at 2:25 PM, Lance Willett <[EMAIL PROTECTED]> wrote: > >> but the CakePHP Email component wasn't really designed to do this. > > @Jonathan Snook > Sending images in HTML email with the Email component works just fine; > you don't need to send it as an attachment. And yes, if y

Re: Embed images to HTML-mails

2008-07-15 Thread Lance Willett
> but the CakePHP Email component wasn't really designed to do this. @Jonathan Snook Sending images in HTML email with the Email component works just fine; you don't need to send it as an attachment. And yes, if you have a very large amount of images, it might get marked as spam by the recipient

Re: Trying to map findAll to $form->select()

2008-07-15 Thread Chris Hartjes
On Tue, Jul 15, 2008 at 10:39 AM, Igor <[EMAIL PROTECTED]> wrote: > Is it possible to map this array in such a way so the output looks > something like the example below? Or is it a matter of passing right > query to findAll() to produce a asimpler array? > > > Stage 2 > Stage 3 > > $this->St

Re: another transaction question

2008-07-15 Thread Flávio_GO_BRZ
English version: We don't must forget to code before or in begin of 'try' this: $this->modelA->begin()// This code will start the transaction Versão em Português: Não devemos esquecer de codificar antes ou no começo do 'try' o seguinte: $this->modelA->begin()// Inicia a transação -

Trying to map findAll to $form->select()

2008-07-15 Thread Igor
Could anyone point me in the right direction with this one please? I'm trying to pass some values to my view... $stages = $this->Stage->findAll( null, array('id', 'name'), null, null ); $this->set('stages', $stages); ... this is what's being passed... Array ( [0] => Array (

Re: Auth Redirect based on Active

2008-07-15 Thread deizel.
You could also just solve this with a check in the controller, instead of relying on the auth component or model validation to tell you this. Examples can be found in this article: http://www.jonnyreeves.co.uk/2008/06/cakephp-activating-user-account-via-email/ On Jul 7, 5:55 pm, Kyle Decot <[EMA

Re: Embed images to HTML-mails

2008-07-15 Thread Jonathan Snook
On Tue, Jul 15, 2008 at 6:04 AM, Meloy <[EMAIL PROTECTED]> wrote: > But how do I add an image to the HTML-part? > > I tried to do something like this in the layout: > image('logo.gif')); ?> > But it just gives me an http://groups.google.com/group/cake-php?hl=en -~--~~~~--~-

Re: Embed images to HTML-mails

2008-07-15 Thread Lance Willett
> But it just gives me an http://book.cakephp.org/view/176/email. --~--~-~--~~~---~--~~ 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 thi

Re: Onkeypress event

2008-07-15 Thread Joel Perras
Problem with using onkeydown for this is that the # of DB requests is directly proportional to the length of the name being input; setting a freq. of 1 sec seems like a good solution. However, I can usually input my name in less than a second. Try performing the action on an onblur instead of on

Re: Customizing the output of Form Helpers

2008-07-15 Thread Lance Willett
Tallbrick, In CakePHP 1.1 there was a method to override the default HTML output by placing a file called "tags.ini.php" in your /app/config directory. In CakePHP 1.2, that same override can be achieved by using creating a file called "tags.php" in /app/config. There is one extra step for 1.2, tho

Re: API 1.2 chm or pdf

2008-07-15 Thread DanielMedia
If you have Adobe Acrobat or something similar installed you can just go to book.cakephp.org and hit File -> Print -> Adobe PDF... Instead of sending it to your default printer. But make sure you select the "all on one page" option in the manual first. Usually ends up being a 6 or 7 MB pdf from wh

Re: About PHP i18n !

2008-07-15 Thread ghostjackyo
Oh ! Thanks ! I will try it today ! I hope i can use it work ! On 7月15日, 下午10時51分, morris <[EMAIL PROTECTED]> wrote: > I've been using Poedithttp://www.poedit.net/to create my > translated .po files from a po template file (.pot). > > I haven't used any auto-translaters though I imagine there are

how to fire ajax observeField rules for an initial value?

2008-07-15 Thread Howard Glynn
I'm continuing to refactor code with 1.2RC2 and latest cake learnings! I've got an $ajax->observeField(...) working nicely watching a select list. When the option changes, a more lengthy description is dynamically updated into a div on the page to help the user. But... when you first load the pag

Re: API 1.2 chm or pdf

2008-07-15 Thread aranworld
I'm sure the developers will release it as soon as Day 2.0 is released. You know, the one with 26 hours instead of 24. I agree that this would be a good thing to have, but instead of just demanding it, why don't you offer to put in some of the work needed to create it? On Jul 14, 11:29 pm, "Wis

Re: [Question]About PHP i18n !

2008-07-15 Thread morris
I've been using Poedit http://www.poedit.net/ to create my translated .po files from a po template file (.pot). I haven't used any auto-translaters though I imagine there are some out there. I doubt it would be a seamless translation though. Poedit does have some fuzzy/suggestive translations an

[Question]About PHP i18n !

2008-07-15 Thread ghostjackyo
Excuse me ! I want to ask some question about PHP i18n ! Now i make some code with .po file ! But it was zh_TW word ! Does it have some tool can changed it to en_US ! (auto translation) This was some code ! EX : #: i18n_lang.php:18 msgid "繁體中文" msgstr "" #: i18n_lang.php:19 msgid "英文" msgstr

Re: Auth login redirect unreliable?

2008-07-15 Thread jhicks
That will only work as long as the browser supports HTTP_REFERER. On Jul 6, 2:52 pm, Chez17 <[EMAIL PROTECTED]> wrote: > Using Eric's post, I created a very simple way to get the Auth > component to redirect to the referring page no matter what. I think > its userful: > > class UsersController e

Re: Onkeypress event

2008-07-15 Thread RJ
hey got it when i put frequency of 1 sec , it gives the desired result. But as Mr Decot mentioned, it could be a lot on server... Thanks all On Jul 15, 6:15 pm, "Siegfried Hirsch" <[EMAIL PROTECTED]> wrote: > I use frequecy for 1 seconds updates with the ajax call. Thats the way to > handle

Re: Onkeypress event

2008-07-15 Thread Siegfried Hirsch
I use frequecy for 1 seconds updates with the ajax call. Thats the way to handle it without putting a burden on the server with every key stroke ;) On Tue, Jul 15, 2008 at 3:11 PM, RJ <[EMAIL PROTECTED]> wrote: > > it doesn't work i guess ... i want to make ajax calls on 'onkeyup' > event > how t

Re: Onkeypress event

2008-07-15 Thread RJ
it doesn't work i guess ... i want to make ajax calls on 'onkeyup' event how to use $ajax->observeField for the same?? On Jul 15, 6:04 pm, "Siegfried Hirsch" <[EMAIL PROTECTED]> wrote: > what about trying with the $ajax->observeField helper. > > On Tue, Jul 15, 2008 at 2:45 PM, RJ <[EMAIL PROTECT

Re: how to use self join in cake

2008-07-15 Thread Siegfried Hirsch
Did you take a look to this posting in the bakery ? http://bakery.cakephp.org/articles/view/coding-a-self-join-in-a-cake-application On Tue, Jul 15, 2008 at 10:01 AM, kaushik <[EMAIL PROTECTED]> wrote: > I want to introduce the parentID in this Model, this parentId is > actually foreign key to l

Re: Customizing the output of Form Helpers

2008-07-15 Thread RichardAtHome
Also, you can manually add the html tags and not rely on the helper. That said, the helper is *very* flexible and can accommodate a lot of customisations :-) On Jul 15, 12:33 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > HtmlHelper::tags could be a posibility. > > On Tue, Jul 15, 2008 at

Embed images to HTML-mails

2008-07-15 Thread Meloy
Hi, I'm using cake's email-component to send multipart emails which works fine so far. But how do I add an image to the HTML-part? I tried to do something like this in the layout: image('logo.gif')); ?> But it just gives me an

Re: Onkeypress event

2008-07-15 Thread Siegfried Hirsch
what about trying with the $ajax->observeField helper. On Tue, Jul 15, 2008 at 2:45 PM, RJ <[EMAIL PROTECTED]> wrote: > > Thanks for the reply.. The client side requirement is achieved... > but i want to make a check whether the user-name is already registered > on the fly(i.e ajax call on o

Re: redirect and header error but no white space

2008-07-15 Thread lucaspirola
hi, thanks to publish your results with that bug. see ya! On Jul 15, 1:39 am, haj <[EMAIL PROTECTED]> wrote: > So, I basically saved all UTF-8 files without BOM and now things works > beautifully. --~--~-~--~~~---~--~~ You received this message because you are su

Re: Onkeypress event

2008-07-15 Thread RJ
Thanks for the reply.. The client side requirement is achieved... but i want to make a check whether the user-name is already registered on the fly(i.e ajax call on onkey event) .how to do that ? On Jul 15, 5:28 pm, Kyle Decot <[EMAIL PROTECTED]> wrote: > That's going to get to be a lot of r

Re: Onkeypress event

2008-07-15 Thread Kyle Decot
That's going to get to be a lot of requests I would think. I suggest either checking on submit, or having a "Check Availability" button. Here is the code to put the value of one field into another. That should get you started. echo $form- >input("username",array("onkeydown"=>"document.getElementB

Re: MSSQL ntext problem

2008-07-15 Thread bitkidoku
When I change the source it works fine. But when I try to extend the driver I get the same error saying: Warning (2): mssql_query() [function.mssql-query]: Query failed [CORE \cake\libs\model\datasources\dbo\dbo_mssql.php, line 176] I changed the database config to 'my_mssql'. And created the fol

Re: need help with CakePHP + YUI

2008-07-15 Thread bingo
hi Ketan, Rich Thanks for those hints. I got it working. Ketan as you said the JS and CSS are independent and there is no internal referring between them. And as Rich said, I place all the CSS files inside CSS folder and JS files within JS folder. However, I left images within CSS folder itself.

Re: need help with CakePHP + YUI

2008-07-15 Thread Rich
Javascript files go into the js folder of webroot and Css files can go in the css folder of webroot or just drop the build folder into the js of webroot. Its up to you as long as you link them properly in your layout. On Jul 15, 7:04 am, bingo <[EMAIL PROTECTED]> wrote: > hi > > I want to use YUI

Re: Customizing the output of Form Helpers

2008-07-15 Thread Dardo Sordi Bogado
HtmlHelper::tags could be a posibility. On Tue, Jul 15, 2008 at 12:20 AM, Jonathan Snook <[EMAIL PROTECTED]> wrote: > > Probably your best bet is to create your own helper that uses the base > elements like $form->text and $form->error. Wrap your own HTML around > those. Take a look at how $form-

Re: need help with CakePHP + YUI

2008-07-15 Thread bingo
hi I want to use YUI JS and CSS On Jul 15, 4:49 am, Ketan Shah <[EMAIL PROTECTED]> wrote: > well u dont need to use the YUI javascript if you want to use YUI css > grids. Both are independant of each other. Just place the yui grid css > in the css folder of webroot and link it in your layout f

Re: phpThumb Helper

2008-07-15 Thread Smelly_Eddie
I with Villa. Im no cake Guru, but I would love to provide support, and reviewing bakery submissions seems like a task I could handle. On Jul 14, 7:09 pm, villas <[EMAIL PROTECTED]> wrote: > Yes sir, I would volunteer! To be honest, I would put myself in the > bottom quartile of Cake skillfull

Onkeypress event

2008-07-15 Thread RJ
I want to implement the following scenario: there are 4 text-boxes ,when user enters his name in the first input box, i want that data(i.e user name) to be auto-filled in the 4th input box after validating it with database(to check uniqueness) . For this i'll need to make an ajax request on 'on

Re: need help with CakePHP + YUI

2008-07-15 Thread Ketan Shah
well u dont need to use the YUI javascript if you want to use YUI css grids. Both are independant of each other. Just place the yui grid css in the css folder of webroot and link it in your layout file. You can continue using jquery and yui grid. hope it helps. -Ketan http://www.propertyjungle.i

how to use self join in cake

2008-07-15 Thread kaushik
I am new in CakePHP. I am facing problem to use parent_id of category table. Here is my code details: categories Table: `categoryId` int(10) NOT NULL auto_increment, `categoryName` varchar(100) NOT NULL, `parentId` int(10) NOT NULL default 0, `isActive` enum('Y','N') NOT NULL default 'Y',