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
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
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 ,
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
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
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
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
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 #
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',
),
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
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 :)
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
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..
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
> 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.
>
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
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
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
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
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
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
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
> 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.
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
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
> 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
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
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
-
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
(
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
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
-~--~~~~--~-
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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-
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
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
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
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
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',
60 matches
Mail list logo